2022-06-07 20:42:18 +02:00
{
2022-07-20 21:25:32 +02:00
"$id" : "blockception.minecraft.behavior.items.minecraft:food" ,
2022-06-07 20:42:18 +02:00
"title" : "Food" ,
"description" : "When an item has a food component, it becomes edible to the player." ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"can_always_eat" : {
"title" : "Can Always Eat" ,
"description" : "If true you can always eat this item (even when not hungry), defaults to false." ,
"type" : "boolean" ,
"default" : false
} ,
"nutrition" : { "title" : "Nutrition" , "description" : "How much nutrition does this food item give the player when eaten." , "type" : "number" } ,
"on_consume" : {
"title" : "On Consume" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-06-07 20:42:18 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2022-07-22 19:41:04 +02:00
"event" : { "type" : "string" , "title" : "Event" , "description" : "UNDOCUMENTED." , "$comment" : "UNDOCUMENTED" } ,
"target" : { "type" : "string" , "title" : "Target" , "description" : "UNDOCUMENTED." , "$comment" : "UNDOCUMENTED" , "enum" : [ "self" ] }
2022-06-07 20:42:18 +02:00
}
} ,
2022-07-20 21:25:32 +02:00
"is_meat" : {
"title" : "Is Meat" ,
"description" : "If true, this food item is considered meat." ,
"type" : "boolean" ,
"default" : false
2022-07-20 21:34:51 +02:00
}
} ,
"saturation_modifier" : {
"title" : "Saturation Modifier" ,
"description" : "Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item." ,
"oneOf" : [
{ "type" : "number" } ,
{
"type" : "string" ,
"enum" : [ "poor" , "low" ]
}
]
} ,
"using_converts_to" : {
"title" : "Using Converts To" ,
"description" : "When used, convert the *this* item to the one specified by `using_converts_to`." ,
"type" : "string"
} ,
"effects" : {
"title" : "Effects" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-07-20 21:34:51 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "array" ,
"items" : {
"title" : "Effect" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-07-20 21:25:32 +02:00
"$comment" : "UNDOCUMENTED" ,
2022-07-20 21:34:51 +02:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"name" : {
"title" : "Name" ,
2022-07-22 19:41:04 +02:00
"description" : "UNDOCUMENTED." ,
2022-07-20 21:34:51 +02:00
"$comment" : "UNDOCUMENTED" ,
"type" : "string"
} ,
"duration" : {
"type" : "integer" ,
"default" : 0 ,
"minimum" : 0 ,
"description" : "The duration of the effect." ,
"$comment" : "UNDOCUMENTED"
} ,
"amplifier" : {
"type" : "integer" ,
"default" : 0 ,
"minimum" : 0 ,
"description" : "The amplifier of the effect." ,
"$comment" : "UNDOCUMENTED"
2022-07-20 21:25:32 +02:00
}
}
2022-06-07 20:42:18 +02:00
}
}
}