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

Recipe is unlocked when entering the world (inventory_changed is triggered)

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      I created a datapack to unloack the bundle recipe using the code from the Caves And Cliffs Preview datapack.

       

      The datapack is basicly working, but the unlock for the recipe acts strange and unlocks the recipe directly when entering the world and not when I find a string.

       

       

      The advancement file of this player shows this entry

        "minecraft:recipes/tools/bundle" : {
           "criteria" : {
              "has_string" : "2022-08-07 16:47:34 +0200"
           },
           "done" : true
        },

      what means the has_string critery was triggerd, but this should only happen what the player has a string in his inventoy.

      The critera is written like this:

          "has_string": {
            "trigger": "minecraft:inventory_changed",
            "conditions": {
              "items": [
                {
                  "item": "minecraft:string"
                }
              ]
            }

       

      Expected behavior:

      • Player should NOT have the recipe in the recipe book
      • when the player takes a string in his inventory, the recipe should be unlocked

       

      Actual behavoir:

      • the recipe is instandly unlocked when the player enters the world (even when he has NO string in his inventory)

       

      How to reproduce:

      • Add the datapack in the datapack folder of your world
      • Open the world in single player (with a player that has NO string in his inventory)

            Unassigned Unassigned
            Radon8472 Radon8472
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: