mojira.dev
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.

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MC-160579, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

AC

(Unassigned)

Unconfirmed

1.21.1

Retrieved