mojira.dev
MCPE-239443

dimension.fillBlocks with ListBlockVolume and blockFilter no longer works

When using @minecraft/server 2.8.0 or 2.9.0, calling dimension.fillBlocks with ListBlockVolume and specifying a block filter, the method fails quietly without filling blocks or throwing any exceptions. If provided with a regular BlockVolume or leaving blockFilter as undefined, the method works as intended.

Steps to Reproduce:

  1. Install the attached behavior pack.

  2. Create or open a world with the behavior pack active and cheats enabled.

  3. Run the command: “/scriptevent test:list_volume filter“.

Observed Results:
Nothing happens.

Expected Results:
Blocks beneath the player's feet disappear.

Other Tests:
Running any other variation of the command produces expected results and fills blocks correctly:

  • “/scriptevent test:list_volume“ - ListBlockVolume without specifying a blockFilter.

  • “/scriptevent test:volume“ - BlockVolume without specifying a blockFilter.

  • “/scriptevent test:volume filter“ - BlockVolume without a blockFilter.

main.js:

import { system, BlockVolume, ListBlockVolume } from "@minecraft/server";

system.afterEvents.scriptEventReceive.subscribe((event) => {
    let volume;
    if (event.id === "test:list_volume") {
        volume = new ListBlockVolume([{x: -1, y: -1, z: 0}, {x: 1, y: -1, z: 0}, {x: 0, y: -1, z: 0}, {x: 0, y: -1, z: -1}, {x: 0, y: -1, z: 1} ]);
    }
    else if (event.id === "test:volume") {
        volume = new BlockVolume({x: -1, y: -1, z: -1}, {x: 1, y: -1, z: 1});
    }

    if (volume) {
        volume.translate(event.sourceEntity.location);
        event.sourceEntity.dimension.fillBlocks(volume, "minecraft:air", {
            blockFilter: event.message === "filter" ? {excludeTypes: ["minecraft:bedrock"]} : undefined
        });
    }
});

Attachments

Comments 4

Thank you for helping us improve Minecraft! We saved your files:

[media]

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

The command appears to have an effect only when doing it within 16 blocks away from the 0 0 0 coordinate. Is this how this issue occurs on your end as well?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Yes, it appears the operation can only apply to blocks located withing the range [-16,-16,-16] - [15, 0, 15].

This issue has been reviewed by our team.

Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.

If a fix is implemented, it will be listed in our official changelogs.

For major outages or urgent assistance, visit the Minecraft Help Center.

Kalendarz2

(Unassigned)

1633149, 1633136

Confirmed

Windows

11 25H2

26.40.20 Preview

Retrieved