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.
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this communityIf 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.
/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
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.