Add Item Examples (#182)

Add Examples to Item Components from MS-Learn Website
This commit is contained in:
DW623
2023-08-17 11:04:39 -07:00
committed by GitHub
parent 2abff2794e
commit d3a8c7a4a4
16 changed files with 112 additions and 34 deletions

View File

@@ -24,19 +24,27 @@
}
},
"charge_on_draw": { "title": "Charge On Draw", "description": "Charge on draw? Default is set to false.", "default": false, "type": "boolean" },
"launch_power_scale": {
"title": "Launch Power Scale",
"description": "Launch power scale. Default is set to 1.0.",
"default": 1.0,
"type": "number"
},
"max_draw_duration": { "title": "Maximum Draw Duration", "description": "Draw Duration. Default is set to 0.", "default": 0, "type": "number" },
"max_launch_power": { "title": "Maximum Launch Power", "description": "Launch power. Default is set to 1.0.", "default": 0, "type": "number" },
"scale_power_by_draw_duration": {
"title": "Scale Power By Draw Duration",
"description": "Scale power by draw duration? Default is set to false.",
"default": false,
"type": "boolean"
}
}
},
"examples": [
{
"ammunition" :[
{
"item" :"custom_projectile",
"use_offhand" :true,
"search_inventory" :true,
"use_in_creative" :true
}
],
"max_draw_duration" :1.0,
"scale_power_by_draw_duration" :true,
"charge_on_draw" :false
}
]
}