Minecraft-Console-Client icon indicating copy to clipboard operation
Minecraft-Console-Client copied to clipboard

[Idea] carrot farm

Open X-nancy opened this issue 3 years ago • 1 comments

Prerequisites

Console Client Version

Latest

Describe your problem

Hello, I play on minecraft server, this server farming is very important, I built a carrot farm with 6x6 blocks, I want to automate my carrot farm with console client bots, but I don't know how to do it, Use a hoe to destroy mature carrots or other mature crops. can you help me? Thanks!

Suggest a possible solution

No response

Attach screenshot here (If applicable)

No response

Minecraft Version

1.16.5

Device

Laptop

Operating System

Windows

X-nancy avatar Feb 16 '22 13:02 X-nancy

I had a quick look into it. In contrast to sugar cane or cactus it gets more difficult here, since Material.cs distinguishes between different crops, but not between their individual state of growth. This means, that you can currently detect, whether a certain block is a carrot or not, which makes cactus / sugar cane farms possible, since they rely on actually growing blocks, instead of block updates.

Unfortunately I am not sure if it is possible to obtain the growth state somewhere from something like the block metadata..

Daenges avatar Feb 19 '22 14:02 Daenges

Been looking at this, it's very tricky, as it involves a lot of bit manipulation of the Data field on the Chunk Data and Update Light packet. It looks very complicated but I'll give it a try.

milutinke avatar Sep 30 '22 22:09 milutinke

The bot is done for the most part, needs some polishing. I'll open a PR when I can, like next week.

milutinke avatar Oct 04 '22 15:10 milutinke

Implemented in #2267

milutinke avatar Oct 15 '22 17:10 milutinke