How can I summon TNT without causing damage to blocks? [duplicate]
I want to summon a TNT block that will cause damage to mobs. However, I don't want it to damage or break blocks. Is there any way that I can do this?
Best Answer
Similar to Unionhawk's comment:
you should run three commands one after the other:
Do gamerule mobGriefing = false**
1 tick delay
Summon Creeper fuse 0 at Tnt
3 ticks delay
Do gamerule mobgriering = true
Pictures about "How can I summon TNT without causing damage to blocks? [duplicate]"
![How can I summon TNT without causing damage to blocks? [duplicate] - Shabby stone wall with eye ornament and Hindi inscription How can I summon TNT without causing damage to blocks? [duplicate] - Shabby stone wall with eye ornament and Hindi inscription](/assets/images/how_can_i_summon_tnt_without_causing_damage_to_blocks_duplicate_1.jpeg)
![How can I summon TNT without causing damage to blocks? [duplicate] - Tin vessels and metal bucket with milk placed near bike leaned on shabby rusty wall How can I summon TNT without causing damage to blocks? [duplicate] - Tin vessels and metal bucket with milk placed near bike leaned on shabby rusty wall](/assets/images/how_can_i_summon_tnt_without_causing_damage_to_blocks_duplicate_2.jpeg)
![How can I summon TNT without causing damage to blocks? [duplicate] - Overhead view of colorful roofs of residential buildings and lush green trees in flooded small village How can I summon TNT without causing damage to blocks? [duplicate] - Overhead view of colorful roofs of residential buildings and lush green trees in flooded small village](/assets/images/how_can_i_summon_tnt_without_causing_damage_to_blocks_duplicate_3.jpeg)
How do you make TNT without blocking damage?
Make a contraption that makes a command block go on and off and on and off and on, etc, etc. now, type /kill @e[type=PrimedTnt] in the command block. This will destroy tnt as soon as it is set. SIMPLE!Does lava stop TNT from breaking blocks?
Water/lava cannot push primed TNT into minecarts or boats. When primed TNT detonates while in water or lava, it does not break any blocks.How do you spawn TNT with a command block?
Much like Creepers, TNT does not destroy blocks while in water. However, if the player places a sand or gravel block above the TNT, it will destroy blocks underwater as the sand or gravel will fall into the entity.How To Make TNT that Won't Do Block Damage
More answers regarding how can I summon TNT without causing damage to blocks? [duplicate]
Answer 2
There's an easier solution to this, relying on the rule that immerged TNT doesn't explode blocks but do damage to entities :
- Place a water block :
setblock X Y Z minecraft:water
- Summon an instant-exploding TNT at this location :
summon minecraft:tnt X Y Z {Fuse:0}
You can remove the water block afterwards, but after a little delay, otherwise TNT would explode and destroy blocks.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Shuxuan Cao, Plato Terentev, Plato Terentev, Pok Rie
