Solved Force zombies to burn even with helmet?

Discussion in 'Plugin Development' started by typicalGuy, Apr 25, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    typicalGuy

    I'm currently coding a private plugin that turns zombies into vampires by giving them armor, and I've given them a Wither Skull item as a helmet. The code works fine, but when I spawn the "vampire" in and it makes contact with the sun, it doesn't burn.

    Albeit this may not be a bug, does anyone know a work-around to this?

    Thanks.
     
  2. You need to loop through all blocks over the entity. If there are blocks over it, do nothing. Else burn the entitity
     
  3. Offline

    typicalGuy

    Thanks! Got it to work.
     
  4. @typicalGuy Make sure to set this thread to solved by going to Thread Tools (at the top) > Edit Title > Prefix > Solved. :)
     
Thread Status:
Not open for further replies.

Share This Page