explosive that doesnt blow up from TNT, and only blows up from others of itself

Started by offnem on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
explosive that doesnt blow up from TNT, and only blows up from others of itself

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?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make an additional procedure…
Tue, 09/19/2023 - 22:40

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.