I want to build a casino in Minecraft (1.16.4).
You should only get (give) iron lumps via the command block if you still have honeycombs in your inventory.
Additive:
Was intended as an exchange of iron lumps for honeycombs (/ give & / clear).
Replace Item would be a solution.
https://minecraft-de.gamepedia.com/...eplaceitem
However, this would then have to be linked to a scoreboard and that is a bit more complicated.
Here I have something else:
https://www.digminecraft.com/game_commands/replaceitem_command.php
/ execute as @p [nbt = {Inventory: [{id: "minecraft: honeycomb"}]}] run clear @s honeycomb
/ execute as @p [nbt = {Inventory: [{id: "minecraft: honeycomb"}]}] run give @s iron_nugget
Wtf it is much easier
True but I would have done it now with an execute command, and then the item replact.