Can't get the height of a wheat crop

Started by ivanwafles67 on Wed, 09/08/2021 - 00:06

Topic category: Help with modding (Java Edition)

Last seen on 23:08, 19. Oct 2021
Joined Jan 2021

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can't get the height of a wheat crop
Wed, 09/08/2021 - 00:06

I am trying to run a procedure that gives you a bonus when you break a fully grown wheat crop. There is no way to use all blocks for this (correct me if I'm wrong) so I used some code. However, the code does not work, and the error message states that getValue() is not a method from net.minecraft.blocks.BlockState. I tried this code in Eclipse and the error doesn't occur and it works fine there. How can I make this work in MCreator?






Error Message


Eclipse (it works here without an error)