#can you add a custom crafting item to a crafting recipe

1 messages · Page 1 of 1 (latest)

stoic ibex
#

this is the crafting recipe i am trynna add
and i wanna turn it into the other one

i dont think it is possible
both are player heads and i dont think it will work so can someone tell me another way around this?
maybe another solution to crafting or smth

`{

"type": "minecraft:crafting_shaped",

"pattern": [

"###",

"#B#",

"#Z#"

],

"key": {

"#": {

"item": "minecraft:lava_bucket"

},

"B": {

"item": "powerstones:unrdiamonite"

},

"Z": {

"item": "minecraft:beacon"

}

},

"result": {

"item": "minecraft:knowledge_book",

"count": 1

}

}`

tardy inletBOT
#
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
bleak oceanBOT
#
⚙️Custom Item Crafting Recipe

For 1.20+

This guide assumes that you already have the knowlege of some basic commands as well as on how crafting recipes and advancements work.

Text in between `<>`` is aplaceholder for your namespaces and filepaths

To create a crafting recipe for one of your custom items, you need just a little bit more than for a normal recipe.

Becasue of the fact that you can't use nbt in a recipe, we need a small workaround.

Lets add the recipe first:

rocket.json

{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        " I ",
        " I ",
        "O O"
    ],
    "key": {
        "I": {
            "item": "minecraft:iron_block"
        },
        "O": {
            "item": "minecraft:obsidian"
        }
    },
    "result": {
        "item": "minecraft:knowledge_book"
    }
}

As mentione before, we can't use the custom item as output, so we use a knowledge book as a placeholder.

To switch the knowledge book with our custom item, we need an advancement to react when we craft the recipe. For this we use the recipe_crafted trigger.
With some trickery it is also possible to make the ingredients require certain nbt.

craft_rocket.json

{
    "criteria": {
        "requirement": {
            "trigger": "minecraft:recipe_crafted",
            "conditions": {
                "recipe_id": "<namespace>:rocket"
            }
        }
    },
    "rewards": {
        "function": "<namespace>:craft_rocket"
    }
}

Last but not least we have to make the function that deals with the item switching.
You can either use a give command or, what I recommend more, define the item in a seperate loot table and use the loot command.

craft_rocket.mcfunction

clear @s knowledge_book
loot give @s loot <namespace>:<rocket_item_loot_table>
advancemt revoke @s only <namespace>:craft_rocket

This is all you need to create a crafting recipe for your custom items.

stoic ibex
#

no dude

#

i already did that

#

im trynna make a recipe

#

(image)

#

and im trynna convert it into the other player head

#

(other image)

#

i wanna make this work

#

is there any way

fierce kite
#

player heads have nbt so...

fierce kite
stoic ibex
#

um

#

i attached my code at the top

#

cud u see whats wrong

stoic ibex
haughty steppe
#

nbt

stoic ibex
#

um

#

how do i get the nbt data

#

for the head

fierce kite
#

you don't seem to know what nbt is

stoic ibex
#

nope

#

isnt nbt like addition info for a head, block or item

fierce kite
#

basically it's the data stored in an item that can make it change

stoic ibex
#

:o

#

ok

fierce kite
#

for example: in a sword nbt would be the enchanments

#

in a player head it's the texture/owner

stoic ibex
#

ohk

fierce kite
#

nbt can't be set by recipes

stoic ibex
#

give @p minecraft:player_head{SkullOwner:{Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]},Id:[I;-124012,30681,191513,-61362]},display:{Name:'["",{"text":"Unrefined Diamonite Gem","italic":false,"color":"blue"}]',Lore:['[""]','["",{"text":"You need to refine this gem","italic":false,"color":"gray"}]','["",{"text":"before putting it in the gauntlet!","italic":false,"color":"gray"}]']}} 1

stoic ibex
fierce kite
#

no

stoic ibex
#

oh

#

is there any way around it then

fierce kite
#

yes, not using datapacks

stoic ibex
#

oh

fierce kite
#

but with datapacks no

stoic ibex
#

hm

#

ok

#

datapacks seemed easier than mods

fierce kite
#

unless you don't want crafting table crafting

stoic ibex
#

and use smth else

#

as long as it works

fierce kite
#

many older datapacks use floor crafting

#

you can use that

stoic ibex
#

hmm

#

can u send me a tuto on it

paper falcon
stoic ibex
#

o

#

how to do that

paper falcon
#

You can hit the "download crafter" button, then it downloads the data pack and resource pack

#

And to add a recipe, you follow the instructions on the wiki, but I could also give you a command from one of the packs I made that uses this library

#

To merge it with your pack, you copy over all the namespaces and merge the 'minecraft' namespace (namely the load.json file deep in there) with the files/folders in your pack

leaden belfry
paper falcon
#

maybe mojang will give us something - if not - we need to use something like this until we get actual data driven items/blocks :(

haughty steppe
#

crowbar

stoic ibex
#

ty people!

#

i wudnt conside the ticket closed yet... ill try and implement this]

#

:D

#

how do i install this

tardy inletBOT
# tardy inlet

<@&935561184806060073>

**🙇 Helpers Arise!**

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

stoic ibex
#

sorry

#

if i use weld

#

it will work?

paper falcon
#

if you open them, they should instantly have the data folder and pack.mcmeta

#

you probably need to repack atleast one of them

stoic ibex
#

um

#

i prolly sound really dumb

#

but i didnt understand

#

sorry :(

paper falcon
#

What you want:

.zipped data pack
├── pack.mcmeta
├── pack.png
└── data

What you (most likely) have:

your .zip file
└── .zipped data pack
    ├── pack.mcmeta
    ├── pack.png
    └── data
stoic ibex
#

i have this

#

in non-zipped datapack

#

does datapack need to be zipped

#

??

#

im so confused

#

i added this non-zipped to a world

#

and it workde???

paper falcon
#

to upload it to weld it most likely needs to be zipped

#

yes

#

but I think the crafter pack is also in the wrong format

stoic ibex
#

hm

#

this is what i got when i clicked, download crafter

paper falcon
paper falcon
stoic ibex
#

yuh yuh

stoic ibex
#

not the resource pack?

paper falcon
#

you add your pack and the smithed crafter data pack in this format

.zipped data pack
├── pack.mcmeta
├── pack.png
└── data
#

leave resource packs out

#

make sure to have everything top level like shown

stoic ibex
#

hmm

#

ok

paper falcon
# stoic ibex

here you have

powerstones.zip
└── powerstones (folder)
    ├── pack.mcmeta
    ├── pack.png
    └── data
#

but you want

powerstones.zip
├── pack.mcmeta
├── pack.png
└── data
stoic ibex
#

ty!

#

how do i get the crafter block

#

this is complicated

paper falcon
#

You can craft it ingame using this recipe in a crafting table:


    "pattern": [
        "###",
        "#C#",
        "SSS"
    ],
    "key": {
        "#": {
            "tag": "minecraft:logs"
        },
        "C": {
            "item": "minecraft:crafting_table"
        },
        "S": {
            "item": "minecraft:smooth_stone"
        }
stoic ibex
#

ok

stoic ibex
#

how do i detect this head in the crafter and add it as a crafting recipe

#

{
0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id:"custom head"}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]
}

bleak oceanBOT
#
⚙️Rightclick Detection

There are multiple ways to detect right clicks using datapacks/commands, here is a quick rundown on each of them and their cons and pros!
You can get more detailed instructions on how to use them using their corresponding /methods

Warped Fungus on a Stick (WFOAS)/Carrot on a Stick (COAS)

This method works by using an item.used scoreboard objective which triggers when using either of the two items and then running commands as/at players with a score of 1 or higher.

Pros:

  • easy to pull off
  • works in any world
  • doesn't require additional entities

Cons:

  • wfoas attracts striders/coas pigs and rabbit

Depends:

  • detects up to 5 clicks/second when holding right click

Eye of Ender (EoE)

This method works by using an advancement to detect whenever a player uses an eye of ender and then executing code as/at them.

Pros:

  • doesn't require additional entities
  • doesn't attract mobs
  • doesn't need to run every tick

Cons:

  • slows player down when holding right click
  • only works in worlds without strongholds (there are ways to work around this, although these are way less performant)

Depends:

  • detects up to 20 clicks/second when holding right click
  • bound to the player, not a specific location

Interaction Entities

This method works by using an advancement to check whether a player interacted with an interaction entity and then executing code

Pros:

  • see "depends"
  • can also detect left clicks

Cons:

  • requires an additional entity

Depends:

  • detects up to 5 clicks/second when holding right click
  • bound to a specific location, not player
  • can't be interacted through
paper falcon
#

you can put it in your hand and run a /data get entity @s SelectedItem

#

then you get the nbt of that item

#

and just have something that makes it unique (ideally a custom thing you put there) and also check for that

stoic ibex
#

:o

#

ok

stoic ibex
#

i got the nbt

#

but i still have no idea how to use it in the crafting recipe

#

how do i copy thiss

#

marvsl has the following entity data: {id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}, Id: [I; -124012, 30681, 191513, -61362]}, display: {Lore: ['[""]', '["",{"text":"You need to refine this gem","italic":false,"color":"gray"}]', '["",{"text":"before putting it in the gauntlet!","italic":false,"color":"gray"}]'], Name: '["",{"text":"Unrefined Diamonite Gem","italic":false,"color":"blue"}]'}}}

#

{
0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}, Id: [I; -124012, 30681, 191513, -61362]}, display: {Lore: ['[""]', '["",{"text":"You need to refine this gem","italic":false,"color":"gray"}]', '["",{"text":"before putting it in the gauntlet!","italic":false,"color":"gray"}]'], Name: '["",{"text":"Unrefined Diamonite Gem","italic":false,"color":"blue"}]'}}}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]
}

#

this shi- is too advanced for meeee

stoic ibex
#

where shud i put this file

#

{
0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}, Id: [I; -124012, 30681, 191513, -61362]}, display: {Lore: ['[""]', '["",{"text":"You need to refine this gem","italic":false,"color":"gray"}]', '["",{"text":"before putting it in the gauntlet!","italic":false,"color":"gray"}]'], Name: '["",{"text":"Unrefined Diamonite Gem","italic":false,"color":"blue"}]'}}}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]
}

#

this one

stoic ibex
#

i put my recipe in this?

#

wait

#

um

#

@public

execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0: [{Slot: 0b, item_tag: ["#minecraft:logs"]}, {Slot: 1b, item_tag: ["#minecraft:logs"]}, {Slot: 2b, item_tag: ["#minecraft:logs"]}], 1: [{Slot: 0b, item_tag: ["#minecraft:logs"]}, {Slot: 1b, id: "minecraft:crafting_table"}, {Slot: 2b, item_tag: ["#minecraft:logs"]}], 2: [{Slot: 0b, id: "minecraft:smooth_stone"}, {Slot: 1b, id: "minecraft:smooth_stone"}, {Slot: 2b, id: "minecraft:smooth_stone"}]} run loot replace block ~ ~ ~ container.16 loot smithed.crafter:blocks/table

theres a thing

#

here

#

which says

#

smithed.crafter:blocks/table

#

what shud i put incase of this

paper falcon
#

That determines the output of the craft

stoic ibex
#

ok

#

if i want the outpuit of the craft

#

to be

paper falcon
#

If your output is not in a loot tables, then you can put an item replace block ~ ~ ~ container.16 with <YOUR ITEM>

stoic ibex
#

marvsl has the following entity data: {id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}}

#

can i put this

#

{id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}}

bleak oceanBOT
#
📜 /item

item modify (block <pos>|entity <targets>) <slot> <modifier>

Modifies the items in the specified slot with the specified modifier.

item replace (block <pos>|entity <targets>) <slot> with <item> [<count>]

Replaces the items in the specified slot with the specified items.

item replace (block <pos>|entity <targets>) <slot> from (block <sourcePos>|entity <sourceTarget>) <sourceSlot> [<modifier>]

Copies the source items to the target slot and optionally modifies it with the modifier.

paper falcon
stoic ibex
#

item replace block ~ ~ ~ container.16 with {id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}}

paper falcon
#

instead of the loot command

stoic ibex
#

like tghis?

paper falcon
#

no, it's formatted item replace block ~ ~ ~ container.16 with player_head{...}

#

and then only the stuff inside of tag in the brackets after the type

stoic ibex
#

item replace block ~ ~ ~ container.16 with player_head{tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}

#

this?

paper falcon
#

almost

#

only the stuff inside of tag

#

not tag itself

stoic ibex
#

item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}

paper falcon
#

you can try it in the chat using /item replace entity @s weapon.mainhand with ...

#

to see if it works correctly

#

it also shows most errors

#

maybe you need a command block because it's too long 🤔 or you just trust that it works ^^

stoic ibex
#

ok

#

its not showing

#

any um

#

bugs

#

or errors

#

and

#

its not working

#

XD

#

IT WORKD

#

/item replace entity @p weapon.mainhand with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}

#

YAYYY

#

tysmm!

paper falcon
#

nice

#

does the craft work or just this command for now?

stoic ibex
#

execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0: [{Slot: 0b, item_tag: ["#minecraft:logs"]}, {Slot: 1b, item_tag: ["#minecraft:logs"]}, {Slot: 2b, item_tag: ["#minecraft:logs"]}], 1: [{Slot: 0b, item_tag: ["#minecraft:logs"]}, {Slot: 1b, id: "minecraft:crafting_table"}, {Slot: 2b, item_tag: ["#minecraft:logs"]}], 2: [{Slot: 0b, id: "minecraft:smooth_stone"}, {Slot: 1b, id: "minecraft:smooth_stone"}, {Slot: 2b, id: "minecraft:smooth_stone"}]} run item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}

#

this the command?

stoic ibex
paper falcon
#

not the one you made

#

but yea, it should be this (after the run part)

stoic ibex
#

wait

#

oh no

#

how do i delete this recipe

#

cuz i mistakenly activated it

paper falcon
#

you activated what?

stoic ibex
#

the command blolck

#

with the execute command

paper falcon
#

that shouldnt be a problem

#

the recipes are check every time you try to craft

stoic ibex
#

so if someone tries to craft the custom crafting table

#

they'l get the thing instead?

paper falcon
#

if you didnt change the function, then no it will all work like before

stoic ibex
#

this shud work then

#

right

#

execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}, Id: [I; -124012, 30681, 191513, -61362]}, display: {Lore: ['[""]', '["",{"text":"You need to refine this gem","italic":false,"color":"gray"}]', '["",{"text":"before putting it in the gauntlet!","italic":false,"color":"gray"}]'], Name: '["",{"text":"Unrefined Diamonite Gem","italic":false,"color":"blue"}]'}}}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]} run item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}

paper falcon
#

looks good

stoic ibex
#

ok doesnt work

paper falcon
#

try to remove the extra checks for the player head

#

if it works at all

#

so this:

execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
    1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head"}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
    2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]} run item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}
stoic ibex
#

execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head", Count: 1b, tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]} run item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}

paper falcon
#

yea or that, if try if that works

stoic ibex
#

im replacing @s with @p, shud that be fine

paper falcon
#

no, dont

#

and also, you need to put this in a function

stoic ibex
#

oh

paper falcon
#

and register it using the function tag

#

or else the crafter won't see it

stoic ibex
#

im just doing /execute

paper falcon
#

it wont work in a command block

paper falcon
stoic ibex
paper falcon
#

? what is wrong?

stoic ibex
#

idk

paper falcon
#

like how do you see that something is wrong?

stoic ibex
#

i put it in the command block

#

and it said it was wrong

paper falcon
#

there is a comma too much

stoic ibex
#

hmm

paper falcon
#

I think? I'll check if i can find it 1 sec

stoic ibex
#

im putting the working one

#

in a mcfunction file here

paper falcon
#

best would be to put it in its own function

#

and reference that using the tag

#

thats how you use the library

#

you dont need to touch these files where you are

#

but the working function in its own .mcfunction file

#

and reference it in the file located at data/smithed.crafter/tags/functions/event/recipes.json

#

you only need to touch these 2 files, thats all

stoic ibex
#

ohk

#

so i made a file here

#

{
"values":[
"#smithed.crafter:recipes/shaped"
]

"values":[
    "#powerstones:functions/diamonite"
]

}

#

this shud be this?

paper falcon
#

no, it's {"values":["first function","second function"]}

#

so you put it in the same array

#

oh and for your one - you don't need the # and you dont need the functions/

#

its the same thing you put after /function when trying to run from chat

stoic ibex
#

{
"values":[
"#smithed.crafter:recipes/shaped","powerstones:diamonite"
]
}

#

this then?

paper falcon
#
execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
    1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head", tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}}}}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],
    2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]} run item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}
#

this should be fixed, it was missing 3 }

stoic ibex
#

ty

paper falcon
#

looks like it yes

stoic ibex
paper falcon
#

does the function not show up at all when trying to /function it?

stoic ibex
#

no

#

it doesnt

paper falcon
#

but the command you put in there doesnt show an error in a command block?

stoic ibex
#

nope

#

this is ur fixed command

#

which works in command block

#

put into a file

paper falcon
#

1 sec imma remove the weird whitespaces

#
execute store result score @s smithed.data if entity @s[scores={smithed.data=0}] if data storage smithed.crafter:input recipe{0:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,item_tag:["#minecraft:lava_bucket"]}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],    1:[{Slot:0b,item_tag:["#minecraft:lava_bucket"]}, {Slot:1b,id: "minecraft:player_head", tag: {SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZjZWJlNTRkYmMzNDVlYTdlMjIyMDZmNzAzZTZiMzNiZWZiZTk1YjZhOTE4YmQxNzU0Yjc2MTg4YmM2NWJiNSJ9fX0="}]}}}}, {Slot:2b,item_tag:["#minecraft:lava_bucket"]}],    2:[{Slot:0b,id:"minecraft:lava_bucket"}, {Slot:1b,id:"minecraft:beacon"}, {Slot:2b,id:"minecraft:lava_bucket"}]} run item replace block ~ ~ ~ container.16 with player_head{SkullOwner: {Properties: {textures: [{Value: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTUwNjQ5NjI2YzQxMDEzNTJjNTk5NWM1M2I0OGJmZjYwYTkzODIxMmI3Y2U5MDI0MTVmZWI3NmVhMjczYjM1ZiJ9fX0="}]}, Id: [I; -124012, 17481, 191513, -34962]}, display: {Lore: ['[""]', '["",{"text":"Combine all the gems with","italic":false,"color":"gray"}]', '["",{"text":"the ","italic":false,"color":"gray"},{"text":"Laminara Gauntlet","italic":false,"color":"gold"},{"text":" to","italic":false,"color":"gray"}]', '["",{"text":"unlock its potential.","italic":false,"color":"gray"}]'], Name: '["",{"text":"Refined Diamonite Gem","italic":false,"color":"blue"}]'}}
#

it had new lines, they get converted to spaces in a command block but break it in a function file

stoic ibex
#

ok

#

now the function shows up

paper falcon
#

👍

#

try a /reload

#

and then try the craft again

stoic ibex
#

ok

#

craft dont work

paper falcon
#

oh, I know what it is

#

you are checking for item_tag:["#minecraft:lava_bucket"]

#

but pretty sure that should just be id:"minecraft:lava_bucket"

#

a tag would be something else entirely

stoic ibex
#

NO WAY

#

IT WORKED

#

LES GOOOOOO

paper falcon
#

poog 🚀

stoic ibex
#

LES GOOOO

#

TYSM

#

UR THE BEST

paper falcon
#

:D glad it works

stoic ibex
#

now time to do this 5 more times

#

boom 2nd one

#

THIRD

#

ok done all

#

les go

paper falcon
#

🚀 dph_fire

stoic ibex
#

ok

#

um

#

confusing time now

#

basically

#

i need to surround a gauntlet

stoic ibex
#

yo

#

my guy

#

im having a headache with this

#

any way to format it so taht its easiere

#

THIS IS ALL I SEE RN

#

and its a mess

#

and i cant figure out where to copy paste what

sour lily
#

lol discord cdn is down

stoic ibex
stoic ibex
sour lily
#

omg im stupid

#

that was a screenshot of the status page

stoic ibex
#

XD

#

that was indeed

#

a little stupid

stoic ibex
#

hmmm

#

makes sense

#

i saw it

stoic ibex
#

can someone figure this out

#

this isnt working

#

@sour lily

#

this might be my death

#

but

#

im so frustrated

#

@quasi gyro

#

i need pucki man

quasi gyro
#

What's the problem?

#

can I get a dldr?

stoic ibex
#

im crafting]

#

recipe

#

stuff

#

with crafter

#

and

#

the above statement

#

isnt working

paper falcon
#

I think 0 Slot:2b is missing something, the texture value doesnt end in an =, not quite sure though:

stoic ibex
#

OMFG

#

I

#

UR THE BEST

#

it worked

paper falcon
#

pog

stoic ibex
#

the most

#

like

#

hardest thing

#

was done

#

cuz of u

paper falcon
#

:)

stoic ibex
#

:D

#

my brain

#

got poofed

bleak oceanBOT
#
:information_source: Editor

While you can make datapacks using any ordinary text editor, our prefered editor of choice is VSCode!
It is aviable for Windows, Linux and MacOS (which means it runs on almost all devices) and has lots of great extensions which make the creation of datapacks a whole lot easier!

Our favourite VSCode extensions are:
language-mcfunction - Provides beautiful syntax highlighting for .mcfunction
Data-pack Helper Plus - Despite how "datapack" is spelled in the title, this adds some really helpful features like auto completion for commands!
NBT Viewer - Allows you to view 3D models of your .nbt files, directly in VSCode!
Datapack Icons - Adds cool icons to datapack folders and files

paper falcon
#

I suggest using vscode with a syntax highlighter ^^

#

then its a little easier to find your ways through the commands :P

stoic ibex
#

alr

stoic ibex
#

ty

tardy inletBOT
# tardy inlet
Question Closed

Your question, #1195386664823046224 (can you add a custom crafting item to a crafting recipe), was resolved!

Original Message

this is the crafting recipe i am trynna add
and i wanna turn it into the other one

i dont think it is possible
both are player heads and i dont think it will work so can someone tell me another way around this?
maybe another solution to crafting or smth

`{

"type": "minecraft:crafting_shaped",

"pattern": [

"###",

"#B#",

"#Z#"

],

"key": {

"#": {

"item": "minecraft:lava_bucket"

},

"B": {

"item": "powerstones:unrdiamonite"

},

"Z": {

"item": "minecraft:beacon"

}

},

"result": {

"item": "minecraft:knowledge_book",

"count": 1

}

}`

Duration open

1d20h16m

tardy inletBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.

tardy inletBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.

tardy inletBOT
#
🗑️ Recycling Thread

This thread has been inactive for some time, so I'm going to archive it.

If you're still using the thread, just send a message and it'll pop back on the thread list.