Trying to make fully grown wheat drop experience

Started by Sir_Crazynut on

Topic category: Help with modding (Java Edition)

Last seen on 05:04, 20. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trying to make fully grown wheat drop experience

I'm trying to make a mod that causes breaking fully grown wheat (and eventually other crops) to drop experience. This is what I have so far and I'm not sure why it doesn't work (when I test it the crops don't drop any experience).

https://ibb.co/tmX2541

Last seen on 05:04, 20. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
never mind I figured it out …
Fri, 03/22/2024 - 10:37

never mind I figured it out (using MCreator 2023.4 and Fabric Generator 1.20.1 btw)

https://ibb.co/JpnmFCT

Last seen on 05:04, 20. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so, apparently that code…
Fri, 03/29/2024 - 02:30

so, apparently that code crashes the game when you use it outside of the client tester in MCreator. Help?

 

Using Modrinth Launcher and playing 1.20.4

 

Crashlogs description says "exepction in server tick loop"