<div class="quote"><i>Minecraftmage113 wrote:
<div class="quote">TheCrafter4000 wrote:
<div class="quote">Minecraftmage113 wrote:
<div class="quote">TheCrafter4000 wrote:
<div class="quote">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?</i></div>
<span style="font-weight:normal;">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. </span><span style="font-weight:normal;">Your right, its a bit problematicaly. The farmhand searches </span>one<span style="font-weight:normal;"> layer above the farmland for suitable plants to harvest them. Cocoa beans are growing in the air mostly </span>two<span style="font-weight:normal;"> or more layers above the farmland. </span><span style="font-weight:normal;">My idea on how to fix this: Seach for tropical wood on the first layer and than search straight up for the beans. </span><span style="font-weight:normal;">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.</span></div>How does it handle corn?</div>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.
<p>Well, honestly I thought that corn grows on first layer as well, but it doesnt, so its an good answer on this problem. Thanks.
</p>
</div>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.
</div>
<p>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.
</p>