Forumskeyboard_arrow_right Help keyboard_arrow_right Bedrock Edition

Create Forum Thread
1

Anyone know how to turn off tnt block damage.

1 emeralds13 replies115 views
created 08/20/2019 8:30 am by HockeyandMarvel101
last reply 08/21/2019 11:21 am
I am making a map and I need to turn of tnt block damage. Anyone know how to do this.
Posted by avatar
HockeyandMarvel101
Level 1 : New Miner
0

comment Login or register to post a reply.

13 replies

1
08/20/2019 4:40 pm
Level 60 : High Grandmaster Artist
oakar258
Put this command into repeating commandblock:

execute at @a if entity @e[type=tnt] run effect give @a minecraft:resistance 10 99

When it detects tnt ready to explode - it gives high protection to the players for 10 seconds
2
08/21/2019 8:15 amhistory
Level 9 : Apprentice Modder
HoboMaggot
you need to give a more specific command since 10 seconds is too gamebreaking and will effect the player for ANY tnt that exists in the world. Plus that command is using 1.13+ Java syntax, while Bedrock edition uses pre-1.12 syntax.
The command I would put is

[repeating, active command block] /execute @e[type=tnt] ~ ~ ~ effect @a[r=12] minecraft:resistance 4 10

Basically, when tnt is ignited, if a player is within a 10 block radius (distance is very wierd, as r=1 is the exact position and r=2 is the block itself), it will effect the player with resistance 10 for 4 seconds (Which is 1 sec past the maximum fuse time for tnt).
1
08/21/2019 8:02 am
Level 1 : New Miner
HockeyandMarvel101
Actually tried it I want it to damage players but not destroy blocks
1
08/21/2019 8:17 am
Level 9 : Apprentice Modder
HoboMaggot
That is impossible in bedrock unfortunately. It's only possible in Java edition since it supports selector arguments for nbt of entities
1
08/21/2019 8:58 am
Level 1 : New Miner
HockeyandMarvel101
Thank you
1
08/21/2019 8:00 am
Level 1 : New Miner
HockeyandMarvel101
Thanks for your support I will definitely try it
1
08/20/2019 10:49 am
Level 7 : Apprentice Narwhal
pixelsquared
try this command:
/gamerule tntexplodes false
1
08/20/2019 4:46 pm
Level 60 : High Grandmaster Artist
oakar258
This gamerule does not exist
1
08/20/2019 11:54 pm
Level 7 : Apprentice Narwhal
pixelsquared
That gamerule is only for bedrock but it should work
1
08/21/2019 8:03 am
Level 9 : Apprentice Modder
HoboMaggot
Then again, op most likely wants tnt to explode but not to inflict damage, as seen in the title.
1
08/21/2019 11:21 am
Level 7 : Apprentice Narwhal
pixelsquared
ah yea I did not fully read the title opps
1
08/21/2019 8:05 am
Level 1 : New Miner
HockeyandMarvel101
Exactly, but do you have a solution.
1
08/21/2019 8:03 am
Level 1 : New Miner
HockeyandMarvel101
that just makes tnt non lightable

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome