Started by
Guaxinim Que Mia
on
Topic category: Help with Minecraft modding (Java Edition)
how could i make a block that explodes but would not explode with a certain enchantment?
Topic category: Help with Minecraft modding (Java Edition)
how could i make a block that explodes but would not explode with a certain enchantment?
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!
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.