Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-271761

The "namespace" field of filter in pack.mcmeta leaks through definitions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.6
    • None
    • Confirmed
    • Data Packs, Resource Packs
    • Normal
    • Platform

      (corrected after reading the comment by tryashtar)

      The bug

      If several blocks, including a block that filters out paths in namespace "minecraft", are defined in the filter, blocks that specify a not "minecraft" namespace will also filter out the same paths they say in "minecraft" namespace.

      The attachment is a datapack to verify this behavior. It only contains a pack.mcmeta that filters out vanilla advancements and recipes from a namespace that does not exist.

      How to reproduce

      1. Download the datapack attached and install it to a world
      2. Enter the world
      3. Press "L" (or the key bind to open advancements tab) and observe that all vanilla advancements are disabled
      4. Execute this command through chat to get all recipes 
        /recipe give @s * 
      • Observe that all vanilla recipes are disabled

       

            Unassigned Unassigned
            endsky Muo-Tian
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: