Jump to content

[1.7.2] Make the fire placeable on my block


Sokaya

Recommended Posts

There are several methods related to blocks and fire:

 

isBurning() indicates whether it is on fire and whether it will cause other things that touch it to burn.

 

getFlammability() returns chance that fire will spread and consume this block

 

isFlammable() returns true if getFlammability() > 0

 

getFireSpreadSpeed() indicates how it spreads to neighbors

 

isFireSource(), if true will keep fire on top of it burning without dying out or getting rained out.

 

I think you'll want to @Override the getFlammability() method to return 0 so it won't burn.  And you might want to have isFireSource() return true if you want fire to keep burning on it without dying out.

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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