1

I would like to know if there is a way to make it so when a player places a block of TNT, it immediately fuses, without the use of flint and steel, fire charges, etc.

Please, no mods or plugins.

1

2 Answers 2

1

If you want to use a command block to remotely prime it, just use /setblock <coordinates> minecraft:redstone_torch to place a redstone torch next to the TNT (you can replace minecraft:redstone_torch with anything that would output a signal like).

Otherwise, if you want TNT to be primed when placed, you could use /fill replacing TNT with primed TNT, i'm not sure of primed YNY's data value though. To have it keep executing just use this clock.

9
  • I know all that stuff that's what the etc. was for but I just want it so when someone places it on the ground in an enclosed room it automatically sets off just using Command Blocks and TNT thats all Nov 14, 2014 at 2:42
  • @FireStrike289 missed the command block part, think the edit should do it
    – Memor-X
    Nov 14, 2014 at 2:54
  • Using /setblock implies that the Command Block knows where the TNT is gonna get places in this I want you to be able to place it wherever you want. Also the room I'm talking about it a 71x71 circular room with a 36 block high dome I have mobGriefing off but the TNT is to kill mobs like a weapon but you need to be able to place it wherever you want Nov 14, 2014 at 3:11
  • @FireStrike289 edited adding in method for using /execute and /fill, though i'm not entirely sure of the results, in theory it should work if you set the xyz/xyz2 values of /fill to cover your room
    – Memor-X
    Nov 14, 2014 at 3:33
  • I'm not sure how to use /execute so if you could tell me I guess I can accept your answer. Thanks in advance Nov 14, 2014 at 3:37
1

In case anyone needs this, in the newer versions there are two ways of doing this.

Method 1, Use spawn eggs instead:

/give @p mooshroom_spawn_egg{display:{Name:'{"text":"Primed TNT Spawn Egg","color":"red","italic":false}'},EntityTag:{id:"minecraft:tnt",Fuse:0}} 1

This spawns a tnt entity with a fuse of 0^

The other would be to have a command block running on repeat with the command:

execute as @e[type=tnt] run data merge entity @s {Fuse:0}

But this only sets the fuse to 0 once a piece of tnt is lit, which is not what this question was looking for but still could be helpful.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .