#enchanting_table and anvil disable crafting help

1 messages · Page 1 of 1 (latest)

scenic verge
#

enchanting_table and anvil disable crafting help

#

<@&935561184806060073>

fringe cobalt
#

@lavish hare

#

okay, so like Silla said, you can do it using a filter

#

not sure how far you are, if you even have a data pack set up currently

#

didn't read all the messages

lavish hare
#

what

fringe cobalt
#

I think NirogenDioxide was trying to explain stuff

lavish hare
#

i was

#

but i didn't undersatnd your question

scenic verge
#

I just need to disable crafting an anvil and an enchanting table

#

but ive tried a lot of different things and it hasnt been working out

#

on both the shockbyte side of things and filezilla side of things

lavish hare
#

crafting or just disable the item

scenic verge
#

crafting

#

its a factions server

#

oh and adding to that list hoppers

lavish hare
#

can't you just clear @a people inventory of the items

scenic verge
#

right but i have the plugin EssentialsX so the @a doesnt work

lavish hare
#

datapack don't care about essentialsx

#

it uses default minecraft commands

#

I believe

#

in my experience it has

#

plus you can just

#

minecraft:clear

scenic verge
#

every time ive tried that is says it cant find the player

fringe cobalt
#

Okay, you create a folder inside of the datapacks folder. You call it however you want, this is the name of your crafting table
In that folder with the name you gave it, create a file called pack with the extension .mcmeta, this file should look like this:

{
    "pack": {
        "pack_format": 10,
        "description": "Some description"
    }
}

Now minecraft should recognise the data pack.

#

Then you can add a filter to that pack.mcmeta

lavish hare
#

or in essentials

#

clear ** anvial

fringe cobalt
lavish hare
#

make this the receipe

#

put it in the recipes folder

#

and name it anvil.json

#

and enchanting_table.json

#

and whatever else

scenic verge
fringe cobalt
#
{
    "pack": {
        "pack_format": 10,
        "description": "Some description"
    },
    "filter": {
      "block": [
        {
          "namespace": "minecraft",
          "path": "recipes/anvil.json"
        },
        {
          "namespace": "minecraft",
          "path": "recipes/enchanting_table.json"
        }
      ]
    }
}

This is how your complete pack.mcmeta looks

scenic verge
#

okay i got this

fringe cobalt
#

you can check if minecraft recognized this by using /datapack list ingame

#

also, this doesn't have to be a zip file, it can also be a folder

azure shadow
fringe cobalt
#

i looked at a project of mine where i have filters

fringe cobalt
#

@scenic verge does it work for you?

scenic verge
#

Sorry I’m not home right now, I’ll @ you when I do and tell you

wheat lava
azure shadow
# wheat lava What are "filters" ?

They were released in like 1.19 and they let you disable files from other datapacks - in this case, it disables the recipe for enchanting table and anvil

wheat lava
#

Oh interesting. They will be better to remove vanilla feature than emptying the files

scenic verge
#

can someone hop on a call with me and make sure im doing this correctly? @wheat lava @azure shadow @fringe cobalt @lavish hare

ancient granite
#

can you maybe not ping random people

#

you will get help eventually

scenic verge
#

?

#

i necer pinged you

#

never*

ancient granite
#

I never claimed that you pinged me

#

but you pinged some seemingly random people

scenic verge
#

they were all people that were in this conversation beforehand..

lavish hare
scenic verge
#

?

lavish hare
#

unless they agreed to be pinged don't ping them

scenic verge
#

Eat ma ass

short mist
#

That’s not how to get people to help you.