How do I tag this specific entity? (Go to description for info)
I want to merge the snowball/FallingSand passenger nbt tag with FallingSand/snowball. So, I have two commands set up:
data merge @e[type=snowball] {Passengers:falling_block, tag:{BlockState:{Name:"minecraft:sand"}}}
data merge @e[type=falling_block, tag:{BlockState:{Name:"minecraft:sand"}}] {Passengers:snowball}
The commands are supposed to detect whenever a snowball exists then make it so that a FallingSand is placed as a passenger. Then, it places snowballs on all FallingSand, and this repeats, forming a snowball/FallingSand tower. I'm not sure if it will work, since it probably will detect the non-top snowball/FallingSand and break the chain by removing all passengers then placing a FallingSand/snowball on top. Is there a way to ensure this doesn't happen?
Pictures about "How do I tag this specific entity? (Go to description for info)"
How do I add a tag to an entity?
You can add, list and remove player tags using the /tag command in Minecraft. This is a very useful command to target and tag players in a multiplayer game. TIP: Starting in Minecraft Java Edition (PC/Mac) 1.13, the /tag command replaces the /scoreboard players tag command to set up and manage tags for players.How do I change entity data in Minecraft?
You can change the data tag for an entity using the /entitydata command in Minecraft. The /entitydata command is most useful for changing attributes of a mob after the mob has spawned or modifying attributes of an item after you have placed it.How do you tag a function in Minecraft?
Function tags can be called in the /function command with #<resource location> , which runs all the functions specified in the tag in the order of their first appearance in a tag. If a function is referenced multiple times in a tag and its sub-tags, it is run once.What is an entity tag in Minecraft?
Entities. These tags are used when using the /summon command to spawn entities or when using the /data to edit the data of entities.Sketchup PRO Videocourse - 05 - Entity Info, Model Info, Tags, Layers Organization, Units, Scale
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Angela Roma, Miguel Á. Padriñán, Vitaly Vlasov, Artem Beliaikin