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.

Featured Replies

Posted

Is there anyway to make zombies not burn in daylight or edit the minecraft reference files as I cant type or edit them. I am making a zombie apocalypse mod.

I'm not certain of the timing of the burning processing versus the damage from fire.  For example, I think while you could extinguish the flame with LivingUpdateEvent, I suspect that other code will run that will detect the light and set it on fire again and then process the damage.  Again, I'm not sure, but I think the LivingUpdateEvent will fire before other onUpdate() code is run, so in this case the extinguishing may get undone.

 

It may be more controlled if you process both the RenderLiving event (to make sure it doesn't display as on fire) and also the LivingHurtEvent (to make sure it doesn't take damage from fire).  As long as you don't see fire, and it doesn't take damage from fire, I think that counts as not being on fire...

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

I'm not certain of the timing of the burning processing versus the damage from fire.  For example, I think while you could extinguish the flame with LivingUpdateEvent, I suspect that other code will run that will detect the light and set it on fire again and then process the damage.  Again, I'm not sure, but I think the LivingUpdateEvent will fire before other onUpdate() code is run, so in this case the extinguishing may get undone.

 

It may be more controlled if you process both the RenderLiving event (to make sure it doesn't display as on fire) and also the LivingHurtEvent (to make sure it doesn't take damage from fire).  As long as you don't see fire, and it doesn't take damage from fire, I think that counts as not being on fire...

Okay but how do I edit the zombie entity files?

You cannot edit minecraft source files, just do what shieldbug said to do.

There's 10 types of people in this world; Those that understand binary and those that don't.

Okay but how do I edit the zombie entity files?

 

You don't have to.  We said you should use event handling to do it.  When the events we mentioned fire, your handler should just check if it is firing for a zombie and if it is then do what you need to do to extinguish the fire.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.