Update blocks and items to newest format (#215)
* Add emit_vibration * Add min and max bounds to collision_box * Remove experimental label from crafting_table * Fix flammable definition * Add geometry.cross * Add culling property to block_culling_rules * Add max length to loot * Remove part visibility * Remove experimental label from placement filter * Add min max bounds to selection box * Remove unit cube as deprecated * Remove armor component * Add protection to wearable * Remove render offsets * Remove on_dig * Remove dye powder * Remove knockback resistance * Update durability * Remove foil * Add glint * Update hand_equipped * Update food * Remove frame from :icon * Remove max damage * Remove on_use * Remove on_use_on * Update max stack size * Update repairable * Updated :shooter * Update stacked by data * Add use modifiers * Remove use_duration * Remove weapon * Add allow_off_hand * Add can_destroy_in_creative * Add damage * Fix max_stack_size * Add enchantable * Add hover text color * Add liquid clipped * Add record * Add should_despawn * Tags component * Add use_animation * Update item components * Update block components * Update source/behavior/entities/format/events.json --------- Co-authored-by: Daan Verstraten <daanverstraten@hotmail.com>
This commit is contained in:
@@ -11,74 +11,17 @@
|
||||
"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",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
||||
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "enum": ["self"] }
|
||||
}
|
||||
"nutrition": { "title": "Nutrition", "description": "How much nutrition does this food item give the player when eaten.", "type": "number", "default": 0 },
|
||||
"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.",
|
||||
"type": "number",
|
||||
"default": 0.6
|
||||
},
|
||||
"is_meat": {
|
||||
"title": "Is Meat",
|
||||
"description": "If true, this food item is considered meat.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Effect",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
"using_converts_to": {
|
||||
"title": "Using Converts To",
|
||||
"description": "When used, convert the *this* item to the one specified by `using_converts_to`.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user