Page 1 of 1

Interacting with tree color and foliage state

Posted: Tue Jul 28, 2015 2:49 am
by Akhiros
Would it be possible to make the LuaEntity's color attribute be readable/writable for trees? I'd love to try indicating crop health via vibrant green vs sickly yellow.

Also, could you make it so that trees' foliage state can be read/written? This is so that if I want to replace one tree with another (representing growth), I can avoid resetting the effects of pollution.

Re: Interacting with tree color and foliage state

Posted: Thu May 23, 2019 2:32 pm
by Bilka
Color was added as LuaEntity::tree_color_index a while ago and now I added LuaEntity::tree_stage_index for the next version.