The Meaning of Life, the Universe, and Everything.
Join Date:
9/2/2014
Posts:
54
Member Details
I want to make a command block to test for a command block with an X name. If this armorstand holds an iron shovel for example, i want something to be triggered(comparator) is there a command to do so?
/scoreboard players set @e[type=ArmorStand,name=TEST] OBJECTIVE 1 {Equipment:[{id:minecraft:shovel}]}
However, keep in mind that this looks for all slots on the armor stand, not their hand slot. Due to the way the "Equipment" list stores items, you cannot test for a specific slot.
However, keep in mind that this looks for all slots on the armor stand, not their hand slot. Due to the way the "Equipment" list stores items, you cannot test for a specific slot.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/