forum Forumsplay_arrow Minecraft fiber_manual_record Redstone

1

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

1 emerald3 replies309 views
created 09/03/2017 4:53 pm by ManTheWell
last reply 09/04/2017 1:09 pm
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 avatar
ManTheWell
Level 1 : New Miner
0

3 replies

2
09/03/2017 6:54 pm
Level 54 Grandmaster Cyborg
Pepijn
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
avatar
Thank you very much, it works like a charm!
1
09/04/2017 1:09 pm
Level 54 Grandmaster Cyborg
Pepijn
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!

Search

Browse

Site

© 2010 - 2018
planetminecraft.com

Welcome