mojira.dev
MCPE-53306

Minecraft ignores custom block namespaces

Minecraft ignores the namespaces for custom blocks. This can cause incompatibilities between add-ons, and allows custom block definition files to modify vanilla blocks in a way that does not seem intended.

Multiple blocks with the same name

If multiple blocks have the same name, but different namespaces, Minecraft will only load one of the blocks, and the rest will be unavailable.

Example: Custom blocks defined in behavior packs with the following identifiers:

Addon A:

"identifier": "addon_A:test_block"

Addon B:

"identifier": "addon_B:test_block"

Minecraft ignores the namespaces (i.e. "addon_A" and "addon_B") and considers these two definitions to be the same block. Only one of the custom blocks will be available in Minecraft.

 

Modifying vanilla blocks

Attempting to modify vanilla blocks by creating a custom block json file with an identifier like this:

"identifier": "minecraft:grass"

results in an error message that indicates that the "minecraft" namespace cannot be used for custom blocks.

However, vanilla blocks can be modified via behavior pack definition files by changing the namespace but leaving the name the same:

{
    "format_version": "1.12.0",
    "minecraft:block": {
        "description": {
            "identifier": "a:grass"
        },
        "components": {
            "minecraft:loot": {
                "table": "loot_tables/blocks/new_loot.json"
            }
        }
    }
}

This will cause all vanilla grass blocks to use the new_loot.json loot table instead of the vanilla loot table. This seems to be unintended.

Comments 3

This still occurs in 1.14.0.1 Beta.

Thank you for your report!
However, this issue has been temporarily resolved as Awaiting Response

Is this still an issue in the latest version?

If it is, please be sure to include steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

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

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

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

mrflippy

(Unassigned)

Unconfirmed

Windows

1.14.0.1 Beta, 1.13.0.18 Beta

Retrieved