Add support for vine-style multi-block plants in SimpleFarming
Pre-requisite: https://codein.withgoogle.com/dashboard/tasks/5172571932721152/
Terasology's SimpleFarming module adds a plant growth system to Terasology - plants can be grown using seed items and harvested when they become ripe. Your task is to add a multi-block fruit vine to SimpleFarming - this is naturally more complicated than a single-block bush or plant.
While regular trees are part of world generation in this case you'll be dealing with a "horizontal" tree started from seed. If at all possible only a single entity should be used to control the vine and its growth, which could be as simple as having a single vine plant that occasionally spawns melon blocks into adjacent block spaces that can be harvested or involve multiple blocks' worth of vines.
Definition of 'Done'
- A pull request is submitted to SimpleFarming containing a fruit vine and improved documentation mentioning fruit trees. The PR should contain files for all the stages mentioned above (seed, ripe, fruit).
Where to start?
- Check out the trees from Throughout the Ages - they grow, although the code is old and broken in places at this point. The relevant code is probably in the GrowingFlora module but you likely do not want to add a module dependency, just draw inspiration for how multi-block growth could work. Start with a sapling plant then spread into adjacent blocks as needed
- Check out how the engine handles breaking a block under a billboard plant, which then also breaks the plant