-
Posts
54 -
Joined
-
Last visited
Posts posted by Boy132
-
-
But I'm doing all of the logic only if it's the lower half and then update both.
Also that doesn't explain why the updateTick method works but the grow method not. (both use the same getAge and only execute on the lower half)
-
I copied the chunk loading check and the grow events check from the BlockCrops class.
getAge is from the super class BlockCrops:
protected int getAge(IBlockState state) { return ((Integer)state.getValue(this.getAgeProperty())).intValue(); }
And this does work, normal growing (updateTick) kind of works but when I use bonemeal (grow) on the lower half the upper one gets not updated.
-
Hey,
I want to create a double block crop (corn) but the top blockstate isn't updating. (see the screenshots: https://imgur.com/a/ndTM2jk)
The setBlockState methods return true and the "input" blockstate is correct but the age of the crop is not updated. (also WAILA says that the bottom crop is always "mature" even it's not?)
EDIT: Okay, "natural" growing works fine. Using bonemeal causes this problem but I still don't know why.
[1.12.2][SOLVED] Double Crop Blockstate Update
in Modder Support
Posted
You're right, I removed this part.
Haven't thought so much about it but I changed this too.
Why can't I do this? I add all my Blocks/ Items to Lists in my Init classes and then iterate through these lists in the registry events - and it works.
Ahhh thank you very much! I changed the if to
and now it works.
Just one little question: do you now why HWYLA shows that the lower part is "mature" (even if it's not). The upper part is shown correctly and other "normal" crops are correct too?