#Custom Food

1 messages · Page 1 of 1 (latest)

modern elk
#

I made a datapack that gives you a custom food with a custom recipe, the problem is that it should give me some effects but its not working

candid epochBOT
#

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

fallow steppe
#

what does the advancement look like?

modern elk
#

of which one? eat_blue_berries.json or blue_berries.json

limpid burrow
#

Presumably eat_blue_berries

fallow steppe
#

the one that calls the function

modern elk
#

oh there is an error i think

limpid burrow
#

Yep, looks like the correct path would be custom_food:crafted/eat_blue_berrie

modern elk
#

k ill try now

#

ty

#

im sure that fixed something but still doesnt work :(

#

you want me to show another file?

modern elk
limpid burrow
#

Probably more useful for us to see is the NBT of the Blue Berry item

modern elk
#

the other one is for the recipe of the item

limpid burrow
#

Is it obtained through a loot table? Just a /give command?

modern elk
#

just a give command

limpid burrow
#

OK, so the nbt of your cookie give command does not contain the data that your advancement criteria is looking for

modern elk
#

oh

limpid burrow
#

Which is food:\"blue_berrie\"

modern elk
#

yea

#

i need to put that in blue_berrie.json to connect both advancments?

limpid burrow
#

No, what is blue_berrie.json

limpid burrow
# modern elk

You need to put that in the NBT of your give command, this right here

modern elk
#

ohh

#

i understand

#

im gonna remake the item in the give generator

#

adding the nbt

limpid burrow
#

Sure

modern elk
#

where do I have to add it?

#

in tags?

#

give @a cookie{CustomModelData:1060001,"nbt": "{food:"blue_berrie"}",display:{Name:'[{"text":"Blue Berrie","italic":false}]'}} 1

dull gust
#

give @a cookie{CustomModelData:1060001,blue_berrie:1,display:{Name:'[{"text":"Blue Berrie","italic":false}]'}}

modern elk
#

oh ok

limpid burrow
modern elk
# modern elk

so here i need to put "nbt": "{food:"blue_berrie:1"}" ?

limpid burrow
#

no.

limpid burrow
dull gust
modern elk
#

k

limpid burrow
modern elk
dull gust
modern elk
#

nice

#

im gonna test it

dull gust
modern elk
#

YES

#

it workss

#

tysm!

candid epochBOT
# candid epoch <@&1201956957406109788>
Question Closed

Your question, #1203437409954431017 (Custom Food), was resolved!

Original Message

I made a datapack that gives you a custom food with a custom recipe, the problem is that it should give me some effects but its not working

Duration open

28m

candid epochBOT
dull gust
#

oops

candid epochBOT
candid epochBOT
#
🗑️ 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.

candid epochBOT
#
🗑️ 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.