1
Execute command from block
So I'm making a mechanism where it spawns ender particles around a dragon egg so I can do /summon FallingSand ~ ~ ~ {TileID:122,Time:1} but is there any way I can use NBT tags in a selector because I'm trying to do /execute @e[type=FallingSand] ~ ~ ~ /particle portal ~ ~ ~ 1 1 1 1 1000 but is there anyway to have a NBT tag in my FallingSand selector? If nothing works I can spawn invisible armorstands give them a score of 1 and execute the particles at every armor stand with a score of one if you executing from a block is not possible
Create an account or sign in to comment.
2
1
You can't use NBT in a selector nor as part of the execute command, but you can use the scoreboard command to give scores to entities that match certain data, which you can then plug into your selectors. You at least wouldn't have to use armor stands that way, though depending on what the data is and how precise you need to be that still may not be an ideal solution.
1
Ok thanks for the idea, I'll try that