Artifality (Abandoned)

Artifality (Abandoned)

2M Downloads

Harvest Staff fails to collect and replant Beetroots

mcdnl90 opened this issue · 1 comments

commented

Issue found with Better Minecraft modpack v14.5. Haven't tried with Artifality alone.

commented

The origin of the problem is the amount of growth stages for Beetroots:

While beetroot crops have only four growth stages compared to eight for wheat, carrots, and potatoes, each growth tick has a 1⁄3 chance of not advancing the growth stage and therefore beetroot grows slightly faster than other crops.

https://minecraft.fandom.com/wiki/Beetroot_Seeds#Farming

        if(state.getBlock() instanceof CropBlock crop){
            int age = state.get(crop.getAgeProperty());
            if(age == 7){
                Block.dropStacks(state, world, pos);
                world.setBlockState(pos, crop.withAge(0));
                return ActionResult.SUCCESS;
            }

Here you've got it hardcoded, but I think it should get the maxAge from the crop seed metadata (if such a thing exists).