#I want to delete some crafts
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
Stolen from Gamingbarn:
Use this tool: https://misode.github.io/pack-mcmeta/
Thefiltersection ends up looking like this:
"pack": {
"pack_format": 48,
"description": "whatup"
},
"filter": {
"block": [
{
"namespace": "minecraft",
"path": "recipe/wooden_sword"
},
{
"namespace": "minecraft",
"path": "recipe/wooden_pickaxe"
}
]
}
}```
The file created this way is called simply a pack.mcmeta file, and most of the time it just tells the game that the folder that this file is in is in fact a data pack, however it also has this filter functionality, which allows you to remove specific files or whole folders, usually for situations exactly like this where you want to delete some vanilla behavior.
ok and if i want to delete more items (the whole netherite armor set)
You would just duplicate the appropriate set of {...} and change the path to the next armor piece
and i put the code here right?
Yep, and then you can edit it over on the left if that's easier
And then you'll copy the code back out of the right section when you're finished
and how i can delete the recipe of modded stuff?
You'd need to know the namespace and folder path of those modded files
But if you know that info, you can do it in this same way
humm you mean if i know in wich file the craft is?
Mhm
i'm french so i dont understand all english words
sorry if it a bit annoying for you
You're fine
so what do you mean by knowing the namespace and the folder path
Which file it is.
Ok
like i only know their ID
I don't know what you want me to do about that
You'll have to open the .jar file for the mod using 7-Zip or WinRar and look into the data folder.
There, you can find the file path for any and all reicpes.
so i go in the mods file
right click on my mod
and i open it or i click open with
it's in french but i can translate it for you
Right click and open with
And then you'll select a program that can open jar files, such as 7-Zip or WinRar
Then you'll need to get a program that can open jar files
i can make zip though
That's not really relevant to this
I don't know what you want me to do with that
you say that i need zip of winrar
7-Zip is a program
and i have zip because i have the icon of zip
Winrar is a separate program
Either of those programs can open jar files
A .zip file is a different kind of file
oh...
Being able to make a zip file has nothing to do with whether you can open jar files, or whether you have the 7-Zip program
It's just what the program is called
i didnt know that wasnt the same thing
im gonna download the zip
it's the correct website?
Yep
its installing
it's normal that it get stuck a bit at the end?
its been 4 minutes now
I don't need a play-by-play of you downloading a program
It says "is installed"
yeah but usually when i download it closed that and show me a little menu
ok so i open the jar file
@lunar sable when i right click on the file and go and open with in the "recommended" apps
Are you asking me?
Yes
You'll need to pick "Other programs" or something
And then navigate to where you installed it
7-zip doesn't know about jar files by default
oh found it i need to keep the mouse on the open with and i have the 7-zip
and it dont work
ok
ok found the good file to open
so i go in data right?
@lunar sable
Really really testing my patience, I have to be honest
sorry....
I must politely ask that you do a little bit of problem solving on your own
ok im gonna try if i never had experience in this
If you are genuinely lost or stuck, ask, but I am not going to tell you every single pixel to click your mouse on and how many times
✅
understand
when i delete the recipe it "crash" it say that the mod file isnt found and when i look the mods file there is no more the mod
Did you try to delete the recipe file from the mod file itself?
yeah
Yeah don't do that, that's not what we were telling you
Use pack filters. Opening the mod is only to find where the files are
what is pack filters? (maybe it sound dumb to you but i dont edit files so i know nothing)
Kanokarob explained here
so i copy that from "filter"? because in the pack.mcmeta i have this
{ "pack": { "description": "the_slumbering_omen mod resources", "pack_format": 9, "forge:resource_pack_format": 9, "forge:data_pack_format": 10 } }
Yes
ok
All you need to do is add in the paths to the recipes in the mod you want to disable
ok thanks
it say it can change it but i put the same name of the armor set in the data file and i put the name of the mod instead of minecraft
you know what could make it wrong?
Can you send your pack.mcmeta file please?
ok
but it reset because when i try to save it it delete the mod
and im gonna do only one armor because i think it's change nothing to the problem
ok
{
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
}
}
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipe/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipe/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipe/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipe/omenstitchhelmr"
}
]
}
}
@atomic barn
forgot to remove the last comma
i made it i save the file on my desk and after put it in the mod file and it replace the previous one and it didnt crashed
i launched it still has the mod but i can still craft the armor
You need the mod's namespace
Like namespace:recipe/omenstitchhelmr
so i put that after path?
That is the path
You would need minecraft: before all the Minecraft recipe paths, except that you can remove it and it assumes Minecraft
{
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
}
}
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "namespace:recipe/omenstitchhelmr"
},
{
"namespace": "the_slumbering_omen",
"path": "namespace:recipe/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "namespace:recipe/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "namespace:recipe/omenstitchgreavesr"
}
]
}
}
it should be like that?
I assume namespace isn't the namespace of the mod
ok so i put minecraft and not the_slumbering_omen ?
Oh wait
You don’t need the namespace in the path
Sorry I'm getting confused
Yeah I've not really used pack filters before, sorry I didn't realise you already had that
ok so i put the same code as before
Yeah that was correct
that's the great code or not?
then why when i putted it i can still craft this armor
ok im gonna try to change it like that
it crashed
no when i put the file pack.mcmeta in the mod file (the .jar) it crashed and deleted the mod
It just deleted the mod from your mods folder?
yep
I’ve never heard of that happening before
so when i put the file (with the code special code) in the .jar file of the mod it ask me if i want that the file i want to put delete the previous one and put this file
and it do it
and after it close the 7-zip file manager
and the mod is deleted
Hmm
if you want i can record it for you to see it
You're not supposed to put pack.mcmeta in the mod
Maybe you should extract the mod into a different folder, add the pack.mcmeta to that folder, then re-zip the mod and change the .zip to .jar
I mean, it would theoretically work
but the file that i edited i save it in my desk and after i put it in the .jar file
even like that its not good
Yes, because you're not supposed to edit the mod
oka
so what i have to do?
I guess you could get the source code and compile it without those recipes if you wanted to
But then there's no point in pack filters
Have you ever made a datapack before?
okay....(i dont undertstandthis sentence at all)
nop
If the mod hasn’t been compiled with obfuscation I don’t see why you can’t just edit the pack.mcmeta in the jar file, because a jar file is just a zip file
Obfuscation doesn't matter either
so what do i do
because i understand nothing and this getting a bit too confusing to me
so i extract the file or not?
I think making a datapack is going to be easier than modifying the mod file
So you have to find your world folder, open the datapacks folder inside it, then create another folder inside that. Put pack.mcmeta there
ok
A jar file is just a zip file, but it's a different binary format
but in datapacks in my world there is no folder inside it or any file
No, you have to create one
The name doesn't matter
ok done and i put an S at the end of each recipe in the code or it doesnt matter too
i made a classic file not a .zip for info
are they pre-1.21?
and im in game now and i can still craft it
can you upload your entire datapack here as a zip?
I wanted to use quick look to check if the pack.mcmeta is in the correct place
Yes I know that, but they thought they needed a zip for their datapack to work
oh
Can you just show us the path to pack.mcmeta
Also wait
Send pack.mcmeta again please
{
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
}
}
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
}
]
}
}
hmm
the brackets seem to be wrong
You're missing a comma
where?
And yes
that's what I thought but they're also missing a bracket
No, they have an extra
i add a comma or a bracket or i delete a comma or a bracket XD
they're closing it early
so i put a comma at the second @atomic barn ?
And remove the second one
like that
{
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
}
},
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
}
]
}
}
You still have an extra bracket
Remove one of these
i remove which bracket?
the one without the comma
I need one more bracket or i delete one
Delete one
okay
^^^
{
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
}
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
}
]
}
}
JSONLint is the free online validator, json formatter, and json beautifier tool for JSON, a lightweight data-interchange format. You can format json, validate json, with a quick and easy copy+paste.
like that?
also test your json on this site
You removed the comma again
Or just use VSCode
over here
like that it say its good
{
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
},
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
}
]
}
}
also we would prefer if you sused code blocks
codes blocks?
im not using scratch
no I mean like
uhh
how do I explain
```json
(type/paste code here)
```
send your messages like this
i dont care if the code is long i just want i to work
it doesnt send it
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
},
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
}
]
}
} ```
oh
That looks right. Have you tried it in-game?
it worked
im gonna try
if i change it now and do /reload it would work or not?
reload
Should do, yes
ok its time to test
already with jei it doesnt show the recipe
YEAH i cant make the craft
yoo
and i want to do that with two more armor
XD
the vanilla netherite armor and an another armor
do you need help with that?
but the other modded armor i cant find it in the data file of his mod
is the mod installed?
The mod doesn't need to be installed to find the files
yeah but just for me to know to where point i copy paste
ik but
he is installed
it'll be easier to find the files
How
okay
go to your mods folder
and find the mod .jar file
They know how to find the files
We've been though this already
If the recipe isn't in the data folder then I wonder how it's defined
im gonna eat i will come back in 2 or 3 hours
french translating "Il" to "He" is crazy
hmm
what's the mods name
I could take a look
"The slumbering omen" apparently
the ireite armor set and there is the vanilla too netherite armor set
i didnt eat a lot because im not hungry
and im in the latest version of the mod
and for the netherite armor i need to copy that four more times?(but change the namespace to minecraft and the path by recipes/netherite_ and after i put the armor piece?
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},```
You need to figure out the path to the recipe files
hi
They seem to all be called something like netherite_chestplate_smithing
back
ok so its netherite_helmet_smithing, netherite_chestplate_smithing, netherite_leggings_smithing, netherite_boots_smithing?
theire names
hi
Yes
So if i understand well for now it should be like that?
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
},
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_helmet_smithing"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_chestplate_smithing"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_leggings_smithing"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_boots_smithing"
}
]
}
}```
and the json is valid
That looks right
@floral jacinth you found the armor? because i shearched in the recipes and i didnt found the armor set in the i section
im gonna launch if the netherite armor is uncraftable
yeah its good
@floral jacinth dont shearch anymor
i think i know the name
it's for me to remember the names
what's that?( it showed me a lot before even before i modified the recipes)
and the code is valid
"pack": {
"description": "the_slumbering_omen mod resources",
"pack_format": 9,
"forge:resource_pack_format": 9,
"forge:data_pack_format": 10
},
"filter": {
"block": [
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchbootsr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchchestrecipe"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchgreavesr"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/omenstitchhelmr"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_helmet_smithing"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_chestplate_smithing"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_leggings_smithing"
},
{
"namespace": "minecraft",
"path": "recipes/netherite_boots_smithing"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/upgradeireite"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/upgradeireitechest"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/upgradeireiteleggings"
},
{
"namespace": "the_slumbering_omen",
"path": "recipes/upgradeireiteboots"
}
]
}
}```
i make an another world go on it and go back to the world with the datapacksand now it works the armors cannot be crafted and i cant craft the netherite armor set
so now everything is good thank you @sudden bay @atomic barn and @lunar sable