How can I intercept an item being crafted and replace it with something with a 'canplaceon' tag? [duplicate]
I want to detect when someone is building a lever, then replace it with another lever that has the canplaceon
tag so it can be placed on a redstone_lamp
How can I clear the crafting item and replace it with one that has a canplaceon
tag?
I made a couple errors with my commands there I think, sorry. I'm not too great at commands, but I'll try.
/testfor @p {Inventory:[{id:"minecraft:lever"}]} in a repeating command block, and in a chain conditional command block coming out of that, do /clear @a lever 1. Then another conditional chain command block out of that giving you the item.