Files
minecraft-bedrock-json-schemas/source/behavior/items/format/components/throwable.json

56 lines
1.8 KiB
JSON
Raw Normal View History

2022-06-07 20:42:18 +02:00
{
2022-07-20 21:25:32 +02:00
"$id": "blockception.minecraft.behavior.items.minecraft:",
2022-06-07 20:42:18 +02:00
"title": "Throwable",
"description": "Throwable item component. Throwable items, such as a snowball.",
"type": "object",
"additionalProperties": false,
"properties": {
"do_swing_animation": {
"title": "Do Swing Animation",
"description": "Whether the item should use the swing animation when thrown. Default is set to false.",
"default": false,
"type": "boolean"
},
"launch_power_scale": {
"title": "Launch Power Scale",
"description": "The scale at which the power of the throw increases. Default is set to 1.0.",
"default": 1.0,
"type": "number"
},
"max_draw_duration": {
"title": "Maximum Draw Duration",
"description": "The maximum duration to draw a throwable item. Default is set to 0.0.",
"default": 0,
"type": "number"
},
"min_draw_duration": {
"title": "Minimum Draw Duration",
"description": "The minimum duration to draw a throwable item. Default is set to 0.0.",
"default": 0,
"type": "number"
},
"max_launch_power": {
"title": "Maximum Launch Power",
"description": "The maximum power to launch the throwable item. Default is set to 1.0.",
"default": 1.0,
"type": "number"
},
"scale_power_by_draw_duration": {
"title": "Scale Power By Draw Duration",
"description": "Whether or not the power of the throw increases with duration charged. Default is set to false.",
"default": false,
"type": "boolean"
}
},
"examples": [
{
"do_swing_animation" : false,
"min_draw_duration" : 0.0,
"max_draw_duration" : 1.0,
"launch_power_scale" : 1.0,
"max_launch_power" : 2.0,
"scale_power_by_draw_duration" : false
}
]
2022-06-07 20:42:18 +02:00
}