Mojira Archive
MCM-1775

Scripting API - Game Crash When Using playerDimensionChange Event with Fill Commands

Type: Bug

Priority: Critical

Resolution: Unresolved

Affects Version/s: 1.20.80, 1.20.81, Windows 10 Desktop, Xbox One, etc.

Regression Builds 1.20.70 - I was not able to test on versions before 1.20.70

Verification Builds: 1.20.73, 1.20.80, 1.20.81, Windows 10 Desktop, Xbox One

Fix Version/s: None

Labels: None

Partner Team Reporting: King Cube
 
Description:
The playerDimensionChange event in the Minecraft scripting API causes significant issues when used with player.runCommand or player.runCommandAsync to execute a fill command. This issue was identified when attempting to replace custom light blocks (1x1 cube, fully transparent texture, light level 15, no hitbox or collision) with another block type using a fill replace command during a dimension change. The operation consistently results in a complete game crash and potential world corruption, leading to a loss of game progress. This bug was tested in the latest Minecraft Bedrock Edition versions 1.20.80 and 1.20.81.
 
Impact:
This bug leads to a hard crash of the game, not just an exit to the menu, and results in sometimes the corruption of the world file or dimension, with a reported loss of more than 10 minutes of gameplay during tests in survival mode. The severity of the crash suggests a broader issue with the fill command and possibly the scripting API too, especially when executed in conjunction with dimension changes.
 
Repro Steps:
1. Set up a scenario where custom light blocks are present at a player's location.
2. Use the playerDimensionChange event linked with player.runCommand or player.runCommandAsync to execute a fill replace command to remove any blocks or custom light blocks during a dimension transition at both at before and after x,y,z positions.
3. Observe the game crashing immediately following the command execution/entering the dimension.
 
Expected Results:
The fill command should successfully replace the specified blocks without impacting game stability.
 
Observed Results:
Executing the fill command in conjunction with the playerDimensionChange event leads to a game crash and world file corruption.
 
Special Notes:
This bug poses a high risk of data loss and significantly disrupts the development and gameplay experience. It may indicate a deeper instability within the scripting API or the fill command's handling of certain block types during dimension transitions.
 
Screenshots/Videos Attached: No
 

Unresolved

StealthyExpertX

2024-05-02, 07:09 AM

2024-05-08, 01:59 AM

0

1

-

-