@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
110 lines • 3.55 kB
JSON
{
"fields": [
{
"id": "do_swing_animation",
"title": "do_swing_animation",
"description": "Determines whether the item should use the swing animation when thrown. Default is set to false.",
"dataType": 1,
"samples": {
"/vanilla/behavior_pack/items/wind_charge.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": true
}
],
"/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": true
}
]
}
},
{
"id": "min_draw_duration",
"title": "min_draw_duration",
"description": "The minimum duration to draw a throwable item. Default is set to 0.0.",
"dataType": 3
},
{
"id": "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.",
"dataType": 1
},
{
"id": "max_draw_duration",
"title": "max_draw_duration",
"description": "The maximum duration to draw a throwable item. Default is set to 0.0.",
"dataType": 3
},
{
"id": "launch_power_scale",
"title": "launch_power_scale",
"description": "The scale at which the power of the throw increases. Default is set to 1.0.",
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/items/wind_charge.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": 1.5
}
],
"/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": 1
}
]
}
},
{
"id": "max_launch_power",
"title": "max_launch_power",
"description": "The maximum power to launch the throwable item. Default is set to 1.0.",
"dataType": 3,
"samples": {
"/vanilla/behavior_pack/items/wind_charge.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": 1.5
}
],
"/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": 1
}
]
}
}
],
"description": "Sets the throwable item component.",
"title": "Throwable",
"samples": {
"/vanilla/behavior_pack/items/wind_charge.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": {
"do_swing_animation": true,
"launch_power_scale": 1.5,
"max_launch_power": 1.5
}
}
],
"/samples/custom_items/behavior_packs/custom_item/items/my_sword_chuck.json": [
{
"path": "/minecraft:item/components/minecraft:throwable/",
"content": {
"do_swing_animation": true,
"launch_power_scale": 1,
"max_draw_duration": 0,
"max_launch_power": 1,
"min_draw_duration": 0,
"scale_power_by_draw_duration": false
}
}
]
},
"id": "minecraft:throwable"
}