D00Med / fruit

Minetest mod that adds fruit to trees
Other
3 stars 1 forks source link

Regrowth #1

Open tacotexmex opened 6 years ago

tacotexmex commented 6 years ago

I can tell fruits are currently placed at the time of map generation, but it would be logical if fruit would grow back somehow and not be a one-time resource.

Could it be implemented as an ABM running on "untouched" trees?

D00Med commented 6 years ago

I'd rather not use an ABM, it would probably slow the game down a lot

tacotexmex commented 6 years ago

Are there other alternatives?

D00Med commented 6 years ago

I could make the fruit re-grow with an LBM I think.

tacotexmex commented 6 years ago

Any progress? 🙂

D00Med commented 6 years ago

None yet

tacotexmex commented 6 years ago

Check out this method! Only in this mod, the timer node can masquerade as leaves instead of air. https://github.com/Ezhh/endless_apples/blob/master/init.lua

D00Med commented 6 years ago

That looks like a very nice way to do it. I added lbm's to make fruit grow whenever leaves are loaded. They're not as frequent and don't grow in clusters like when they are first generated, but I'm thinking that might be a good thing. If not I could just make them grow in clusters.

tacotexmex commented 6 years ago

This is the end result of the MTG PR: https://github.com/minetest/minetest_game/commit/3d709dfa1d3aee61e0325895ff077f7074c676f6

D00Med commented 6 years ago

That looks good, thanks!