2

How To Disable TNT Explosions In one command block (1.12.2)

BombyTDM's Avatar BombyTDM2/10/18 10:55 pm
2 emeralds 27.4k 3
2/11/2018 2:58 pm
Team JIL's Avatar Team JIL
So, I was trying to find a way to disable TNT explosions so I could make TNT Run! I was unable to find a way to stop it. I noticed a lot of people were using the /execute command, so I went to /execute help, found the usage, and tried to create my own command to do it. On the first try, I got it. Here was how I did it.

Step 1:
Make sure cheats are enabled. Type /give @s command-block in the chat.

Step 2:
Place down the command block, enter the command
/execute @e[type=tnt] ~ ~ ~ /kill @e[type=tnt]

Step 3:
Set the command block to repeat

Step 4:
Set the command block to always active

And that's it!

I hope this will help you.
Posted by BombyTDM's Avatar
BombyTDM
Level 1 : New Miner
0

Create an account or sign in to comment.

3

1
02/11/2018 2:58 pm
Level 28 : Expert Modder
Team JIL
Team JIL's Avatar
the /execute part is not needed all you have to type it /kill @e[type=tnt] =)
1
02/11/2018 2:30 pm
Level 16 : Journeyman Engineer
Cadermate
Cadermate's Avatar
Just wanted to point out that the execute part of the command is unnecessary. Execute is used to run a command at a specific location. In this case, you are killing the tnt at the tnt entity, when it wouldn't make a difference if you killed it from a command block.
1
02/10/2018 11:03 pm
Level 1 : New Miner
BombyTDM
BombyTDM's Avatar
Sorry, I just wanted to say, in the chat to get a command block say /give @s command_block not command-block. Srry!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome