In Minecraft, there isn't really a good way to use commands to interact with item entities, particularly in entity selectors. Right now, the best way to do it would be like this:
/tp @e[type=item,name=diamond] 0 64 0
This command would teleport all dropped diamond items to the coordinates of (0, 64, 0). However, this has issues for players not playing the game in English, as a dropped diamond item might be called something else in other languages. It could also be exploited, as players could rename a piece of dirt "Diamond" in an anvil, and then it would be considered a diamond by this command.
I'm proposing a new sort of selector that would select dropped items by the item's namespaced ID:
/tp @e[item=minecraft:diamond] 0 64 0
This command would do the same thing as the previous command, but it would work better. It would also be nice if we could select specific stack sizes something like this:
/tp @e[item=minecraft:diamond,stacksize=1] 0 64 0
This would teleport every dropped diamond that is only a single item, not multiple items.
Please sign in to leave a comment.
0 Comments