I've been working on my landmine mod, and I want to add explosion resistant armor. I have the armor all done, the only problem is I can't figure out how to make it protect against explosions more than anything else. Can anyone help me?
If needed, I will post source codes and error logs.
I've been working on my landmine mod, and I want to add explosion resistant armor. I have the armor all done, the only problem is I can't figure out how to make it protect against explosions more than anything else. Can anyone help me?
If needed, I will post source codes and error logs.
the only way ive been able to do it is by modding Explosion.java and making the exploding entity the player based on the conditions you give it...
Rollback Post to RevisionRollBack
Remeber: that little green plus sign is a great way to say thank you!
no, its the way Explosions work in minecraft, it defines an exploding entity (the explosion still happens in the location its supposed to) that it will ignore in the explosion (that entity will take no damage)
Rollback Post to RevisionRollBack
Remeber: that little green plus sign is a great way to say thank you!
Hmm... I'll look into MCForge, since, you know, ALL (or almost all) good mods use MinecraftForge nowadays. But first I have to figure out what's with MCP...
If needed, I will post source codes and error logs.
the only way ive been able to do it is by modding Explosion.java and making the exploding entity the player based on the conditions you give it...
So the PLAYER explodes?
no, its the way Explosions work in minecraft, it defines an exploding entity (the explosion still happens in the location its supposed to) that it will ignore in the explosion (that entity will take no damage)
Look up MinecraftForge, it has an explosion hook.