#Food Script Error

1 messages · Page 1 of 1 (latest)

carmine anvil
#

I have no idea why this is happening. I used the same code as last time but only changed the name space. Error: [Scripting][warning]-Item custom component 'eminance:food_effects' is not being used by an item

#

{
"format_version": "1.20.50",
"minecraft:item": {
"description": {
"identifier": "rose:scarlet_rosefruit",
"menu_category": {
"category": "nature",
"group": "itemGroup.name.crop"
}
},
"components": {
"minecraft:max_stack_size": 64,
"minecraft:icon": {
"texture": "scarlet_rosefruit"
},
"minecraft:enchantable": {
"slot": "sword",
"value": 1
},
"minecraft:food": {
"nutrition": 6,
"saturation_modifier": 5
},
"minecraft:use_modifiers": {
"movement_modifier": 0.32,
"use_duration": 1.6
},
"minecraft:use_animation": "eat",
"eminance:food_effects": [
{
"name": "absorption",
"duration": 6000,
"amplifier": 4
},
{
"name": "regeneration",
"duration": 6000,
"amplifier": 4
},
{
"name": "nausea",
"duration": 6000,
"amplifier": 1
},
{
"name": "weakness",
"duration": 6000,
"amplifier": 2
}
]
}
}
}

cosmic nymph
#

I think that format requires version 1.21.90, also show your script code.

carmine anvil
#

It came up with more errors: [Item][error]- Error Parsing Item 'rose:scarlet_rosefruit':

[Item][warning]-rose:scarlet_rosefruit -> components -> minecraft:icon -> texture: this member was found in the input, but is not present in the Schema

[Item][error]- Failed to parse field ' -> description -> menu_category -> group: string must be prefixed with a namespace (eg. namespace:value)'

[Scripting][warning]-Item custom component 'eminance:food_effects' is not being used by an item