mojira.dev
MC-303469

Structure blocks can place blocks in unloaded chunks

Steps to Reproduce

  1. Add the datapack [mediaInline] to a world (or create a new world with it)

  2. Run e.g. /forceload add 10000 10000

  3. The edge of chunks blocks can be placed on should now be up to 1047 on x and z. You can verify it like this:

    • /setblock 10047 64 10047 ice ⇒ Command Execution should indicate success

    • /setblock 10048 64 10047 ice ⇒ Command Execution should indicate failure with message “That position is not loaded”

    • /setblock 10047 64 10048 ice ⇒ Command Execution should indicate failure with message “That position is not loaded”

  4. Run /setblock 10047 127 10047 minecraft:structure_block[mode=load]{mode: "LOAD", posY: 0, name: "neun:test"}

  5. Run /setblock 10047 128 10047 minecraft:redstone_block

  6. Run /teleport 10047 136 10047

Observed Result

The entire structure loaded. There should be a 255×8×8 cuboid of stone now. If the structure had entities, these would also be loaded (if ignoreEntities is additionally set to false)

/place template does correctly check that the entire size of the structure is loaded (entity processing), so attempting this with the same reproduction, but instead of the structure block, using /place template neun:test 10000 127 10000, the error message “That position is not loaded” will appear. It only works if at least the following chunks are forceloaded: /forceload add 10000 10000 10255 10000 (note that the position of the place template command is slightly different from the structure block and centered on the forceloaded chunks)

Expected Result

One of the following happens:

  • The structure block fails to place any blocks at all whenever it detects some of the chunks it is trying to access as unloaded

  • Only blocks in chunks are placed, that are at least partially loaded. In this case this should be at most a single column of stone right where the structure block was, in this case at x/z 10047.

  • Only blocks in fully loaded / entity processing chunks are placed, which in this case would be none, but it would be a single column again if the structure block was placed at x/z 10000 instead.

Attachments

Comments 1

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

NeunEinser

(Unassigned)

Confirmed

1.21.10, 25w43a

Retrieved