I Have a Doubt, how a make the TNT break an specific block?
I want TNT explodes just some types of blocks Ex: Coarse dirt, cracked stone bricks, etc.
Exists any command for this?
a example to clarify my desire:
Bombs exploding a wall without break blocks in around, like secret caves and secret rooms in Zelda games
any command, or a possible datapack, anything that I use vanilla and that has that effect will do!
an another question, exist any method (command, datapack, etc.) to change properties of a block in vanilla? like hardness, blast resistance, etc..
Thx for help
I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Hello there,
I Have a Doubt, how a make the TNT break an specific block?
I want TNT explodes just some types of blocks Ex: Coarse dirt, cracked stone bricks, etc.
Exists any command for this?
a example to clarify my desire:
Bombs exploding a wall without break blocks in around, like secret caves and secret rooms in Zelda games
any command, or a possible datapack, anything that I use vanilla and that has that effect will do!
an another question, exist any method (command, datapack, etc.) to change properties of a block in vanilla? like hardness, blast resistance, etc..
Thx for help
Tnt can definitely not do that.
However, there is a little trick :
-Turn gamerule mobGriefing to false
-When the tnt is about to explode, run a /fill at it so it removes all the blocks you want in a certain radius
-Summon a creeper with the tag {Fuse:0} (so it will explode, but doing no block damage)
-Kill the tnt so it doesn't truly explode
If you are working on a zelda-like game, though, I'd recommend these steps :
-When a tnt is about to explode, if there are any "blastable wall" in range, remove only these walls using /fill
-Simulate explosion with creeper
-Kill the tnt
The second one is probably better, at it will run quite fewer tests, and you can even track after that if the wall is already broken.
Of course, this highly depends on what you want to do... I don't really know so I'm exposing both techniques
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).