Explosive Block and Anti-Explosive Enchantment

Started by Guaxinim Que Mia on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Explosive Block and Anti-Explosive Enchantment

how could i make a block that explodes but would not explode with a certain enchantment?

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not 100% sure what you mean…
Fri, 12/23/2022 - 22:39

Not 100% sure what you mean with enchanting a block, but lets say you right-click your block to enchant it.

So, Make 2 blocks that look the same where one of the block has a large amount of "resistance" (Obsidian has 1200), then when the enchantment is applied, use the "replace block x y z" with the block that is resistance to explosions.

 

Hope it helps!

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And if you mean to cause the…
Fri, 12/23/2022 - 22:42

And if you mean to cause the block to not explode. The principle is the same, have 1 block that explodes, and 1 that does not. Simply replace the other one when the enchantment is applied.