#Disable crafting

1 messages · Page 1 of 1 (latest)

hardy maple
#

I want to have a datapack that disables the crafting recipes, but not smelting, smithing, etc.
And if possible only enable the crafting recipes for eye of ender, blaze powder so I can beat the game

dull harnessBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

round ibex
#

maybe try setting the result item of all the recipes to "minecraft:air"?

hardy maple
#

how do I do that?

heavy latch
#

use the filter in the mcmeta file to disable all vaniall a recipes and copy all the recipes ou wan to keep in your datapacks recipes folder

#

that is much easier

#

Do you know how to add a filter?

hardy maple
#

No I have no idea at all or what a mcmeta file is

heavy latch
#

it is that one file you put in the same directory as the data folder

#

The file where you put the pack format and description

#

You can easily generate mcmeta file with the filter.

lone pulsarBOT
#
**📖 Misode**

Awesome website with generators for almost everything. Also contains a technical changelog for new versions, guides on how to use some features, a performance report inspector and more!

Full list of generators: Loot Tables, Predicates, Item Modifiers, Advancements, Recipes, Text Components, Damage Types, Chat Types, Trim Materials, Trim Patterns, pack.mcmetas, Dimensions, Dimension Types, Biomes, Configured Carvers, Configured Features, Placed Features, Density Functions, Noise, Noise Settings, Structures, Structure Sets, Processor Lists, Template Pools, World Presets, Flat World Presets, World Settings, Block Tags, Entity Type Tags, Fluid Tags, Game Event Tags, Item Tags, Biome Tags, Structure Tags, Blockstates, Models, Fonts, Atlases

Link: https://misode.github.io/

heavy latch
#

Here you put the format number for your mc version and a description(optional). Where it says namespace you simply put minecraft and in the path field recipes.

#

In the code output, copy the code and paste it in your file

hardy maple
#

I have found this
can I disable shaped and shapeless and make an exception for blaze powder and ender eyes?

heavy latch
#

that's the wrong generator

#

you can only disable files and whole folders

hardy maple
#

so it doesn't allow me to make exceptions that way?

blissful roost
#

No, which is why HeDeAn said you would just copy the recipes you want from vanilla over to a new namespace that isn't disabled.

hardy maple
#

This? where do I need to paste what?

lone pulsarBOT
#
📂 Datapack Folderstructure
                .
                ├── pack.mcmeta
                ├── pack.png
                └── data
                    └── <namespace>
                        ├── advancements
                        ├── functions
                        ├── item_modifiers
                        ├── loot_tables
                        ├── predicates
                        ├── recipes
                        ├── structures
                        ├── chat_type
                        ├── damage_type
                        ├── tags 
                        │   ├── blocks
                        │   ├── entity_types
                        │   ├── fluids
                        │   ├── functions
                        │   ├── game_events
                        │   ├── items
                        │   ├── chat_type
                        │   └── damage_type
                        ├── dimension
                        ├── dimension_type
                        └── worldgen
                            ├── biome
                            ├── configured_carver
                            ├── configured_feature
                            ├── density_function
                            ├── noise
                            ├── noise_settings
                            ├── placed_feature
                            ├── processor_list
                            ├── structure
                            ├── structure_set
                            ├── template_pool
                            ├── world_preset
                            └── flat_level_generator_preset
                        ```
heavy latch
#

in the pack.mcmeta file

hardy maple
#

with what do I open the file?

heavy latch
#

the standard text editor is enough if you don't have something like VSCode

hardy maple
#

is this ok so far?

heavy latch
#

👍

hardy maple
#

if im correct, this disables all recipes including smelting and smithing etc?

heavy latch
#

yes

hardy maple
#

how to make the exception?

heavy latch
#

make a new folder in the data folder, in there make another folder called recipes and copy all the recipes you want to keep in there.

#

you can only use these characters [a-z0-9_]

hardy maple
#

okay so now I have a folder with:
pack.mcmeta file
data -> minecraft -> recipes -> (all that I want)

but when I zipped it and put it in datapack folder
I get this:

#

am I still missing something?

hardy maple
#

I fixed it, the pack format wasn't right

#

I got everything I wanted thanks!