Jump to content

Boy132

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by Boy132

  1. 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 if(getHalf(state) == EnumCropHalf.LOWER && getAge(state) == 0) 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?
  2. 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)
  3. 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.
  4. 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) https://pastebin.com/wvb0X6L5 https://pastebin.com/GcENDYY3 https://pastebin.com/hxVhr473 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.