How to Stop Fire from Disappearing?

Discussion in 'Plugin Development' started by ObsequiousNewt, Dec 23, 2011.

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

    ObsequiousNewt

    I wanted a Netherrack that could burn on the side, so I wrote a plugin that would stop wool from burning (by cancelling the BlockBurn event.) However, this will not stop the fire from disappearing/fading out after a while. What event, if any, can I cancel to stop this from happening? I have tried BlockBreak, BlockFade, BlockForm, BlockPhysics, and BlockSpread, and none work.
     
  2. Offline

    ItsHarry

  3. Offline

    unicode21B9

    I read in the wiki that setting the fire's data value to 15 makes it eternal, but i have never tested it.
     
    hammale likes this.
  4. Offline

    hammale

    hmm that may prove useful in the future :D
     
  5. Offline

    ObsequiousNewt

    Using BlockIgnite didn't work.

    Exactly how would I set the data value of the fire?
     
  6. Offline

    unicode21B9

    block.setData((byte) 15), where 'block' is the fire block.
     
  7. Offline

    ItsHarry

    Did you use setCancelled to cancel the event?
     
  8. Offline

    ObsequiousNewt

    21B9: How would I find "block"? I'm fairly sure that event.getBlock() will return the block that will be set on fire.
    Harry: That is exactly what I was doing.
     
  9. Offline

    ItsHarry

    Uhh I'm guessing you would have to check around the block if there's any fire blocks
     
  10. Offline

    ObsequiousNewt

    Changing the damage value didn't work. Any other suggestions?
     
  11. Offline

    user_43347

    When you ignite a block, it will always be air, you are changing the air block to fire, and not actually igniting the material.
    So set the byte data of the events block.
     
Thread Status:
Not open for further replies.

Share This Page