Bug relating to custom dispensing

Started by whitebread009 on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bug relating to custom dispensing

I recently was working on a mod, and i have a block that when dispensed, should immediately explode the dispenser. The explosion works, but then the game promptly crashes, with the crash log stating that it tried to get the direction/facing value of the block air. 

Here is the crash report: crash report - Pastebin.com

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Edit: this seems to be an…
Mon, 09/11/2023 - 00:38

Edit: this seems to be an issue with the order in which Minecraft runs code. I did some testing and found out that if i make it wait 1 tick before doing so, it works properly and does not crash. The issue seems to be that it is checking for the direction AFTER  the block has been exploded