#Is there a way to disable item crafts?
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1748331592:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
you can use the filter in pack mcmeta
wiki: https://minecraft.wiki/w/Pack.mcmeta
generator: https://misode.github.io/pack-mcmeta/
depends if you want players not to be able to craft or if you want to completely block a recipe
you can use filters to block it or you can make an advancement with a tick criteria that unlocks every recipe when a player joins for the first time using a function, then in the same function it also removes the recipes you want to remove so players can't craft
then you do /gamerule doLimitedCrafting false (although with this method you can still craft the item if you unlock the recipe again via command, it doesn't "get rid" of the recipe it just blocks it for the player and it automatically activates every time a new player joins for the first time).
I would want the item to be uncraftable to anyone, even if they knew the recipe and had the resources, it wouldn't work. how would I do that?
just as i said
both methods work, but one should completely "remove" the recipe from the game, the latter one will simply "hide" the recipe and make the item uncraftable by anyone but you could still craft it if you do /recipe give (player) (recipe)
basically with the filter you just remove it, with a few commands you make the item uncraftable to specific people (with that setup it's for every single player that joins and plays the game) but you don't "delete" it completely (in case you need it in some scenarios or you want to keep it for some reason)
i've never actually tried filters but i'm pretty sure that's the way they work, anyway it's either they "delete" the recipe or just make it uncraftable but that's pretty much the same thing as the other method i mentioned
the easiest and faster one would be using filters, you just write a few strings on the file "pack.mcmeta" inside your datapack and you're done