Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-235602

Custom datapack crashes game and permanently locks the player out of the world

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.17.1
    • None
    • Windows 10, Singleplayer, bundled Java.
    • Unconfirmed
    • (Unassigned)

      For a project, I was writing a datapack that adds some gamemodes and other things along with that. While creating a respawn system for one of the modes, I encountered a reproducible and quite harmful issue. When I write a faulty datapack, I expect it to either not work as expected, or to not work at all, and this datapack has quite a few bugs. But I would not expect it to crash the game and make my world unusable.

      The issue: Upon dying while the datapack is enabled and while a certain function is ticking (Gamemode is active), the game crashes. The crash error code seems to be inconsistent, 2 attachments are the error codes. I also experienced a third error code, but I unfortunately didn't save it, nor can I reproduce it.

      After restarting Minecraft, attempting to join back into the world will show that I was disconnected (See attachment).

       

      How to reproduce:

      A copy of this world has been attached. This copy is taken right before I first encountered the issue. It can be reproduced in either this world, or in a any other world if you extract out the datapack.

      If you use the provided world: 

      1: Run the command "/function bsr_tools:load" anywhere in the world, preferably in the location where you spawn.

      2: Run "/function bsr_tools:reset/reset_players".

      3: Use /team to join any of the teams, it doesn't matter.

      4: Near the stone floor, there should be a command block with a sign above it which should start the game. Either activate that command block, or run "/function bsr_diamond_rush:start". Wait until the game starts (10 seconds).

      5: Once you get teleported and receive items, kill yourself.

      6: Game crashed

       

      If you use a new world:

      1: Extract the datapack from the world that is attached in this report, and insert it into the new world.

      2: In any location, run "/function bsr_tools:load".

      3: In any location, preferably close to where you did the previous step, run "/function bsr_tools:diamond_rush/global_marker/set".

      4: In any location, preferably close to where you did the previous step, run "/function bsr_tools:diamond_rush/spawn_position/set". Repeat this step 6 times, preferably in different areas that are all close to each other.

      5: Run "/function bsr_tools:reset/reset_players".

      6:: Use /team to join any team, it doesn't matter.

      7: Run "/function bsr_diamond_rush:start". Wait until the game starts (10 seconds).

      8: Once you get teleported and receive items, kill yourself.

      9: Game crashed

            Unassigned Unassigned
            CSCSCSCSCS wooden_chest
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: