mojira.dev
MC-259355

Game crashes because /place sometimes does not check whether position is loaded and out of world

The bug

/place command sometimes doesn't check whether the position is reasonable, thus sometimes crashes game.

How to reproduce:

  1. create a new default world (not a super-flat world)

  2. then

  • run /execute positioned 1000000 1000000 1000000 run place feature minecraft:acacia

    • ✔ returns That position is not loaded

  • run /execute positioned 1000000 1000000 1000000 run place template minecraft:ancient_city/city_center/walls/left

    • ✔ returns That position is not loaded

  • run /execute positioned 40000000 0 0 run place structure minecraft:mansion (must be mansion and out of world)

    • Throws an unhandled error

  • run /execute positioned 1000000 1000000 1000000 run place jigsaw minecraft:ancient_city/walls minecraft:connect_wall 1

    • Return successful message

  • run /execute positioned 40000000 0 0 run place jigsaw minecraft:ancient_city/walls minecraft:connect_wall 1

    • Game Crashes

[media]

See also

See also Commands/place (Java Edition) - Minecraft Wiki

Linked issues

Attachments

Comments 1

Can reproduce, the game does indeed crash.

Former user

etanaratsastaja

Confirmed

Platform

Important

Commands, Crash

1.19.3, 23w03a, 23w04a, 23w05a, 1.19.4 Pre-release 1, 1.19.4 Release Candidate 1, 1.19.4, 23w17a, 1.20 Release Candidate 1, 1.20

1.20.5 Pre-Release 2

Retrieved