Game keeps crashing due to this procedure.

Started by Polysquarazoid on Wed, 08/05/2020 - 20:16

Topic category: Help with MCreator software

Last seen on 21:41, 7. Sep 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Game keeps crashing due to this procedure.
Wed, 08/05/2020 - 20:16

I replicated a look where flying procedure posts by pylo. The event trigger is “on player tick update” and my minecraft crash message is crashed whilst ticking player. 

This google drive link contains the crash message, and procedure. (Removing this procedure from my mod makes it work) 
https://drive.google.com/drive/folders/1dQsY0HJKx5F4VdjUb2kxup_Ih0h-F-RZ

Last seen on 19:20, 24. Sep 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
First of all your second…
Thu, 08/06/2020 - 06:53

First of all your second statement is outside if block so it will always execute which is not ok as it will return null when there is no player riding.

I HIGHLY recommend you to check some procedure tutorials on YT, you can't just start by copying some random blocks, you need to understand them.

Last seen on 21:41, 7. Sep 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks
Thu, 08/06/2020 - 18:03

Thanks