Mojira Archive
MC-276706

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

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.

Duplicate

Alex Cai

2024-09-14, 01:33 PM

2024-09-14, 04:53 PM

2024-09-14, 04:48 PM

0

0

Unconfirmed

1.21.1

-