This is a plant aging library to make plants grow and mature.
This could be used and included in a lot of mods
It's a modified version of randomproof's growing with improvements of ironzorg
The mod was then updated by Casimir(official maintainer) to 0.4.2
I separated the growing system from the actual plant list and improved it.
License:
WTFPL applies to all parts.
Screenshots
if someone as a clever idea for screenshots of a library just share it
Features:
- plantaging function to declare
- plants
- speed of the abm
- surfaces on wich they grow
- per surface
- light level needed
- growing and maturing odds
- maturing to node depending on minimal height
Future features:
- one abm per plant kind (first thing to do)
- fertilizing integration (not instant fertilizing like in minecraft but soil amelioration)
- unified seed finding
- multi-node non vertical plants integration (ie: plants with trunk and leaves => trees)
- external surface adding
- plant genetics
- -non horizontal surface integration
- -...
Compatible mods:
- defaultgrow (direct download) => makes default papyrus and cacti grow, inspired by original mod
Future compatible mods:
(will be forked to comply with plantaging (and maybe reintegrated in main if author accept))
- Bas080's Plants
- mauvbic's Hydro
- sapier's farming
- PilzAdam's farming not anymore as PilzAdam doesn't want dependencies
Downloads:
- 0.1b
Changelog:- some code tweaking
- created separated grow and maturing odds (main odds overwrite this)
- 0.1a
Changelog:- corrected the fact that height could be calculated twice in some cases
- 0.1
How-to:
just use this function:
- Code: Select all
plantaging (plantname, plantinterval, plantchance, plantsurfaces)
where
- plantname = plant node
- plantinterval = abm interval
- plantchance = abm chance
- plantsurfaces is a table that contains:
- name = name of the surface node
- odds = on 1000 (overwrite specific growing or maturing odds*) (optional if specific odds set)
- growing_odds = odds of growing*(optional if global odds set)
- maturing_odds = odds of maturing*(optional if global odds set)
- minimal_light = minimal light to grow(optional if no growing)
- max_height = max height of the plant (put to 1 if just maturing)
- maturing_height = minimal heigth to mature (optional)
- matured_node = node it matures to (optional)
* = after 0.1b
Supressed properties:
- prior to 0.1b:
- maturing = boolean telling if plant is maturing (optional)
Any suggestion or critic is welcome!