Started by
Ob1-KaDopey
on
Topic category: Help with Minecraft modding (Java Edition)
I have a set of armor that when the player is under half health the set of armor changes, (which works just fine) but I want the armor to deflect or destroy projectiles that get shot at it.
I have tried de-spawning the arrow entity when in a square space of x, but this just crashes my game.
Any ideas?
there is an option to disable projectiles
Where would i find this?
oh wait nvm my knowlage isnt so good so i would just make the
entity interator
and in it you can delete the projectiles
but im not sure about how to delete the arrows
Okay for now I just have the armor enchant itself with really high levels of projectile protection.
You just need to do a logic in where if the attack you receive is an arrow or a projectile, just cancel the event that triggered it. That does so arrows bounce off you and other projectiles will get destroyed if they cannot bounce away. Hope it helps
Mariano Argüello could you give an example? i want to do something exactly like this and cant figure it out