1

[solved] summon tnt (aka lit tnt) at dropped tnt items

ManTheWell's Avatar ManTheWell9/3/17 4:53 pm history
1 emeralds 2.9k 3
9/4/2017 1:09 pm
Pepijn's Avatar Pepijn
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!
Posted by ManTheWell's Avatar
ManTheWell
Level 1 : New Miner
0

Create an account or sign in to comment.

3

2
09/03/2017 6:54 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
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
09/04/2017 12:55 pm
Level 1 : New Miner
ManTheWell
ManTheWell's Avatar
Thank you very much, it works like a charm!
1
09/04/2017 1:09 pmhistory
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
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!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome