05-29-2012, 08:04 PM
Who would've thought that implementing farming is sooo difficult?
1, Create farmland blocks when rightclicking dirt / grass with a hoe
2, Update farmland blocks - hydrate when near water, dehydrate and revert to dirt if not near water
3, Allow planting seeds on top of farmland blocks only
4, Update plant blocks - grow them till meta 7
5, For pumpkin and melon stems, check neighbors before growing produce, then check if a suitable block is below the neighbor, and only then place the produce
6, Harvest produce from farmed blocks
So far I have #4 and #5 implemented, though not tested, because I need #1 - #3 for testing
1, Create farmland blocks when rightclicking dirt / grass with a hoe
2, Update farmland blocks - hydrate when near water, dehydrate and revert to dirt if not near water
3, Allow planting seeds on top of farmland blocks only
4, Update plant blocks - grow them till meta 7
5, For pumpkin and melon stems, check neighbors before growing produce, then check if a suitable block is below the neighbor, and only then place the produce
6, Harvest produce from farmed blocks
So far I have #4 and #5 implemented, though not tested, because I need #1 - #3 for testing