i want to make a mod where you need to combine a lot of things. one of these is very expensive, so how would i make it so when you smelt it it gives you two items
example: obsidian+bucket=obsidian filled bucket
smelting obsidian filled bucket= super obsidian AND bucket (it gives you the bucket back
thanks for any help
EDIT: how would i make it so a craft with a water bucket would give you the output but leave an empty bucket in the crafting grid afterwards so you wont have to keep making buckets