Maps Redstone Device

How to make TNT automatically explode when placed

  • 7.3k views 1 today
Progress
100% complete
  • 2
  • 0
Timofe13
Lvl 13Journeyman Miner
3
Here is how it is supposed to look.


I needed a mechanic like this for a map I was making and I felt like others may also need it so here is a tutorial for it. I believe that this is the smallest and easiest way to use command blocks to make TNT automatically blow up when placed. You need four command blocks, a comparator, and a button for this. Before we start I have to mention that all command blocks are in "Unconditional mode". Place one command block down and set it to "Always Active" and "Repeat". Then, for the command use "/testfor @p[score_Tnt_min=1]". This is the purple command block in the screenshot. Then place a comparator going out of from the purple command block and into a regular orange command block with the arrows facing upward. Set this command block to "Needs Redstone" and "Impulse" with command "/execute @a[score_Tnt_min=1] ~ ~ ~ /fill ~-5 ~-5 ~-5 ~+5 ~+5 ~+5 lever 8 replace air. Then above that command block place another command block with arrows also facing upward. The settings for this command block is "Always Active" and "Chain" with the command "/scoreboard players set @a Tnt 0". Then, place a command block with the arrows facing towards the purple command block over the comparator with the settings "Impulse" and "Needs Redstone" with the command "/scoreboard objectives add Tnt stat.use.Item.minecraft.tnt". Finally, place a command block over the purple command block with the arrow facing in the same direction as the one placed before. Use the settings "Chain" and "Always Active" with the command "/gamerule doTitleDrops false". Then, place the button on the command block above the comparator and press the button. Now, if you put a TNT block on the ground it will blow up automatically. Please note this will only work if the TNT has one of its sides or bottom ,not the top, is next to an air block. Feel free to contact me, comment, and thank you so much for the support, Timofe13.

P.S. If you're using this in a map it would be great if you gave me some credit. Also, if you're still reading checkout my Elytra Fighting Map here: http://www.planetminecraft.com/project/elytra-fight/ or http://www.minecraftforum.net/forums/mapping-and-modding/maps/2779455-elytra-fight-1-11-2

More like this

  Have something to say?

Welcome