#Need help (Food with an effect)
1 messages · Page 1 of 1 (latest)
https://github.com/SmokeyStack/adk-lib you can use my library
❤️
Any content log?
Did you define it in the item_texture.json file?
"minecraft:icon": "kezm_sweetberrie_coffee" Try this?
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
Ok so, do you have the beta apis toggle enabled? Also it shouldnt have \" the escape characters fyi
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""
You just need one quote, not two
"adk-lib:on_consume_food_effect"
Is the Holiday Creator Features toggle turned on by any chance? If so it needs to be turned off
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
I see ah, category isnt valid. Ot needs to be
"menu_category":{
"category": "nature"
}
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
Ohhh right
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
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
"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
Is there any content log?
getting it now
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
Yep, that's what I thought, they bumped it from 1.12.0-beta to 1.13.0-beta
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
Not to my knowledge
ok
@leaden sequoia https://github.com/SmokeyStack/adk-lib/releases/tag/0.2.0-1.21.10.20 I pushed the update, downloading this pack should work for preview 1.21.10 now. When 1.21 releases, I'll push a new update that can specifically work for 1.21 beta apis
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
Right, 1.21.0 isn't a valid format version for some reason, use 1.20.80 or 1.21.10
@wheat goblet can you help me too? (pls)