Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

sandbag11

Members
  • Joined

  • Last visited

  1. this worked. thank you all for your help!
  2. @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?
  3. 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!
  4. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.