Option to make custom blocks and plants flammable

Submitted by vaggelsavv on Mon, 07/22/2019 - 12:21
Upvotes: 6
Issue description

i think its self explanatory

Issue comments

Developer Submitted by Klemen on Mon, 07/22/2019 - 16:03

Make sure to use the proper material when making them.

Developer Submitted by Klemen on Mon, 07/22/2019 - 19:17

Which material did you select?

Developer Submitted by Klemen on Wed, 07/24/2019 - 18:53

I have done some testing and it does indeed not set on fire. One needs to register the block to fire block to make it ignite. I am changing this to a feature request.

Developer Submitted by Klemen on Wed, 07/24/2019 - 18:55

For users that use custom code, add this to your block constructor:

Blocks.FIRE.setFireInfo(this, 5, 20);

where 5 is how fast the block catches the fire and 20 how fast the block will burn.

Developer Submitted by Klemen on Thu, 07/25/2019 - 07:51

For users that use custom code, add this to your block constructor:

Custom plants are also non-flammable, while vanilla flowers are. Can you add this feature for plants as well?

plants would be handy too, I think cobwebs and some other blocks also are flammable, it may be worth going over the material list and checking over the fire burning properties for each one. to make sure it works with the game or even better yet add a checkbox for players to enable if they want it to catch fire or not.