1
[solved] summon tnt (aka lit tnt) at dropped tnt items
hi. I am looking for a command that will summon a lit tnt block at any dropped tnt items.
the commands i came up with have the tnt items added to a team, however it does not execute at the tnt blocks once they are added to the team. help is required. thanks!
the commands i came up with have the tnt items added to a team, however it does not execute at the tnt blocks once they are added to the team. help is required. thanks!
Create an account or sign in to comment.
3
2
In a command chain (repeating commandblock for the first command, pointing into chain commandblocks for the other commands).
scoreboard players tag @e[type=item] add tnt {Item:{id:"minecraft:tnt"},OnGround:1b}
execute @e[tag=tnt] ~ ~ ~ summon tnt ~ ~ ~ {Fuse:20}
kill @e[tag=tnt]
2
Thank you very much, it works like a charm!
1
To explain why @e[type=item,team=A_TEAM] doesn't work:
The scoreboard command to add an entity to a team works for every entity, but only entities that are considered "livingbase" are actually supposed to be on a team, so @e[team=] will only work for them. "Livingbase" entities are the player, all mobs and armorstands.
So instead of using teams, it's better to use scoreboard tags, which works for every entity and on top of that you don't need to make a whole team for it!
The scoreboard command to add an entity to a team works for every entity, but only entities that are considered "livingbase" are actually supposed to be on a team, so @e[team=] will only work for them. "Livingbase" entities are the player, all mobs and armorstands.
So instead of using teams, it's better to use scoreboard tags, which works for every entity and on top of that you don't need to make a whole team for it!