#I want to delete some crafts

1 messages · Page 1 of 1 (latest)

slender plume
#

I want to delete the craft of the netherite armor and (with mods that i have) the crafts that use that armor.I'm in 1.19.2 and obviously java.
And i have ZERO knowledge of codes so you'll have to explain very precisely what I have to do.

rugged apexBOT
#

<@&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

lunar sable
#

Stolen from Gamingbarn:

Use this tool: https://misode.github.io/pack-mcmeta/
The filter section 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.

slender plume
#

ok and if i want to delete more items (the whole netherite armor set)

lunar sable
#

You would just duplicate the appropriate set of {...} and change the path to the next armor piece

slender plume
#

and i put the code here right?

lunar sable
#

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

slender plume
#

and how i can delete the recipe of modded stuff?

lunar sable
#

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

slender plume
lunar sable
#

Mhm

slender plume
#

i'm french so i dont understand all english words

#

sorry if it a bit annoying for you

lunar sable
#

You're fine

slender plume
#

so what do you mean by knowing the namespace and the folder path

lunar sable
#

Which file it is.

slender plume
#

ok

#

and the answer is no

lunar sable
#

Ok

slender plume
#

like i only know their ID

lunar sable
#

I don't know what you want me to do about that

regal roost
#

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.

slender plume
#

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

lunar sable
#

Right click and open with

#

And then you'll select a program that can open jar files, such as 7-Zip or WinRar

slender plume
#

i have only that

#

and the find an app on microsoft store

lunar sable
#

Then you'll need to get a program that can open jar files

slender plume
#

i can make zip though

lunar sable
#

That's not really relevant to this

slender plume
lunar sable
#

I don't know what you want me to do with that

slender plume
#

you say that i need zip of winrar

lunar sable
#

7-Zip is a program

slender plume
#

and i have zip because i have the icon of zip

lunar sable
#

Winrar is a separate program

#

Either of those programs can open jar files

#

A .zip file is a different kind of file

slender plume
lunar sable
#

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

slender plume
#

i didnt know that wasnt the same thing

#

im gonna download the zip

#

it's the correct website?

lunar sable
#

Yep

slender plume
#

its installing

#

it's normal that it get stuck a bit at the end?

#

its been 4 minutes now

lunar sable
#

I don't need a play-by-play of you downloading a program

atomic barn
#

It says "is installed"

slender plume
#

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

lunar sable
#

Are you asking me?

slender plume
#

yeah is it normal that i dont show up

#

?

lunar sable
#

Yes

#

You'll need to pick "Other programs" or something

#

And then navigate to where you installed it

atomic barn
#

7-zip doesn't know about jar files by default

slender plume
#

oh found it i need to keep the mouse on the open with and i have the 7-zip

#

and it dont work

slender plume
#

ok found the good file to open

#

so i go in data right?

#

@lunar sable

lunar sable
#

Really really testing my patience, I have to be honest

slender plume
#

sorry....

lunar sable
#

I must politely ask that you do a little bit of problem solving on your own

slender plume
#

ok im gonna try if i never had experience in this

lunar sable
#

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

slender plume
#

#

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

atomic barn
#

Did you try to delete the recipe file from the mod file itself?

slender plume
#

yeah

atomic barn
#

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

slender plume
slender plume
#

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 } }

lunar sable
#

Yes

slender plume
#

ok

atomic barn
#

All you need to do is add in the paths to the recipes in the mod you want to disable

slender plume
#

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?

atomic barn
#

Can you send your pack.mcmeta file please?

slender plume
#

ok

slender plume
#

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

atomic barn
#

Like namespace:recipe/omenstitchhelmr

slender plume
atomic barn
#

That is the path

#

You would need minecraft: before all the Minecraft recipe paths, except that you can remove it and it assumes Minecraft

slender plume
#

{
"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?

atomic barn
#

I assume namespace isn't the namespace of the mod

slender plume
#

ok so i put minecraft and not the_slumbering_omen ?

atomic barn
#

Oh wait

sudden bay
#

You don’t need the namespace in the path

atomic barn
#

Sorry I'm getting confused

#

Yeah I've not really used pack filters before, sorry I didn't realise you already had that

slender plume
atomic barn
#

Yeah that was correct

slender plume
sudden bay
#

It should be, yeah

#

Except surely it should be recipes and not recipe

slender plume
#

then why when i putted it i can still craft this armor

slender plume
#

it crashed

sudden bay
#

bruh

#

what was the error message?

slender plume
sudden bay
#

It just deleted the mod from your mods folder?

slender plume
#

yep

sudden bay
#

I’ve never heard of that happening before

slender plume
#

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

sudden bay
#

Hmm

slender plume
#

if you want i can record it for you to see it

atomic barn
#

You're not supposed to put pack.mcmeta in the mod

sudden bay
#

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

atomic barn
#

You don't touch the mod file

#

You make a datapack

sudden bay
slender plume
#

even like that its not good

slender plume
#

it's confusing now

atomic barn
#

Yes, because you're not supposed to edit the mod

slender plume
#

so what i have to do?

atomic barn
#

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

atomic barn
slender plume
slender plume
sudden bay
#

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

atomic barn
#

Obfuscation doesn't matter either

slender plume
#

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?

atomic barn
#

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

atomic barn
slender plume
atomic barn
#

No, you have to create one

slender plume
#

ok i name it like i want to?

#

or a specific name

atomic barn
#

The name doesn't matter

slender plume
#

ok done and i put an S at the end of each recipe in the code or it doesnt matter too

atomic barn
#

That's important yes

#

I forgot you were in 1.19.2

slender plume
#

i made a classic file not a .zip for info

floral jacinth
floral jacinth
#

k

#

then it's recipes

slender plume
#

and im in game now and i can still craft it

slender plume
#

tooo

floral jacinth
#

show the pack.mcmeta

#

did you /reload?

slender plume
#

nop

#

i did /reload and it dont work

floral jacinth
#

can you upload your entire datapack here as a zip?

slender plume
#

i need to make a .Zip

#

i made a normal file

atomic barn
#

For your datapack a normal file is fine

#

There's only one file

floral jacinth
atomic barn
#

Yes I know that, but they thought they needed a zip for their datapack to work

floral jacinth
#

oh

atomic barn
#

Can you just show us the path to pack.mcmeta

#

Also wait

#

Send pack.mcmeta again please

slender plume
#

{
"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"
}
]
}
}

floral jacinth
#

the brackets seem to be wrong

atomic barn
#

You're missing a comma

slender plume
#

where?

atomic barn
#

And yes

floral jacinth
#

that's what I thought but they're also missing a bracket

atomic barn
#

No, they have an extra

slender plume
#

i add a comma or a bracket or i delete a comma or a bracket XD

floral jacinth
atomic barn
#

That second bracket there should be a comma

#

Yep

slender plume
#

so i put a comma at the second @atomic barn ?

atomic barn
#

And remove the second one

slender plume
#

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"
}
]
}
}

floral jacinth
#

let me just

#

put this in a json linter

atomic barn
floral jacinth
#

there is smth wrong

#

you need another bracket

atomic barn
#

Remove one of these

slender plume
#

i remove which bracket?

floral jacinth
slender plume
#

I need one more bracket or i delete one

atomic barn
#

Delete one

slender plume
#

okay

floral jacinth
slender plume
#

{
"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"
}
]
}
}

floral jacinth
slender plume
#

like that?

floral jacinth
atomic barn
floral jacinth
#

yea

#

re-add the comma

atomic barn
floral jacinth
#

over here

slender plume
#

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"
}
]
}
}

floral jacinth
#

also we would prefer if you sused code blocks

slender plume
#

im not using scratch

floral jacinth
#

no I mean like

#

uhh

#

how do I explain

#

```json
(type/paste code here)
```

#

send your messages like this

slender plume
#

i dont care if the code is long i just want i to work

floral jacinth
#

yeah

#

but it's easier for us to read the code

#

in code blocks

slender plume
#

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

atomic barn
slender plume
#

it worked

slender plume
#

if i change it now and do /reload it would work or not?

atomic barn
slender plume
#

ok its time to test

#

already with jei it doesnt show the recipe

#

YEAH i cant make the craft

floral jacinth
#

yoo

slender plume
#

and i want to do that with two more armor

#

XD

#

the vanilla netherite armor and an another armor

floral jacinth
#

do you need help with that?

slender plume
#

but the other modded armor i cant find it in the data file of his mod

floral jacinth
atomic barn
#

The mod doesn't need to be installed to find the files

slender plume
floral jacinth
#

ik but

slender plume
floral jacinth
#

it'll be easier to find the files

atomic barn
#

How

floral jacinth
#

go to your mods folder

#

and find the mod .jar file

atomic barn
#

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

slender plume
#

im gonna eat i will come back in 2 or 3 hours

floral jacinth
floral jacinth
#

what's the mods name

#

I could take a look

atomic barn
#

"The slumbering omen" apparently

floral jacinth
#

I'll check after lunch

#

just like

#

tell me what recipe to check for

slender plume
#

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"
            },```
atomic barn
#

You need to figure out the path to the recipe files

floral jacinth
#

hi

atomic barn
#

They seem to all be called something like netherite_chestplate_smithing

floral jacinth
#

back

slender plume
#

theire names

slender plume
slender plume
#

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

sudden bay
#

That looks right

slender plume
#

@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

floral jacinth
#

yup

#

I think that'll work

#

recipes/upgradeireite or whatever

slender plume
#

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