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

Game rule doLimitedCrafting does not affect the stonecutter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.1
    • None
    • Unconfirmed
    • Commands, Crafting, Data Packs

      I have a custom datapack that grants a stonecutter recipe when the player obtains a specific achievement. The recipe allows you to turn cobblestone into gravel through the stonecutter. When doLimitedCrafting is set to "true" this recipe is not blocked, despite revoking both the achievement and recipe.

      -The gamerule correctly works for the crafting table, but not the stonecutter.
      -This wasn't an issue in 1.20

      // Unlock Trigger
      {
        "parent": "minecraft:recipes/root",
        "criteria": {
          "requirement": {
            "conditions": {
              "player": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "type": "minecraft:player",
                    "type_specific": {
                    "type": "minecraft:player",
                    "advancements": {
                      "syrocraft:story/quantity_gravel": true
                    }
                  }
                  }
                }
              ]
            },
            "trigger": "minecraft:tick"
          }
        },
        "rewards": {
          "recipes": [
            "syrocraft:gravel_from_cobblestone_stonecutting"
          ]
        }
      }
      
      
      //Recipe
      {
        "parent": "minecraft:recipes/root",
        "criteria": {
          "requirement": {
            "conditions": {
              "player": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "type": "minecraft:player",
                    "type_specific": {
                    "type": "minecraft:player",
                    "advancements": {
                      "syrocraft:story/quantity_gravel": true
                    }
                  }
                  }
                }
              ]
            },
            "trigger": "minecraft:tick"
          }
        },
        "rewards": {
          "recipes": [
            "syrocraft:gravel_from_cobblestone_stonecutting"
          ]
        }
      }

       

       

       

       

            Unassigned Unassigned
            chaoswizard98 chaoswizard98
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: