#Need help (Food with an effect)

1 messages · Page 1 of 1 (latest)

wheat goblet
#

Youll need to use custom components

leaden sequoia
#

❤️

wheat goblet
#

Any content log?

#

Did you define it in the item_texture.json file?

#

"minecraft:icon": "kezm_sweetberrie_coffee" Try this?

leaden sequoia
#

TY

#

❤️

leaden sequoia
#

ok so im having another problem now , when i add the custom components it breaks my item (no longer has the icon or any of its useability )

#
                "\"adk-lib:on_consume_food_effect\""
            ],
            "minecraft:tags": {
                "tags": [
                    "\"adk-lib:food_speed_600_1\""
                ]
            }
        }
    }
}```
#

this is the second half of my item code ( this section causes it to break

wheat goblet
leaden sequoia
#

yes beta apis is toggled, i switch back and forth between bridges tree editor and text editor i think thats where the \ comes from

#
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "kezm:sweetberrie_coffee",
            "category": "nature"
        },
        "components": {
            "minecraft:food": {
                "nutrition": 8,
                "saturation_modifier": 2,
                "can_always_eat": true,
                "using_converts_to": "minecraft:glass_bottle"
            },
            "minecraft:use_animation": "drink",
            "minecraft:use_modifiers": {
                "use_duration": 1.2
            },
            "minecraft:icon": {
                "textures": {
                    "default": "kezm_sweetberrie_coffee"
                }
            },
            "minecraft:max_stack_size": 16,
            "minecraft:custom_components": [
                ""adk-lib:on_consume_food_effect""
            ],
            "minecraft:tags": {
                "tags": [
                    ""adk-lib:food_speed_600_1_true""
                ]
            }
        }
    }
}``` this is my new item json it has errors tho
#

"\"adk-lib:on_consume_food_effect\""

#

""adk-lib:on_consume_food_effect""

wheat goblet
#

You just need one quote, not two

leaden sequoia
#

"adk-lib:on_consume_food_effect"

wheat goblet
#

Is the Holiday Creator Features toggle turned on by any chance? If so it needs to be turned off

leaden sequoia
#

oh

#

ok

#

i had it on, turning it off

#
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "kezm:sweetberrie_coffee",
            "category": "nature"
        },
        "components": {
            "minecraft:food": {
                "nutrition": 8,
                "saturation_modifier": 2,
                "can_always_eat": true,
                "using_converts_to": "minecraft:glass_bottle"
            },
            "minecraft:use_animation": "drink",
            "minecraft:use_modifiers": {
                "use_duration": 1.2
            },
            "minecraft:icon": {
                "textures": {
                    "default": "kezm_sweetberrie_coffee"
                }
            },
            "minecraft:max_stack_size": 16,
            "minecraft:custom_components": [
                "adk-lib:on_consume_food_effect"
            ],
            "minecraft:tags": {
                "tags": [
                    "adk-lib:food_speed_600_1_true"
                ]
            }
        }
    }
}``` ive got this now
#

theirs no errors in the json but it still doesnt load the item lol

#

grabbing the log

wheat goblet
leaden sequoia
#

ty <3, slight problem the effect isnt working

#

it eats the item no problem

#

but for somereason the effect isnt being given

#
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "kezm:sweetberrie_coffee",
            "menu_category": {
                "category": "nature"
            }
        },
        "components": {
            "minecraft:food": {
                "nutrition": 8,
                "saturation_modifier": 2,
                "can_always_eat": true,
                "using_converts_to": "minecraft:glass_bottle"
            },
            "minecraft:use_animation": "drink",
            "minecraft:use_modifiers": {
                "use_duration": 1.2
            },
            "minecraft:icon": {
                "textures": {
                    "default": "kezm_sweetberrie_coffee"
                }
            },
            "minecraft:max_stack_size": 16,
            "minecraft:custom_components": [
                "adk-lib:on_consume_food_effect"
            ],
            "minecraft:tags": {
                "tags": [
                    "adk-lib:food_speed_600_1_true"
                ]
            }
        }
    }
}```
#

current item json

wheat goblet
#

Ohhh right facepalm i recall onConsume was introduced in 1.21.0. Apologies then youll need to wait for 1.21 to release or use the Preview version

leaden sequoia
#

oh lol

#

thats my bad i forgot to mention i was on a previous version

#

updating it now ig lmao

#

thanks for all the help you have been extremely helpful

leaden sequoia
#
    "format_version": "1.21.0",
    "minecraft:item": {
        "description": {
            "identifier": "kezm:sweetberrie_coffee",
            "menu_category": {
                "category": "nature"
            }
        },
        "components": {
            "minecraft:food": {
                "nutrition": 8,
                "saturation_modifier": 2,
                "can_always_eat": true,
                "using_converts_to": "kezm:glass_jar"
            },
            "minecraft:use_animation": "drink",
            "minecraft:use_modifiers": {
                "use_duration": 1.2
            },
            "minecraft:icon": {
                "textures": {
                    "default": "kezm_sweetberrie_coffee"
                }
            },
            "minecraft:max_stack_size": 16,
            "minecraft:custom_components": [
                "adk-lib:on_consume_food_effect"
            ],
            "minecraft:tags": {
                "tags": [
                    "adk-lib:food_speed_600_1_true"
                ]
            }
        }
    }
}  ``` theirs no errors but it just doesnt give the potion effect
#

item loads has its name has its properties, just doesnt give the effect

wheat goblet
leaden sequoia
#

getting it now

wheat goblet
#

Oh I see what's wrong right now, you're on 1.21.10 preview right? Makes sense, I'll push an update out right now to fix it

leaden sequoia
#

ok bet, still grabbing log

wheat goblet
#

Yep, that's what I thought, they bumped it from 1.12.0-beta to 1.13.0-beta

leaden sequoia
#

did they change the recipes in 1.21, all recipes i have that give more than 1 item back no longer work in this newer version

leaden sequoia
#

ok

wheat goblet
leaden sequoia
#

TY gonna test it out now ❤️

#

IT WORKS !!!!!

leaden sequoia
#

changed somthing and it completly broke the item

#
    "format_version": "1.21.0",
    "minecraft:item": {
        "description": {
            "identifier": "kezm:sweetberrie_coffee",
            "menu_category": {
                "category": "nature"
            }
        },
        "components": {
            "minecraft:food": {
                "nutrition": 8,
                "saturation_modifier": 2,
                "can_always_eat": true,
                "using_converts_to": "kezm:glass_jar"
            },
            "minecraft:use_animation": "drink",
            "minecraft:use_modifiers": {
                "use_duration": 1.2
            },
            "minecraft:icon": {
                "textures": {
                    "default": "kezm_sweetberrie_coffee"
                }
            },
            "minecraft:max_stack_size": 16,
            "minecraft:custom_components": [
                "adk-lib:on_consume_food_effect"
            ],
            "minecraft:tags": {
                "tags": [
                    "adk-lib:food_speed_600_1_true"
                ]
            }
        }
    }
}```
#

item json

wheat goblet
#

Right, 1.21.0 isn't a valid format version for some reason, use 1.20.80 or 1.21.10

leaden sequoia
#

oh

#

ok ty

#

you respond fast lol

somber sphinx
#

@wheat goblet can you help me too? (pls)