• Hey! Register here to create your account, engage with the community, and talk about what is new!

How To Make Blocks Break With TnT?

TheCoolestCat939

New member
Joined
Jul 13, 2022
Messages
3
Reaction score
0
Me and my friend are trying to make one of those house survival things, where you have to survive "natural" disasters I currently have a randomly placed TNT spawner, but it won't break any blocks! How do I fix this?
 

CheaterTim

Active member
Overlord
Joined
Mar 11, 2022
Messages
42
Reaction score
9
Me and my friend are trying to make one of those house survival things, where you have to survive "natural" disasters I currently have a randomly placed TNT spawner, but it won't break any blocks! How do I fix this?
you need to use Control: wait until the tnt explodes (80 ticks if I recall correctly), and then use Repeat: Multiple Times, as variable just put in a variable, ill call it "radius" for now because thats what it will be used for, as the second argument just put in a number, this is the radius of your explosion 2, 3 or 4 should be good for tnt, then repeat on sphere, as variable put in a variable, ill call this variable "loc", and as the radius put in the radius variable from earlier, as the points you can try and see what works best (about 2000 should work), then use Game Action: Break Block with that "loc" variable from earlier
 

TheCoolestCat939

New member
Joined
Jul 13, 2022
Messages
3
Reaction score
0
Thanks!
Follow up question:
how could I access the TNTs cords?
you need to use Control: wait until the tnt explodes (80 ticks if I recall correctly), and then use Repeat: Multiple Times, as variable just put in a variable, ill call it "radius" for now because thats what it will be used for, as the second argument just put in a number, this is the radius of your explosion 2, 3 or 4 should be good for tnt, then repeat on sphere, as variable put in a variable, ill call this variable "loc", and as the radius put in the radius variable from earlier, as the points you can try and see what works best (about 2000 should work), then use Game Action: Break Block with that "loc" variable from earlier
 

wigglyworm6697

New member
Joined
Jul 18, 2022
Messages
8
Reaction score
2
if your using a randomly placed tnt spawner, you should be able to get the coords from the varaible that spawned the tnt (ie. using a set random location block)
 

CheaterTim

Active member
Overlord
Joined
Mar 11, 2022
Messages
42
Reaction score
9
if your using a randomly placed tnt spawner, you should be able to get the coords from the varaible that spawned the tnt (ie. using a set random location block)
the problem with that would be if the TNT falls down it would be inaccurate, there is actually a game value for an entities current position

so first of all select the TNT with Select Object, Creating Selections -> Last Spawned Entity, before the wait block
1658839972421.png
then just put in the location game value as location, grab a game value from the values menu, it should be set to location by default, shift right-click with the location in your main hand and select "Selection"
1658840041565.png
 

TheCoolestCat939

New member
Joined
Jul 13, 2022
Messages
3
Reaction score
0
the problem with that would be if the TNT falls down it would be inaccurate, there is actually a game value for an entities current position

so first of all select the TNT with Select Object, Creating Selections -> Last Spawned Entity, before the wait block
View attachment 1537
then just put in the location game value as location, grab a game value from the values menu, it should be set to location by default, shift right-click with the location in your main hand and select "Selection"
View attachment 1538
Thank you!
 
Top Bottom