Detect an item, remove it, then give another item?
I’m on java 1.14.4.
I want the command block to detect a pair of shears (display name: &6Rusty Shears, lore:&3 A little old but will do) with a brown mushroom (display name: &4Apocalypse Mushroom, lore &e Used for fresh stew!).
I haven't gotten too comfortable with the new command blocks yet. Which command blocks are needed and how should they be activated (conditional/unconditional, always active/needs red stone)?
-
Hello I see that you would like to know how to pick up a item then turn it into something else.
e.g, rotten_flesh = diamond
you will need to execute the following commands in a loop:
/tag @a[nbt={Inventory:[{id:"minecraft:<item ID>"}]}] add <item ID>
for named ones
/execute as @a[nbt={Inventory:[{id:"minecraft:<item ID>",tag:{display:{Name:"{\"text\":\"<item name>\"}"}}}]}]after the item has been found use this
https://www.digminecraft.com/game_commands/replaceitem_command.php
to find all the command tags
0 -
also conditions aren't needed
make sure the command block has the following:
Type: Repeat
Redstone: Always Active
0
Please sign in to leave a comment.
Comments
2 comments