Started by
not giggycreeper
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! I am in progress of making a mod with ranged mobs. I need help with on how to make a ranged item not damage these mobs. Any ideas?
Topic category: Help with Minecraft modding (Java Edition)
Hello! I am in progress of making a mod with ranged mobs. I need help with on how to make a ranged item not damage these mobs. Any ideas?
Set the ranged item's damage to zero, and then create a procedure for when hit to deal damage if the target entity is not one of the mobs you want to be immune. Note that they might still take knockback, unless you make the ranged item not deal knockback to anything.
How do I set the entity that I do not want immune?