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

Can't use a custom recipe same as a vanilla item under doLimitedCrafting even the player don't have the vanilla recipe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.1
    • None
    • Windows 11, Java 21.0.3
    • Unconfirmed

      If I have a recipe that is identical to vanilla recipe, I won't be able to craft it by simply put the ingredients to the crafting table even I don't have the vanilla recipe which means no collision. I have to use the recipe book in order to craft it.
      The custom recipe:

      {
      	"type": "minecraft:crafting_shaped",
      	"category": "equipment",
      	"key": {
      		"#": {
      			"item": "minecraft:stick"
      		},
      		"X": {
      			"item": "minecraft:diamond"
      		}
      	},
      	"pattern": [
      		"X",
      		"X",
      		"#"
      	],
      	"result": {
      		"id": "minecraft:diamond_sword",
      		"count": 1,
      		"components": {
      			"minecraft:enchantment_glint_override": true
      		}
      	}
      }
      

      What I expected to happen was...:
      I will be able to craft the item.

      What actually happened was...:
      I can't craft the item.

      Steps to Reproduce:

      1. Put the following datapack to a new created world
      2. Run /function test:setup
      3. Run /function test:vanilla (Now you should have vanilla diamond sword recipe but no custom recipe)
      4. Try to craft a vanilla diamond sword, it works fine.
      5. Run /function test:custom (Now you should have custom recipe but no vanilla recipe)
      6. Try to craft a custom diamond sword, it can't be crafted unless you use the recipe book.

        1. Bug.mp4
          3.20 MB
        2. Recipe.zip
          2 kB

            Unassigned Unassigned
            AC Alex Cai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: