Started by
offnem
on
Topic category: Help with Minecraft modding (Java Edition)
im making a C4 charge, and i realized that i wanted it to work where if you put a clump of them together they explode, however a feature of the explosive is that tnt doesnt explode it, only redstone or other C4 can explode it, im out of ideas, any help here?
Make an additional procedure that triggers when the block explodes.
In this procedure, use the 'search for block in 6*6*6 box' procedure template, and remove the stuff with the 'found' variable. You instead want to make it check for your custom explosive, and, if it finds the custom explosive, remove the block and generate an explosion at its position. (The position of the original explosion, plus each of the offsets.)
You should then just be able to make the blast resistance of the custom explosive really high, if you don't want TNT to destroy it. As long as the procedure triggers explosions, it should be unaffected by TNT.