Jump to content

sandbag11

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by sandbag11

  1. @SubscribeEvent public static void zombieHealth(EntityJoinLevelEvent event) { if(event.getEntity() instanceof Zombie zombie) { zombie.setHealth(50); } } this is the code im trying to use to set the zombies health to 50 from 20. It does not work. I have another event, livinghurtevent, that tells me the mobs health everytime i hit it and it works. I just cant get the zombie health part to work. Also as a test i wanted to add a part in the current event that would send a chat message that a zombie spawned and with what health it had. How would i fix this?
  2. If it is not too much of a bother, can you point me to some resources that better explain those two concepts, biome modifiers and EntityJoinLevelEvent. Thank you for the advice!
  3. I am trying to make a mod that revamps pre-existing hostile mobs in minecraft. I want to make zombies spawn in hordes and change some of the base stats, however I can not find any tutorial that really covers this. I can program Java just fine but all the libraries and necessary files confuse me. I am using forge and intelliJ to make this mod. Any help would be appreciated.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.