If you don't have star anise, which is a star-shaped spice, then you can use substitute it with anise seed or fennel as they both have licorice-like flavor.