Board Thread:Suggestions forum/@comment-27668672-20171029150032/@comment-27668672-20171030222024

Minecraftmage113 wrote: TheCrafter4000 wrote: Minecraftmage113 wrote: TheCrafter4000 wrote: AlteOgre wrote: That feature may appear simple, but I guess it's not. My gut feeling is that Mevans can use vanilla coded logic to make the farmhands harvest crops and I doubt if that part of the code is ready-to-use for cocoa. Any minecraft coders with a bit more insight in this matter? Im a coder myself and I looked up some farmhand - AI code. I dont know how much code had been copied, but that make no difference. Your right, its a bit problematicaly. The farmhand searches  one  layer above the farmland for suitable plants to harvest them. Cocoa beans are growing in the air mostly  two  or more layers above the farmland. My idea on how to fix this: Seach for tropical wood on the first layer and than search straight up for the beans. Well, farmland isnt needed either, thats another problem, but one that can be simply fixed in the canDoHoeing - method. All in all I dont see any bigger problems than that. How does it handle corn? How its getting handled? Because the plant on first layer is the corn plant, the Ai looks for this plant and than looks straight up as in my idea above.

Well, honestly I thought that corn grows on first layer as well, but it doesnt, so its an good answer on this problem. Thanks. It should look to the sides of the wood for beans, not directly above, it should however look directly above (and to the sides) for more wood. Ah...I believed that common sense is used in this forum (errare humanum est). But your right, you have to look next to the wood and not in the wood for cocoa beans, I thougth that would be clear.