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"
]
}
}
Linked issues
Attachments
Comments 3
I uploaded the datapack as requested.
To make things easier for you to test, I stripped out everything aside from the recipe, and recipe unlock.
The unlock trigger is the minecraft:husbandry/plant_seed achievement. (plant a seed)
Steps to reproduce.
1. Revoke all achievements and recipes.
2. Set doLimitedCrafting to true.
3. Toss Cobblestone into the stonecutter prior to planting a seed.
Cobblestone can be converted to gravel despite not having unlocked the recipe to do so (unlocks when planting a seed).
Thank you for your report!
We're tracking this issue in MC-143214, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
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
Can you please provide the data pack?