diff --git a/behavior/items/items.json b/behavior/items/items.json index 3481eecd..22332e7d 100644 --- a/behavior/items/items.json +++ b/behavior/items/items.json @@ -1,715 +1 @@ -{ - "$id": "blockception.minecraft.behavior.items", - "description": "Minecraft items 1.16.200", - "required": ["format_version", "minecraft:item"], - "title": "Item", - "type": "object", - "properties": { "format_version": { "$ref": "#/definitions/A" }, "minecraft:item": { "$ref": "#/definitions/B" } }, - "definitions": { - "A": { - "title": "Format Version", - "description": "A version that tells minecraft what type of data format can be expected when reading this file.", - "pattern": "^([1-9]+)\\.([0-9]+)\\.([0-9]+)$", - "type": "string", - "default": "1.19.0", - "examples": ["1.19.0", "1.18.30", "1.18.20", "1.18.10", "1.18.0", "1.17.0", "1.16.0", "1.15.0", "1.14.0", "1.13.0", "1.12.0", "1.10.0", "1.8.0"], - "defaultSnippets": [{ "label": "New Format version", "body": "1.${1|8,10,12,17,18|}.${3|2|0|}" }] - }, - "C": { - "description": "A minecraft item identifier", - "pattern": "^[0-9a-zA-Z:_\\-\\.]+$", - "title": "Item Identifier", - "type": "string", - "defaultSnippets": [{ "label": "New Identifier", "body": "$1:$2" }] - }, - "D": { - "title": "Armor", - "description": "The armor item component determines the amount of protection you have in your armor item.", - "type": "object", - "additionalProperties": false, - "required": ["protection", "texture_type"], - "properties": { - "protection": { "type": "integer", "description": "How much protection does the armor item have.", "title": "Protection", "minimum": 0 }, - "texture_type": { - "type": "string", - "default": "gold", - "description": "Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.", - "title": "Texture Type", - "enum": ["gold", "none", "leather", "chain", "iron", "diamond", "elytra", "turtle", "netherite"] - } - } - }, - "E_use_on_item": { - "type": "object", - "title": "Allowed Block", - "description": "A block descriptor that allows to be placed", - "properties": { "tags": { "title": "Tags", "description": "Tags", "$ref": "#/definitions/F" } } - }, - "F": { - "type": "string", - "title": "Molang", - "description": "Molang definition", - "format": "molang", - "examples": ["query.variant", "(1.0)", "query.", "variable.=;"], - "defaultSnippets": [{ "label": "New Molang", "body": "$1" }] - }, - "E": { - "title": "Block Placer", - "description": "Planter item component. planter items are items that can be planted.", - "type": "object", - "additionalProperties": false, - "required": ["block"], - "properties": { - "block": { "type": "string", "description": "Set the placement block name for the planter item.", "title": "Block" }, - "use_on": { - "description": "List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.", - "title": "Use On", - "type": "array", - "items": { "$ref": "#/definitions/E_use_on_item" } - } - } - }, - "G": { - "title": "Cooldown", - "description": "Cool down time for a component. After you use an item it becomes unusable for the duration specified by the `cool down time` setting in this component.", - "type": "object", - "additionalProperties": false, - "required": ["category", "duration"], - "properties": { - "category": { "type": "string", "description": "The type of cool down for this item.", "title": "Category" }, - "duration": { "description": "The duration of time this item will spend cooling down before becoming usable again.", "title": "Duration", "type": "number" } - } - }, - "H": { - "title": "Digger", - "description": "Digger item. Component put on items that dig.", - "type": "object", - "additionalProperties": false, - "required": ["destroy_speeds"], - "properties": { - "use_efficiency": { "title": "Use Efficiency", "type": "boolean", "description": "Toggles if the item will be used efficiently", "default": false }, - "destroy_speeds": { - "type": "array", - "title": "Destroy Speeds", - "description": "Destroy speed per block.", - "items": { - "title": "Destroy Speed", - "description": "Destroy speed per block.", - "type": "object", - "additionalProperties": false, - "properties": { - "speed": { "title": "Speed", "description": "Speed", "type": "number" }, - "on_dig": { "type": "string", "title": "On Dig", "description": "Trigger for when you dig a block that isn't listed in destroy_speeds" }, - "block": { - "title": "Block", - "oneOf": [ - { "type": "string", "description": "The block identifier" }, - { - "type": "object", - "additionalProperties": false, - "description": "Block descriptor", - "properties": { "any_tag": { "type": "array", "title": "Any Block Tag", "description": "The block tag", "items": { "type": "string", "title": "Block Tag" } } } - } - ] - } - } - } - }, - "on_dig": { "type": "string", "title": "On Dig", "description": "Trigger for when you dig a block that isn't listed in destroy_speeds" } - } - }, - "I": { - "title": "Display Name", - "description": "Display Name item component. Display Names display the name of an item.", - "type": "object", - "additionalProperties": false, - "required": ["value"], - "properties": { "value": { "type": "string", "title": "Value", "description": "Set the display name for an item." } } - }, - "J": { - "title": "Durability", - "description": "Durability item component: how much damage can this item take before breaking.", - "type": "object", - "additionalProperties": false, - "required": ["damage_chance"], - "properties": { - "damage_chance": { - "type": "object", - "title": "Damange Chance", - "description": "Damange chance", - "additionalProperties": false, - "required": ["min", "max"], - "properties": { "min": { "title": "Min", "type": "integer", "description": "The minimum" }, "max": { "title": "Max", "type": "integer", "description": "The minimum" } } - }, - "max_durability": { "title": "Maximum Durability", "description": "Maximum durability is the amount of damage that this item can take before breaking.", "type": "number" } - } - }, - "BA": { - "title": "Dye Powder", - "description": "Dye powder, there are 16 kinds of dye.", - "type": "object", - "additionalProperties": false, - "required": ["color"], - "properties": { - "color": { - "type": "string", - "title": "Color", - "description": "Defines what color the dye is.", - "enum": ["black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightblue", "magenta", "orange", "white"] - } - } - }, - "BB": { - "title": "Entity Placer", - "description": "Entity placer item component. You can specifiy allowed blocks that the item is restricted to.", - "type": "object", - "additionalProperties": false, - "required": ["entity"], - "properties": { - "entity": { "type": "string", "title": "Entity", "description": "The entity to be placed in the world." }, - "dispense_on": { - "type": "array", - "title": "Dispense On", - "description": "List of block descriptors that contain blocks that this item can be dispensed on. If left empty, all blocks will be allowed.", - "items": { "title": "Dispense On", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - }, - "use_on": { - "type": "array", - "title": "Use On", - "description": "List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.", - "items": { "title": "Use On", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - } - } - }, - "BC": { - "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", - "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"] } - } - }, - "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" - }, - "using_converts_to": { "title": "Using Converts To", "description": "When used, convert the *this* item to the one specified by `using_converts_to`.", "type": "string" } - } - }, - "BD": { - "title": "Fuel", - "description": "Fuel component. Allows this item to be used as fuel in a furnace to `cook` other items.", - "type": "object", - "additionalProperties": false, - "required": ["duration"], - "properties": { "duration": { "type": "number", "title": "Duration", "description": "How long in seconds will this fuel cook items for." } } - }, - "BE": { "additionalProperties": false, "required": ["texture"], "type": "boolean", "title": "Hand Equipped", "description": "Is this a hand equipped item." }, - "BF": { - "title": "Icon", - "description": "The icon item componenent determines the icon to represent the item in the UI and elsewhere.", - "type": "object", - "additionalProperties": false, - "required": ["texture"], - "properties": { - "frame": { "type": "string", "title": "Frame", "description": "An index or expression for which frame of the icon to display. Default resolves to 0.", "default": 0 }, - "legacy_id": { "type": "string", "title": "Texture", "description": "Legacy texture id for older item icons." }, - "texture": { - "type": "string", - "title": "Texture", - "description": "The key from the resource_pack/textures/item_texture.json `texture_data` object associated with the texture file Example: blaze_powder." - } - } - }, - "BG": { - "title": "Knockback Resistance", - "description": "Knockback Resistance Item. Component put on items that provide knockback resistance.", - "type": "object", - "additionalProperties": false, - "required": ["protection"], - "properties": { "protection": { "title": "Protection", "description": "Amount of knockback resistance provided with the total maximum protection being 1.0", "type": "number" } } - }, - "BH": { "additionalProperties": false, "required": ["texture"], "type": "integer", "title": "Max Stack Size", "description": "Maximum stack size.", "minimum": 0 }, - "BI": { - "title": "On Use On", - "description": "The on_use_on item component allows you to receive an event when the item is used on a block in the world.", - "type": "object", - "additionalProperties": false, - "required": ["on_use_on"], - "properties": { - "on_use": { - "title": "On Use", - "description": "Event trigger for when the item is used.", - "type": "object", - "additionalProperties": false, - "properties": { - "event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["block"] } - } - } - } - }, - "BJ": { - "title": "On Use", - "description": "The on_use item component allows you to receive an event when the item is used.", - "type": "object", - "additionalProperties": false, - "required": ["on_use"], - "properties": { - "on_use": { - "title": "On Use", - "description": "Event trigger for when the item is used.", - "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"] } - } - } - } - }, - "CA": { - "title": "Projectile", - "description": "Projectile item component. projectile items shoot out, like an arrow.", - "type": "object", - "additionalProperties": false, - "required": ["projectile_entity"], - "properties": { - "minimum_critical_power": { "type": "number", "title": "Minimum Critical Power", "description": "How long you must charge a projectile for it to critically hit." }, - "projectile_entity": { "title": "Projectile Entity", "description": "The entity to be fired as a projectile.", "type": "string" } - } - }, - "CB_offset_spec": { - "type": "object", - "title": "Offset", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "additionalProperties": false, - "properties": { - "first_person": { "title": "First Person", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/CB_mode" }, - "thrid_person": { "title": "Thrid Person", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/CB_mode" } - } - }, - "CB_mode": { - "type": "object", - "title": "Mode", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "additionalProperties": false, - "properties": { - "position": { "title": "Position", "description": "The position transformation", "$ref": "#/definitions/CB_vec3" }, - "rotation": { "title": "Rotation", "description": "The rotation transformation", "$ref": "#/definitions/CB_vec3" }, - "scale": { "title": "Scale", "description": "The scale transformation", "$ref": "#/definitions/CB_vec3" } - } - }, - "CB_vec3": { - "type": "array", - "title": "Vector", - "description": "X Y Z", - "items": [ - { "title": "X", "description": "The X tranformation", "type": "number" }, - { "title": "Y", "description": "The Y tranformation", "type": "number" }, - { "title": "Z", "description": "The Z tranformation", "type": "number" } - ] - }, - "CB": { - "title": "Render Offsets", - "description": "Render offsets component: optional values can be given to offset the way the item is rendered.", - "type": "object", - "additionalProperties": false, - "properties": { - "main_hand": { "title": "Main Hand", "description": "Right hand transform data.", "type": "string" }, - "off_hand": { "title": "Off Hand", "description": "Left hand transform data.", "type": "string" } - } - }, - "CD": { - "title": "Molang Number", - "description": "The minecraft molang definition that results in a float", - "anyOf": [{ "type": "string", "minLength": 0 }, { "type": "number" }], - "examples": [0, "query.variant", "(1.0)", "query.", "variable.=;"], - "defaultSnippets": [{ "label": "New Molang", "body": "$1" }] - }, - "CC": { - "title": "Repairable", - "description": "Repairable item component: how much damage can this item repair, what items can repair it.", - "type": "object", - "additionalProperties": false, - "properties": { - "on_repaired": { "title": "On Repaired", "description": "Event that is called when this item has been repaired.", "type": "object" }, - "repair_items": { - "title": "Repair Items", - "description": "Repair item entries.", - "type": "array", - "items": { - "type": "object", - "title": "Repar Item", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "additionalProperties": false, - "properties": { - "items": { - "title": "Items", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "array", - "items": { "type": "string", "title": "Item", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - }, - "repair_amount": { "title": "Repair Amount", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "$ref": "#/definitions/CD" } - } - } - } - } - }, - "CE": { - "title": "Shooter", - "description": "Shooter Item Component.", - "type": "object", - "additionalProperties": false, - "properties": { - "ammunition": { - "title": "Ammunition", - "description": "Ammunition", - "type": "array", - "items": { - "type": "object", - "title": "Ammunition", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "additionalProperties": false, - "properties": { - "item": { "title": "Item", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "string" }, - "use_offhand": { "title": "Use Offhand", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "boolean" }, - "search_inventory": { "title": "Search Inventory", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "boolean" }, - "use_in_creative": { "title": "Use In Creative", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "boolean" } - } - } - }, - "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" } - } - }, - "CF": { - "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" - } - } - }, - "CG": { "additionalProperties": false, "required": ["texture"], "type": "integer", "title": "Use Duration", "description": "How long to use before item is done being used." }, - "CH": { - "title": "Weapon", - "description": "Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.", - "type": "object", - "additionalProperties": false, - "properties": { - "on_hit_block": { - "title": "On Hit Block", - "description": "Trigger for letting you know when this item is used to hit a block", - "type": "object", - "additionalProperties": false, - "event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] } - }, - "on_hurt_entity": { - "title": "On Hurt Entity", - "description": "Trigger for letting you know when this item is used to hurt another mob", - "type": "object", - "additionalProperties": false, - "event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self", "holder"] } - }, - "on_not_hurt_entity": { - "title": "On Not Hurt Entity", - "description": "Trigger for letting you know when this item hit another actor, but didn't do damage", - "type": "object", - "additionalProperties": false, - "event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] } - } - } - }, - "CI": { - "title": "Wearable", - "description": "Wearable item component.", - "type": "object", - "additionalProperties": false, - "properties": { - "dispensable": { "title": "Dispensable", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "boolean" }, - "slot": { - "title": "Slot", - "description": "equipment_slot: slot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.hotbar, slot.inventory, slot.enderchest, slot.saddle, slot.armor, slot.chest", - "type": "string", - "enum": [ - "slot.weapon.mainhand", - "none", - "slot.weapon.offhand", - "slot.armor.head", - "slot.armor.chest", - "slot.armor.legs", - "slot.armor.feet", - "slot.hotbar", - "slot.inventory", - "slot.enderchest", - "slot.saddle", - "slot.armor", - "slot.chest", - "slot.equippable" - ] - } - } - }, - "CJ_event_base": { - "title": "Event", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "$ref": "#/definitions/CJ_event_functions", - "properties": { - "sequence": { - "title": "Sequence", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "array", - "items": { "title": "Sequence", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "object", "$ref": "#/definitions/CJ_event_functions" } - }, - "randomize": { - "title": "Randomize", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "array", - "items": { - "title": "Randomize", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "$ref": "#/definitions/CJ_event_functions", - "required": ["weight"], - "properties": { "weight": { "title": "Weight", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "integer", "minimum": 0 } } - } - }, - "run_command": { - "title": "Run Command", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "command": { - "title": "Command", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "array", - "items": { "type": "string", "title": "Command", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["other"] } - } - } - } - }, - "CJ_event_functions": { - "title": "Event", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "properties": { - "add_mob_effect": { "$ref": "#/definitions/DA" }, - "damage": { "$ref": "#/definitions/DB" }, - "decrement_stack": { "$ref": "#/definitions/DC" }, - "remove_mob_effect": { "$ref": "#/definitions/DD" }, - "shoot": { "$ref": "#/definitions/DE" }, - "swing": { "$ref": "#/definitions/DF" }, - "teleport": { "$ref": "#/definitions/DG" }, - "transform_item": { "$ref": "#/definitions/DH" } - } - }, - "DA": { - "title": "Add Mob Effect", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "effect": { "type": "string", "title": "Effect", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["holder"] }, - "duration": { "type": "number", "title": "Duration", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "amplifier": { "type": "number", "title": "Amplifier", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - } - }, - "DB": { - "title": "Shoot", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "type": { "type": "string", "title": "Type", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["magic"] }, - "amount": { "type": "number", "title": "Amount", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - } - }, - "DC": { "title": "Decrement Stack", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "object", "additionalProperties": false }, - "DD": { - "title": "Remove Mob Effect", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "effect": { "type": "string", "title": "Effect", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["holder"] } - } - }, - "DE": { - "title": "Shoot", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "angle_offset": { "type": "number", "title": "Angle Offset", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "launch_power": { "type": "number", "title": "Launch Power", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - "projectile": { "type": "string", "title": "Projectile", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - } - }, - "DF": { "title": "Swing", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "object", "additionalProperties": false }, - "DG": { - "title": "Teleport", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { - "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["holder"] }, - "max_range": { - "type": "array", - "title": "Maximum Range", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "items": [ - { "type": "number", "title": "X", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - { "type": "number", "title": "Y", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }, - { "type": "number", "title": "Z", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } - ] - } - } - }, - "DH": { - "title": "Transform Item", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "additionalProperties": false, - "properties": { "transform": { "title": "Transform", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "string" } } - }, - "CJ": { - "title": "Events", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "type": "object", - "properties": { "on_consume": { "$ref": "#/definitions/CJ_event_base" } }, - "additionalProperties": { "$ref": "#/definitions/CJ_event_base" } - }, - "B": { - "additionalProperties": false, - "required": ["description"], - "type": "object", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "title": "Item", - "properties": { - "description": { - "additionalProperties": false, - "type": "object", - "title": "Description", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "properties": { - "identifier": { - "title": "Identifier", - "type": "string", - "description": "The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.", - "$ref": "#/definitions/C" - }, - "category": { - "type": "string", - "default": "", - "description": "The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.", - "title": "Category", - "examples": ["Nature", "Equipment", "Construction", "Items"] - }, - "is_experimental": { - "type": "boolean", - "default": false, - "description": "If this item is experimental, it will only be registered if the world is marked as experimental.", - "title": "Is Experimental" - } - } - }, - "components": { - "additionalProperties": { "type": "object" }, - "type": "object", - "description": "The components of this item", - "properties": { - "minecraft:armor": { "$ref": "#/definitions/D" }, - "minecraft:block_placer": { "$ref": "#/definitions/E" }, - "minecraft:cooldown": { "$ref": "#/definitions/G" }, - "minecraft:digger": { "$ref": "#/definitions/H" }, - "minecraft:display_name": { "$ref": "#/definitions/I" }, - "minecraft:durability": { "$ref": "#/definitions/J" }, - "minecraft:dye_powder": { "$ref": "#/definitions/BA" }, - "minecraft:entity_placer": { "$ref": "#/definitions/BB" }, - "minecraft:food": { "$ref": "#/definitions/BC" }, - "minecraft:fuel": { "$ref": "#/definitions/BD" }, - "minecraft:hand_equipped": { "$ref": "#/definitions/BE" }, - "minecraft:icon": { "$ref": "#/definitions/BF" }, - "minecraft:knockback_resistance": { "$ref": "#/definitions/BG" }, - "minecraft:max_stack_size": { "$ref": "#/definitions/BH" }, - "minecraft:on_use_on": { "$ref": "#/definitions/BI" }, - "minecraft:on_use": { "$ref": "#/definitions/BJ" }, - "minecraft:projectile": { "$ref": "#/definitions/CA" }, - "minecraft:render_offsets": { "$ref": "#/definitions/CB" }, - "minecraft:repairable": { "$ref": "#/definitions/CC" }, - "minecraft:shooter": { "$ref": "#/definitions/CE" }, - "minecraft:throwable": { "$ref": "#/definitions/CF" }, - "minecraft:use_duration": { "$ref": "#/definitions/CG" }, - "minecraft:weapon": { "$ref": "#/definitions/CH" }, - "minecraft:wearable": { "$ref": "#/definitions/CI" } - } - }, - "events": { "$ref": "#/definitions/CJ" } - } - } - } -} +{"$id":"blockception.minecraft.behavior.items","description":"Minecraft items 1.16.200","required":["format_version","minecraft:item"],"title":"Item","type":"object","properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:item":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.19.0","examples":["1.19.0","1.18.30","1.18.20","1.18.10","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18|}.${3|2|0|}"}]},"C":{"description":"A minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"D":{"title":"Armor","description":"The armor item component determines the amount of protection you have in your armor item.","type":"object","additionalProperties":false,"required":["protection","texture_type"],"properties":{"protection":{"type":"integer","description":"How much protection does the armor item have.","title":"Protection","minimum":0},"texture_type":{"type":"string","default":"gold","description":"Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.","title":"Texture Type","enum":["gold","none","leather","chain","iron","diamond","elytra","turtle","netherite"]}}},"E_use_on_item":{"type":"object","title":"Allowed Block","description":"A block descriptor that allows to be placed","properties":{"tags":{"title":"Tags","description":"Tags","$ref":"#/definitions/F"}}},"F":{"type":"string","title":"Molang","description":"Molang definition","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"E":{"title":"Block Placer","description":"Planter item component. planter items are items that can be planted.","type":"object","additionalProperties":false,"required":["block"],"properties":{"block":{"type":"string","description":"Set the placement block name for the planter item.","title":"Block"},"use_on":{"description":"List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.","title":"Use On","type":"array","items":{"$ref":"#/definitions/E_use_on_item"}}}},"G":{"title":"Cooldown","description":"Cool down time for a component. After you use an item it becomes unusable for the duration specified by the `cool down time` setting in this component.","type":"object","additionalProperties":false,"required":["category","duration"],"properties":{"category":{"type":"string","description":"The type of cool down for this item.","title":"Category"},"duration":{"description":"The duration of time this item will spend cooling down before becoming usable again.","title":"Duration","type":"number"}}},"H":{"title":"Digger","description":"Digger item. Component put on items that dig.","type":"object","additionalProperties":false,"required":["destroy_speeds"],"properties":{"use_efficiency":{"title":"Use Efficiency","type":"boolean","description":"Toggles if the item will be used efficiently","default":false},"destroy_speeds":{"type":"array","title":"Destroy Speeds","description":"Destroy speed per block.","items":{"title":"Destroy Speed","description":"Destroy speed per block.","type":"object","additionalProperties":false,"properties":{"speed":{"title":"Speed","description":"Speed","type":"number"},"on_dig":{"type":"string","title":"On Dig","description":"Trigger for when you dig a block that isn't listed in destroy_speeds"},"block":{"title":"Block","oneOf":[{"type":"string","description":"The block identifier"},{"type":"object","additionalProperties":false,"description":"Block descriptor","properties":{"any_tag":{"type":"array","title":"Any Block Tag","description":"The block tag","items":{"type":"string","title":"Block Tag"}}}}]}}}},"on_dig":{"type":"string","title":"On Dig","description":"Trigger for when you dig a block that isn't listed in destroy_speeds"}}},"I":{"title":"Display Name","description":"Display Name item component. Display Names display the name of an item.","type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{"type":"string","title":"Value","description":"Set the display name for an item."}}},"J":{"title":"Durability","description":"Durability item component: how much damage can this item take before breaking.","type":"object","additionalProperties":false,"required":["damage_chance"],"properties":{"damage_chance":{"type":"object","title":"Damange Chance","description":"Damange chance","additionalProperties":false,"required":["min","max"],"properties":{"min":{"title":"Min","type":"integer","description":"The minimum"},"max":{"title":"Max","type":"integer","description":"The minimum"}}},"max_durability":{"title":"Maximum Durability","description":"Maximum durability is the amount of damage that this item can take before breaking.","type":"number"}}},"BA":{"title":"Dye Powder","description":"Dye powder, there are 16 kinds of dye.","type":"object","additionalProperties":false,"required":["color"],"properties":{"color":{"type":"string","title":"Color","description":"Defines what color the dye is.","enum":["black","red","green","brown","blue","purple","cyan","silver","gray","pink","lime","yellow","lightblue","magenta","orange","white"]}}},"BB":{"title":"Entity Placer","description":"Entity placer item component. You can specifiy allowed blocks that the item is restricted to.","type":"object","additionalProperties":false,"required":["entity"],"properties":{"entity":{"type":"string","title":"Entity","description":"The entity to be placed in the world."},"dispense_on":{"type":"array","title":"Dispense On","description":"List of block descriptors that contain blocks that this item can be dispensed on. If left empty, all blocks will be allowed.","items":{"title":"Dispense On","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}},"use_on":{"type":"array","title":"Use On","description":"List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.","items":{"title":"Use On","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}}},"BC":{"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","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"]}}},"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"}}}}},"BD":{"title":"Fuel","description":"Fuel component. Allows this item to be used as fuel in a furnace to `cook` other items.","type":"object","additionalProperties":false,"required":["duration"],"properties":{"duration":{"type":"number","title":"Duration","description":"How long in seconds will this fuel cook items for."}}},"BE":{"additionalProperties":false,"required":["texture"],"type":"boolean","title":"Hand Equipped","description":"Is this a hand equipped item."},"BF":{"title":"Icon","description":"The icon item componenent determines the icon to represent the item in the UI and elsewhere.","type":"object","additionalProperties":false,"required":["texture"],"properties":{"frame":{"type":"string","title":"Frame","description":"An index or expression for which frame of the icon to display. Default resolves to 0.","default":0},"legacy_id":{"type":"string","title":"Texture","description":"Legacy texture id for older item icons."},"texture":{"type":"string","title":"Texture","description":"The key from the resource_pack/textures/item_texture.json `texture_data` object associated with the texture file Example: blaze_powder."}}},"BG":{"title":"Knockback Resistance","description":"Knockback Resistance Item. Component put on items that provide knockback resistance.","type":"object","additionalProperties":false,"required":["protection"],"properties":{"protection":{"title":"Protection","description":"Amount of knockback resistance provided with the total maximum protection being 1.0","type":"number"}}},"BH":{"additionalProperties":false,"type":"integer","title":"Max Damage","description":"Maximum Damage","$comment":"UNDOCUMENTED","minimum":0},"BI":{"additionalProperties":false,"required":["texture"],"type":"integer","title":"Max Stack Size","description":"Maximum stack size.","minimum":0},"BJ":{"title":"On Use On","description":"The on_use_on item component allows you to receive an event when the item is used on a block in the world.","type":"object","additionalProperties":false,"required":["on_use_on"],"properties":{"on_use":{"title":"On Use","description":"Event trigger for when the item is used.","type":"object","additionalProperties":false,"properties":{"event":{"type":"string","title":"Event","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["block"]}}}}},"CA":{"title":"On Use","description":"The on_use item component allows you to receive an event when the item is used.","type":"object","additionalProperties":false,"required":["on_use"],"properties":{"on_use":{"title":"On Use","description":"Event trigger for when the item is used.","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"]}}}}},"CB":{"title":"Projectile","description":"Projectile item component. projectile items shoot out, like an arrow.","type":"object","additionalProperties":false,"required":["projectile_entity"],"properties":{"minimum_critical_power":{"type":"number","title":"Minimum Critical Power","description":"How long you must charge a projectile for it to critically hit."},"projectile_entity":{"title":"Projectile Entity","description":"The entity to be fired as a projectile.","type":"string"}}},"CC_offset_spec":{"type":"object","title":"Offset","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","additionalProperties":false,"properties":{"first_person":{"title":"First Person","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","$ref":"#/definitions/CC_mode"},"thrid_person":{"title":"Thrid Person","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","$ref":"#/definitions/CC_mode"}}},"CC_mode":{"type":"object","title":"Mode","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","additionalProperties":false,"properties":{"position":{"title":"Position","description":"The position transformation","$ref":"#/definitions/CC_vec3"},"rotation":{"title":"Rotation","description":"The rotation transformation","$ref":"#/definitions/CC_vec3"},"scale":{"title":"Scale","description":"The scale transformation","$ref":"#/definitions/CC_vec3"}}},"CC_vec3":{"type":"array","title":"Vector","description":"X Y Z","items":[{"title":"X","description":"The X tranformation","type":"number"},{"title":"Y","description":"The Y tranformation","type":"number"},{"title":"Z","description":"The Z tranformation","type":"number"}]},"CC":{"title":"Render Offsets","description":"Render offsets component: optional values can be given to offset the way the item is rendered.","type":"object","additionalProperties":false,"properties":{"main_hand":{"title":"Main Hand","description":"Right hand transform data.","type":"string"},"off_hand":{"title":"Off Hand","description":"Left hand transform data.","type":"string"}}},"CE":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":[0,"query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"CD":{"title":"Repairable","description":"Repairable item component: how much damage can this item repair, what items can repair it.","type":"object","additionalProperties":false,"properties":{"on_repaired":{"title":"On Repaired","description":"Event that is called when this item has been repaired.","type":"object"},"repair_items":{"title":"Repair Items","description":"Repair item entries.","type":"array","items":{"type":"object","title":"Repar Item","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","additionalProperties":false,"properties":{"items":{"title":"Items","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"type":"string","title":"Item","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}},"repair_amount":{"title":"Repair Amount","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","$ref":"#/definitions/CE"}}}}}},"CF":{"title":"Shooter","description":"Shooter Item Component.","type":"object","additionalProperties":false,"properties":{"ammunition":{"title":"Ammunition","description":"Ammunition","type":"array","items":{"type":"object","title":"Ammunition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","additionalProperties":false,"properties":{"item":{"title":"Item","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"string"},"use_offhand":{"title":"Use Offhand","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"boolean"},"search_inventory":{"title":"Search Inventory","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"boolean"},"use_in_creative":{"title":"Use In Creative","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"boolean"}}}},"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"}}},"CG":{"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"}}},"CH":{"additionalProperties":false,"required":["texture"],"type":"integer","title":"Use Duration","description":"How long to use before item is done being used."},"CI":{"title":"Weapon","description":"Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.","type":"object","additionalProperties":false,"properties":{"on_hit_block":{"title":"On Hit Block","description":"Trigger for letting you know when this item is used to hit a block","type":"object","additionalProperties":false,"event":{"type":"string","title":"Event","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["self"]}},"on_hurt_entity":{"title":"On Hurt Entity","description":"Trigger for letting you know when this item is used to hurt another mob","type":"object","additionalProperties":false,"event":{"type":"string","title":"Event","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["self","holder"]}},"on_not_hurt_entity":{"title":"On Not Hurt Entity","description":"Trigger for letting you know when this item hit another actor, but didn't do damage","type":"object","additionalProperties":false,"event":{"type":"string","title":"Event","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["self"]}}}},"CJ":{"title":"Wearable","description":"Wearable item component.","type":"object","additionalProperties":false,"properties":{"dispensable":{"title":"Dispensable","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"boolean"},"slot":{"title":"Slot","description":"equipment_slot: slot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.hotbar, slot.inventory, slot.enderchest, slot.saddle, slot.armor, slot.chest","type":"string","enum":["slot.weapon.mainhand","none","slot.weapon.offhand","slot.armor.head","slot.armor.chest","slot.armor.legs","slot.armor.feet","slot.hotbar","slot.inventory","slot.enderchest","slot.saddle","slot.armor","slot.chest","slot.equippable"]}}},"DA_event_base":{"title":"Event","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"$ref":"#/definitions/DA_event_functions","properties":{"sequence":{"title":"Sequence","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"title":"Sequence","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","$ref":"#/definitions/DA_event_functions"}},"randomize":{"title":"Randomize","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"title":"Randomize","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","$ref":"#/definitions/DA_event_functions","required":["weight"],"properties":{"weight":{"title":"Weight","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer","minimum":0}}}},"run_command":{"title":"Run Command","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"command":{"title":"Command","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"type":"string","title":"Command","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["other"]}}}}},"DA_event_functions":{"title":"Event","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","properties":{"add_mob_effect":{"$ref":"#/definitions/DB"},"damage":{"$ref":"#/definitions/DC"},"decrement_stack":{"$ref":"#/definitions/DD"},"remove_mob_effect":{"$ref":"#/definitions/DE"},"shoot":{"$ref":"#/definitions/DF"},"swing":{"$ref":"#/definitions/DG"},"teleport":{"$ref":"#/definitions/DH"},"transform_item":{"$ref":"#/definitions/DI"}}},"DB":{"title":"Add Mob Effect","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"effect":{"type":"string","title":"Effect","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["holder"]},"duration":{"type":"number","title":"Duration","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"amplifier":{"type":"number","title":"Amplifier","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"DC":{"title":"Shoot","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"type":{"type":"string","title":"Type","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["magic"]},"amount":{"type":"number","title":"Amount","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"DD":{"title":"Decrement Stack","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false},"DE":{"title":"Remove Mob Effect","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"effect":{"type":"string","title":"Effect","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["holder"]}}},"DF":{"title":"Shoot","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"angle_offset":{"type":"number","title":"Angle Offset","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"launch_power":{"type":"number","title":"Launch Power","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"projectile":{"type":"string","title":"Projectile","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"DG":{"title":"Swing","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false},"DH":{"title":"Teleport","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"target":{"type":"string","title":"Target","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["holder"]},"max_range":{"type":"array","title":"Maximum Range","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","items":[{"type":"number","title":"X","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},{"type":"number","title":"Y","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},{"type":"number","title":"Z","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}]}}},"DI":{"title":"Transform Item","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"transform":{"title":"Transform","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"string"}}},"DA":{"title":"Events","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","properties":{"on_consume":{"$ref":"#/definitions/DA_event_base"}},"additionalProperties":{"$ref":"#/definitions/DA_event_base"}},"B":{"additionalProperties":false,"required":["description"],"type":"object","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Item","properties":{"description":{"additionalProperties":false,"type":"object","title":"Description","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","properties":{"identifier":{"title":"Identifier","type":"string","description":"The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.","$ref":"#/definitions/C"},"category":{"type":"string","default":"","description":"The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.","title":"Category","examples":["Nature","Equipment","Construction","Items"]},"is_experimental":{"type":"boolean","default":false,"description":"If this item is experimental, it will only be registered if the world is marked as experimental.","title":"Is Experimental"}}},"components":{"additionalProperties":{"type":"object"},"type":"object","description":"The components of this item","properties":{"minecraft:armor":{"$ref":"#/definitions/D"},"minecraft:block_placer":{"$ref":"#/definitions/E"},"minecraft:cooldown":{"$ref":"#/definitions/G"},"minecraft:digger":{"$ref":"#/definitions/H"},"minecraft:display_name":{"$ref":"#/definitions/I"},"minecraft:durability":{"$ref":"#/definitions/J"},"minecraft:dye_powder":{"$ref":"#/definitions/BA"},"minecraft:entity_placer":{"$ref":"#/definitions/BB"},"minecraft:food":{"$ref":"#/definitions/BC"},"minecraft:fuel":{"$ref":"#/definitions/BD"},"minecraft:hand_equipped":{"$ref":"#/definitions/BE"},"minecraft:icon":{"$ref":"#/definitions/BF"},"minecraft:knockback_resistance":{"$ref":"#/definitions/BG"},"minecraft:max_damage":{"$ref":"#/definitions/BH"},"minecraft:max_stack_size":{"$ref":"#/definitions/BI"},"minecraft:on_use_on":{"$ref":"#/definitions/BJ"},"minecraft:on_use":{"$ref":"#/definitions/CA"},"minecraft:projectile":{"$ref":"#/definitions/CB"},"minecraft:render_offsets":{"$ref":"#/definitions/CC"},"minecraft:repairable":{"$ref":"#/definitions/CD"},"minecraft:shooter":{"$ref":"#/definitions/CF"},"minecraft:stacked_by_data":{"$ref":"#/definitions/BG"},"minecraft:throwable":{"$ref":"#/definitions/CG"},"minecraft:use_duration":{"$ref":"#/definitions/CH"},"minecraft:weapon":{"$ref":"#/definitions/CI"},"minecraft:wearable":{"$ref":"#/definitions/CJ"}}},"events":{"$ref":"#/definitions/DA"}}}}} \ No newline at end of file diff --git a/behavior/loot_tables/loot_tables.json b/behavior/loot_tables/loot_tables.json index f926ed53..34013f18 100644 --- a/behavior/loot_tables/loot_tables.json +++ b/behavior/loot_tables/loot_tables.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.loot_tables","additionalProperties":false,"description":"A minecraft loot table","title":"Loot Table","type":"object","examples":[{"pools":[{"rolls":1,"entries":[{"type":"item","name":"minecraft:spawn_egg","weight":1,"functions":[{"function":"set_count","count":{"min":1,"max":1}},{"function":"set_actor_id"}]}]}]}],"definitions":{"pools_spec":{"title":"Pools","description":"A collection of items where the system will choice one or more from","$comment":"UNDOCUMENTED","type":"array","additionalProperties":false,"items":{"additionalProperties":false,"title":"A Single Pool","type":"object","properties":{"rolls":{"title":"Rolls","description":"Determines how many items, will be selected","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer","minimum":0},{"type":"object","required":["min","max"],"properties":{"min":{"title":"Minimum","type":"number","minimum":0,"description":"The minimum amount"},"max":{"title":"Maximum","type":"number","minimum":1,"description":"The maximum amount"}}}]},"type":{"title":"Type","type":"string","description":"Whenever this pool item is an item or another table","$comment":"UNDOCUMENTED","enum":["loot_table","item","empty"]},"conditions":{"title":"Conditions","description":"Possible conditions that need to have been met before selecting this item","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/A"}},"entries":{"title":"Entries","type":"array","description":"The items specifiation of this pool","$comment":"UNDOCUMENTED","items":{"additionalProperties":false,"type":"object","required":["type"],"title":"Entry","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","properties":{"type":{"title":"Type","type":"string","enum":["item","empty","loot_table"],"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"count":{"type":"integer","title":"Count","description":"The amount of the item"},"name":{"title":"Name","type":"string","description":"An item or loottable","pattern":"^([\\w]+:|loot_tables/)"},"weight":{"title":"Weight","type":"integer","minimum":1,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"functions":{"title":"Functions","type":"array","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","items":{"type":"object","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","required":["function"],"title":"Function","$ref":"#/definitions/J"}},"pools":{"$ref":"#/definitions/pools_spec"},"quality":{"title":"Quality","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer"}}}},"tiers":{"title":"Tiers","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"bonus_chance":{"title":"Bonus Chance","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"number"},"bonus_rolls":{"title":"Bonus Rolls","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer"},"initial_range":{"title":"Initial Range","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer"}}},"bonus_rolls":{"title":"Bonus Rolls","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer","minimum":0,"default":0}}}},"B":{"type":"object","additionalProperties":false,"description":"Returns true if the actor properties defined were executed.","title":"Entity Properties","properties":{"condition":{"type":"string","title":"Condition","description":"Returns true if the actor properties defined were executed.","$comment":"UNDOCUMENTED"},"entity":{"type":"string","default":"this","description":"The entity to test. The value must be only `this`.","title":"Entity"},"properties":{"type":"object","default":{},"description":"The entity's properties. `on_fire`, `on_ground` is used for now.","title":"Properties","additionalProperties":false,"properties":{"on_fire":{"title":"On Fire","description":"Checks if the entity is on fire or not","$comment":"UNDOCUMENTED","type":"boolean"},"on_ground":{"title":"On Ground","description":"Checks if the entity is on the ground or not","$comment":"UNDOCUMENTED","type":"boolean"}}}}},"C":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor's mark variant is matched to the value.","title":"Has Mark Variant","properties":{"condition":{"type":"string","title":"Condition","description":"Returns the condition true if the actor's mark variant is matched to the value.","$comment":"UNDOCUMENTED"},"value":{"type":"integer","default":"0","description":"Tests for the actor's mark variant (if it has one)","title":"Value"}}},"D":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"E":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player Or Pets Or Pets","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"F":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value.","title":"Random Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Chance"},"max_chance":{"type":"number","default":0,"description":"The maximum random chance value allowed.","title":"Maximum Chance"}}},"G":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value. Looting enchantment increase the random chance multiplier.","title":"Random Chance With Looting","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"The random chance of the value.","title":"Chance"},"looting_multiplier":{"type":"number","default":0,"description":"The multiplier for the chance if the target entity has the looting enchant that affects the actor.","title":"Looting Multiplier"}}},"H":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value based on the level difficulty.","title":"Random Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"I":{"type":"object","additionalProperties":false,"description":"Sets a Maximum regional difficulty random chance of the specified value.","title":"Random Regional Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"max_chance":{"title":"Maximum Chance","type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"A":{"description":"A minecraft loot table condition","title":"Condition","allOf":[{"if":{"properties":{"condition":{"type":"string","const":"entity_properties"}}},"then":{"$ref":"#/definitions/B"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/I"}}]},"BA":{"additionalProperties":false,"type":"object","description":"The function enchant_random_gear","title":"Enchant Random Gear","properties":{"function":{"type":"string","const":"enchant_random_gear","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","description":"Takes a chance modifier to manipulate the algorithm. Note that a chance modifier of 1.0 doesn't mean a 100% chance that gear will become enchanted.","title":"Chance"}}},"BB":{"additionalProperties":false,"type":"object","description":"The function enchant_book_for_trading","title":"Enchant Book For Trading","required":["function","base_cost","base_random_cost","per_level_random_cost","per_level_cost"],"properties":{"function":{"type":"string","const":"enchant_book_for_trading","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BC":{"additionalProperties":false,"type":"object","description":"The function enchant_randomly","title":"Enchant Randomly","properties":{"function":{"type":"string","const":"enchant_randomly","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"treasure":{"type":"boolean","description":"Supports the optional treasure boolean (true/false) to allow treasure enchantments to be toggled on and off.","title":"Treasure"}}},"BD":{"additionalProperties":false,"description":"The function enchant_with_levels","title":"Enchant With Levels","type":"object","properties":{"function":{"type":"string","const":"enchant_with_levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"levels":{"title":"Levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}]},"treasure":{"type":"boolean","title":"Treasure","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BE":{"additionalProperties":false,"description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Exploration Map","type":"object","properties":{"function":{"type":"string","const":"exploration_map","description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Function"},"destination":{"type":"string","description":"The destination value defines what type of treasure map they receive.","enum":["endcity","fortress","mineshaft","monument","ruins","stronghold","temple","village","mansion","shipwreck","buriedtreasure","pillageroutpost"],"title":"Destination"}}},"BF":{"additionalProperties":false,"type":"object","description":"The function fill_container","title":"Fill Container","properties":{"function":{"type":"string","const":"fill_container","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"loot_table":{"type":"string","title":"Loot Table","pattern":"^loot_tables/.*\\.json$","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BG":{"additionalProperties":false,"type":"object","description":"If the item to return has a smelted crafting recipe and the loot table is triggered by an entity killed with fire. the result will be the smelted version of the item","title":"Furnace Smelt","properties":{"function":{"type":"string","const":"furnace_smelt","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"conditions":{"title":"Conditions","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/A"}}}},"BH":{"additionalProperties":false,"description":"The function looting_enchant","title":"Looting Enchant","type":"object","properties":{"function":{"type":"string","const":"looting_enchant","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"count":{"type":"object","properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Count","additionalProperties":false}}},"BI":{"additionalProperties":false,"description":"The function random_aux_value","title":"Random Aux Value","type":"object","properties":{"function":{"type":"string","const":"random_aux_value","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"values":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false,"type":"object","properties":{"min":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum"},"max":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum"}}}}},"BJ":{"additionalProperties":false,"description":"The function random_block_state","title":"Random Block State","type":"object","properties":{"function":{"type":"string","const":"random_block_state","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"block_state":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Block State"},"values":{"type":"object","properties":{"min":{"title":"Min","type":"integer"},"max":{"title":"Max","type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false}}},"CA":{"additionalProperties":false,"description":"The function set_actor_id","title":"Set Actor Id","type":"object","properties":{"function":{"type":"string","const":"set_actor_id","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"id":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Id"}}},"CB":{"additionalProperties":false,"description":"The function set_banner_details","title":"Set Banner Details","type":"object","properties":{"function":{"type":"string","const":"set_banner_details","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"type":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Type"}}},"CC":{"additionalProperties":false,"description":"The function set_book_contents","title":"Set Book Contents","required":["function","author","title","pages"],"type":"object","properties":{"function":{"type":"string","const":"set_book_contents","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"author":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Author"},"title":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Title"},"pages":{"type":"array","items":{"type":"string","examples":["Some text","{`rawtext`:[ {`translate`:`some.text`}]}"]},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Pages"}}},"CD":{"additionalProperties":false,"type":"object","description":"The function set_count","title":"Set Count","properties":{"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"count":{"title":"Count","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}],"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"CE":{"additionalProperties":false,"description":"The function set_damage","title":"Set Damage","type":"object","properties":{"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Damage","oneOf":[{"type":"number","minimum":0,"maximum":1},{"type":"object","properties":{"min":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum","minimum":0,"maximum":1},"max":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum","minimum":0,"maximum":1}}}]}}},"CF":{"additionalProperties":false,"description":"The function set_data","title":"Set Data","type":"object","properties":{"function":{"type":"string","const":"set_data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"data":{"title":"Data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"max":{"type":"integer","title":"Maximum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}}]}}},"CG":{"additionalProperties":false,"description":"The function set_data_from_color_index","title":"Set Data From Color Index","type":"object","properties":{"function":{"type":"string","const":"set_data_from_color_index","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CH":{"additionalProperties":false,"description":"The function trader_material_type","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"trader_material_type","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CI":{"additionalProperties":false,"description":"The function random_dye","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"random_dye","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CJ":{"additionalProperties":false,"description":"The function set_lore","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"lore":{"type":"array","items":{"type":"string"},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Lore"}}},"DA":{"additionalProperties":false,"description":"The function set_name","title":"Set Name","type":"object","properties":{"function":{"type":"string","const":"set_name","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"name":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"name"}}},"DB_IDEnchant":{"type":"string","title":"ID Enchantment","enum":["aqua_affinity","bane_of_arthropods","blast_protection","channeling","binding","curse_of_vanishing","depth_strider","efficiency","feather_falling","fire_aspect","fire_protection","flame","fortune","frost_walker","impaling","infinity","knockback","looting","loyalty","luck_of_the_sea","lure","mending","multishot","piercing","projectile_protection","protection","power","punch","quick_charge","respiration","riptide","sharpness","silk_touch","smite","soul_speed","thorns","unbreaking"]},"DB_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/DB_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"DB":{"additionalProperties":false,"type":"object","description":"The function specific_enchants","title":"Specific Enchants","properties":{"function":{"type":"string","const":"specific_enchants","description":"Specific enchants","title":"Specific Enchants"},"enchants":{"title":"Enchants","description":"A enchanting specification","oneOf":[{"type":"string","$ref":"#/definitions/DB_IDEnchant"},{"type":"object","$ref":"#/definitions/DB_Enchant"},{"type":"array","items":{"$ref":"#/definitions/DB_Enchant"}}]}}},"J":{"description":"A minecraft loot table condition","title":"Functions","type":"object","properties":{"function":{"type":"string","enum":["enchant_random_gear","enchant_book_for_trading","enchant_randomly","enchant_with_levels","exploration_map","fill_container","furnace_smelt","looting_enchant","random_aux_value","random_block_state","set_actor_id","set_banner_details","set_book_contents","set_count","set_damage","set_data","set_data_from_color_index","trader_material_type","random_dye","set_lore","set_name","specific_enchants"]},"add":{"title":"Add","description":"UNDOCUMENTED","type":"boolean","default":false}},"allOf":[{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_random_gear$"}}},"then":{"$ref":"#/definitions/BA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/BH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/BI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/CB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/CC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/CD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/DB"}}]}},"properties":{"pools":{"$ref":"#/definitions/pools_spec","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Pools"},"type":{"title":"Type","type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["minecraft:chest"]}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.loot_tables","additionalProperties":false,"description":"A minecraft loot table","title":"Loot Table","type":"object","examples":[{"pools":[{"rolls":1,"entries":[{"type":"item","name":"minecraft:spawn_egg","weight":1,"functions":[{"function":"set_count","count":{"min":1,"max":1}},{"function":"set_actor_id"}]}]}]}],"definitions":{"pools_spec":{"title":"Pools","description":"A collection of items where the system will choice one or more from","$comment":"UNDOCUMENTED","type":"array","additionalProperties":false,"items":{"additionalProperties":false,"title":"A Single Pool","type":"object","properties":{"rolls":{"title":"Rolls","description":"Determines how many items, will be selected","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer","minimum":0},{"type":"object","required":["min","max"],"properties":{"min":{"title":"Minimum","type":"number","minimum":0,"description":"The minimum amount"},"max":{"title":"Maximum","type":"number","minimum":1,"description":"The maximum amount"}}}]},"type":{"title":"Type","type":"string","description":"Whenever this pool item is an item or another table","$comment":"UNDOCUMENTED","enum":["loot_table","item","empty"]},"conditions":{"title":"Conditions","description":"Possible conditions that need to have been met before selecting this item","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/A"}},"entries":{"title":"Entries","type":"array","description":"The items specifiation of this pool","$comment":"UNDOCUMENTED","items":{"additionalProperties":false,"type":"object","required":["type"],"title":"Entry","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","properties":{"type":{"title":"Type","type":"string","enum":["item","empty","loot_table"],"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"count":{"type":"integer","title":"Count","description":"The amount of the item"},"name":{"title":"Name","type":"string","description":"An item or loottable","pattern":"^([\\w]+:|loot_tables/)"},"weight":{"title":"Weight","type":"integer","minimum":1,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"functions":{"title":"Functions","type":"array","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","items":{"type":"object","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","required":["function"],"title":"Function","$ref":"#/definitions/J"}},"pools":{"$ref":"#/definitions/pools_spec"},"quality":{"title":"Quality","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer"}}}},"tiers":{"title":"Tiers","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"object","additionalProperties":false,"properties":{"bonus_chance":{"title":"Bonus Chance","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"number"},"bonus_rolls":{"title":"Bonus Rolls","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer"},"initial_range":{"title":"Initial Range","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer"}}},"bonus_rolls":{"title":"Bonus Rolls","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"integer","minimum":0,"default":0}}}},"B":{"type":"object","additionalProperties":false,"description":"Returns true if the actor properties defined were executed.","title":"Entity Properties","properties":{"condition":{"type":"string","title":"Condition","description":"Returns true if the actor properties defined were executed.","$comment":"UNDOCUMENTED"},"entity":{"type":"string","default":"this","description":"The entity to test. The value must be only `this`.","title":"Entity"},"properties":{"type":"object","default":{},"description":"The entity's properties. `on_fire`, `on_ground` is used for now.","title":"Properties","additionalProperties":false,"properties":{"on_fire":{"title":"On Fire","description":"Checks if the entity is on fire or not","$comment":"UNDOCUMENTED","type":"boolean"},"on_ground":{"title":"On Ground","description":"Checks if the entity is on the ground or not","$comment":"UNDOCUMENTED","type":"boolean"}}}}},"C":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor's mark variant is matched to the value.","title":"Has Mark Variant","properties":{"condition":{"type":"string","title":"Condition","description":"Returns the condition true if the actor's mark variant is matched to the value.","$comment":"UNDOCUMENTED"},"value":{"type":"integer","default":"0","description":"Tests for the actor's mark variant (if it has one)","title":"Value"}}},"D":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"E":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player Or Pets Or Pets","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"F":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value.","title":"Random Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Chance"},"max_chance":{"type":"number","default":0,"description":"The maximum random chance value allowed.","title":"Maximum Chance"}}},"G":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value. Looting enchantment increase the random chance multiplier.","title":"Random Chance With Looting","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"The random chance of the value.","title":"Chance"},"looting_multiplier":{"type":"number","default":0,"description":"The multiplier for the chance if the target entity has the looting enchant that affects the actor.","title":"Looting Multiplier"}}},"H":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value based on the level difficulty.","title":"Random Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"I":{"type":"object","additionalProperties":false,"description":"Sets a Maximum regional difficulty random chance of the specified value.","title":"Random Regional Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"max_chance":{"title":"Maximum Chance","type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"A":{"description":"A minecraft loot table condition","title":"Condition","allOf":[{"if":{"properties":{"condition":{"type":"string","const":"entity_properties"}}},"then":{"$ref":"#/definitions/B"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/I"}}]},"BA":{"additionalProperties":false,"type":"object","description":"The function enchant_random_gear","title":"Enchant Random Gear","properties":{"function":{"type":"string","const":"enchant_random_gear","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","description":"Takes a chance modifier to manipulate the algorithm. Note that a chance modifier of 1.0 doesn't mean a 100% chance that gear will become enchanted.","title":"Chance"}}},"BB":{"additionalProperties":false,"type":"object","description":"The function enchant_book_for_trading","title":"Enchant Book For Trading","required":["function","base_cost","base_random_cost","per_level_random_cost","per_level_cost"],"properties":{"function":{"type":"string","const":"enchant_book_for_trading","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BC":{"additionalProperties":false,"type":"object","description":"The function enchant_randomly","title":"Enchant Randomly","properties":{"function":{"type":"string","const":"enchant_randomly","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"treasure":{"type":"boolean","description":"Supports the optional treasure boolean (true/false) to allow treasure enchantments to be toggled on and off.","title":"Treasure"}}},"BD":{"additionalProperties":false,"description":"The function enchant_with_levels","title":"Enchant With Levels","type":"object","properties":{"function":{"type":"string","const":"enchant_with_levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"levels":{"title":"Levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}]},"treasure":{"type":"boolean","title":"Treasure","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BE":{"additionalProperties":false,"description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Exploration Map","type":"object","properties":{"function":{"type":"string","const":"exploration_map","description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Function"},"destination":{"type":"string","description":"The destination value defines what type of treasure map they receive.","enum":["endcity","fortress","mineshaft","monument","ruins","stronghold","temple","village","mansion","shipwreck","buriedtreasure","pillageroutpost"],"title":"Destination"}}},"BF":{"additionalProperties":false,"type":"object","description":"The function fill_container","title":"Fill Container","properties":{"function":{"type":"string","const":"fill_container","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"loot_table":{"type":"string","title":"Loot Table","pattern":"^loot_tables/.*\\.json$","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BG":{"additionalProperties":false,"type":"object","description":"If the item to return has a smelted crafting recipe and the loot table is triggered by an entity killed with fire. the result will be the smelted version of the item","title":"Furnace Smelt","properties":{"function":{"type":"string","const":"furnace_smelt","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"conditions":{"title":"Conditions","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/A"}}}},"BH":{"additionalProperties":false,"description":"The function looting_enchant","title":"Looting Enchant","type":"object","properties":{"function":{"type":"string","const":"looting_enchant","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"count":{"type":"object","properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Count","additionalProperties":false}}},"BI":{"additionalProperties":false,"description":"The function random_aux_value","title":"Random Aux Value","type":"object","properties":{"function":{"type":"string","const":"random_aux_value","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"values":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false,"type":"object","properties":{"min":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum"},"max":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum"}}}}},"BJ":{"additionalProperties":false,"description":"The function random_block_state","title":"Random Block State","type":"object","properties":{"function":{"type":"string","const":"random_block_state","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"block_state":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Block State"},"values":{"type":"object","properties":{"min":{"title":"Min","type":"integer"},"max":{"title":"Max","type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false}}},"CA":{"additionalProperties":false,"description":"The function set_actor_id","title":"Set Actor Id","type":"object","properties":{"function":{"type":"string","const":"set_actor_id","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"id":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Id"}}},"CB":{"additionalProperties":false,"description":"The function set_banner_details","title":"Set Banner Details","type":"object","properties":{"function":{"type":"string","const":"set_banner_details","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"type":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Type"}}},"CC":{"additionalProperties":false,"description":"The function set_book_contents","title":"Set Book Contents","required":["function","author","title","pages"],"type":"object","properties":{"function":{"type":"string","const":"set_book_contents","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"author":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Author"},"title":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Title"},"pages":{"type":"array","items":{"type":"string","examples":["Some text","{`rawtext`:[ {`translate`:`some.text`}]}"]},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Pages"}}},"CD":{"additionalProperties":false,"type":"object","description":"The function set_count","title":"Set Count","properties":{"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"count":{"title":"Count","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}],"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"CE":{"additionalProperties":false,"description":"The function set_damage","title":"Set Damage","type":"object","properties":{"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Damage","oneOf":[{"type":"number","minimum":0,"maximum":1},{"type":"object","properties":{"min":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum","minimum":0,"maximum":1},"max":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum","minimum":0,"maximum":1}}}]}}},"CF":{"additionalProperties":false,"description":"The function set_data","title":"Set Data","type":"object","properties":{"function":{"type":"string","const":"set_data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"data":{"title":"Data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"max":{"type":"integer","title":"Maximum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}}]}}},"CG":{"additionalProperties":false,"description":"The function set_data_from_color_index","title":"Set Data From Color Index","type":"object","properties":{"function":{"type":"string","const":"set_data_from_color_index","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CH":{"additionalProperties":false,"description":"The function trader_material_type","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"trader_material_type","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CI":{"additionalProperties":false,"description":"The function random_dye","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"random_dye","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CJ":{"additionalProperties":false,"description":"The function set_lore","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"lore":{"type":"array","items":{"type":"string"},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Lore"}}},"DA":{"additionalProperties":false,"description":"The function set_name","title":"Set Name","type":"object","properties":{"function":{"type":"string","const":"set_name","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"name":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"name"}}},"DB_IDEnchant":{"type":"string","title":"ID Enchantment","enum":["aqua_affinity","bane_of_arthropods","blast_protection","channeling","binding","curse_of_vanishing","depth_strider","efficiency","feather_falling","fire_aspect","fire_protection","flame","fortune","frost_walker","impaling","infinity","knockback","looting","loyalty","luck_of_the_sea","lure","mending","multishot","piercing","projectile_protection","protection","power","punch","quick_charge","respiration","riptide","sharpness","silk_touch","smite","soul_speed","thorns","unbreaking"]},"DB_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/DB_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"DB":{"additionalProperties":false,"type":"object","description":"The function specific_enchants","title":"Specific Enchants","properties":{"function":{"type":"string","const":"specific_enchants","description":"Specific enchants","title":"Specific Enchants"},"enchants":{"title":"Enchants","description":"A enchanting specification","oneOf":[{"type":"string","$ref":"#/definitions/DB_IDEnchant"},{"type":"object","$ref":"#/definitions/DB_Enchant"},{"type":"array","items":{"$ref":"#/definitions/DB_Enchant"}}]}}},"J":{"description":"A minecraft loot table condition","title":"Functions","type":"object","properties":{"function":{"type":"string","enum":["enchant_book_for_trading","enchant_random_gear","enchant_randomly","enchant_with_levels","exploration_map","fill_container","furnace_smelt","looting_enchant","random_aux_value","random_block_state","random_dye","set_actor_id","set_banner_details","set_book_contents","set_count","set_damage","set_data_from_color_index","set_data","set_lore","set_name","specific_enchants","trader_material_type","minecraft:enchant_book_for_trading","minecraft:enchant_random_gear","minecraft:enchant_randomly","minecraft:enchant_with_levels","minecraft:exploration_map","minecraft:fill_container","minecraft:furnace_smelt","minecraft:looting_enchant","minecraft:random_aux_value","minecraft:random_block_state","minecraft:random_dye","minecraft:set_actor_id","minecraft:set_banner_details","minecraft:set_book_contents","minecraft:set_count","minecraft:set_damage","minecraft:set_data_from_color_index","minecraft:set_data","minecraft:set_lore","minecraft:set_name","minecraft:specific_enchants","minecraft:trader_material_type"]},"add":{"title":"Add","description":"UNDOCUMENTED","type":"boolean","default":false}},"allOf":[{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_random_gear$"}}},"then":{"$ref":"#/definitions/BA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/BH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/BI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/CB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/CC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/CD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/DB"}}]}},"properties":{"pools":{"$ref":"#/definitions/pools_spec","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Pools"},"type":{"title":"Type","type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["minecraft:chest"]}}} \ No newline at end of file diff --git a/behavior/trading/trading.json b/behavior/trading/trading.json index d2b0c83c..bf4a45ae 100644 --- a/behavior/trading/trading.json +++ b/behavior/trading/trading.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.trading","type":"object","additionalProperties":false,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Trading","examples":[{"tiers":[{"trades":[{"wants":[{"item":"minecraft:coal:0","quantity":{"min":16,"max":24}}],"gives":[{"item":"minecraft:emerald"}]}]}]}],"definitions":{"Item":{"title":"Item","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","title":"Item Identifier"},"price_multiplier":{"type":"number","title":"Price Multiplier"},"functions":{"$ref":"#/definitions/Functions"},"biomes":{"title":"Biomes","description":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/A"}},"quantity":{"title":"Quantity","oneOf":[{"type":"integer","minimum":1,"title":"Amount"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1,"title":"Minimum"},"max":{"type":"integer","minimum":1,"title":"Maximum"}}}]}}}]},"Functions":{"title":"Functions","type":"array","items":{"type":"object","required":["function"],"$ref":"#/definitions/B"}},"TradeArray":{"type":"array","title":"Trades","items":{"additionalProperties":false,"type":"object","title":"Trade","required":["wants","gives"],"properties":{"gives":{"type":"array","title":"Gives","items":{"title":"Give","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","title":"Item Identifier"},"quantity":{"title":"Quantity","oneOf":[{"type":"integer","minimum":1,"title":"Amount"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1,"title":"Minimum"},"max":{"type":"integer","minimum":1,"title":"Maximum"}}}]},"functions":{"$ref":"#/definitions/Functions"},"choice":{"title":"Choice","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/Item"}}}}]}},"wants":{"type":"array","title":"Wants","items":{"title":"Want","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","title":"Item Identifier"},"quantity":{"title":"Quantity","oneOf":[{"type":"integer","minimum":1,"title":"Amount"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1,"title":"Minimum"},"max":{"type":"integer","minimum":1,"title":"Maximum"}}}]},"price_multiplier":{"title":"Price Multiplier","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"number"},"functions":{"$ref":"#/definitions/Functions"},"choice":{"title":"Choice","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/Item"}}}}]}},"trader_exp":{"type":"integer","title":"Trader Experience"},"max_uses":{"type":"integer","title":"Maximum Uses"},"weight":{"type":"integer","title":"Weight"},"reward_exp":{"type":"boolean","title":"Reward Experience"}}}},"A":{"type":"string","title":"Biome Name","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["animal","beach","birch","cold","dark_oak","deep","desert","edge","extreme_hills","flower_forest","forest","frozen","hills","ice","ice_plains","jungle","lakes","lukewarm","mega","mesa","monster","mooshroom_island","mountain","mutated","nether","ocean","plains","plateau","river","roofed","savanna","shore","stone","swamp","taiga","the_end","warm"]},"C":{"additionalProperties":false,"type":"object","description":"The function enchant_random_gear","title":"Enchant Random Gear","properties":{"function":{"type":"string","const":"enchant_random_gear","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","description":"Takes a chance modifier to manipulate the algorithm. Note that a chance modifier of 1.0 doesn't mean a 100% chance that gear will become enchanted.","title":"Chance"}}},"D":{"additionalProperties":false,"type":"object","description":"The function enchant_book_for_trading","title":"Enchant Book For Trading","required":["function","base_cost","base_random_cost","per_level_random_cost","per_level_cost"],"properties":{"function":{"type":"string","const":"enchant_book_for_trading","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"E":{"additionalProperties":false,"type":"object","description":"The function enchant_randomly","title":"Enchant Randomly","properties":{"function":{"type":"string","const":"enchant_randomly","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"treasure":{"type":"boolean","description":"Supports the optional treasure boolean (true/false) to allow treasure enchantments to be toggled on and off.","title":"Treasure"}}},"F":{"additionalProperties":false,"description":"The function enchant_with_levels","title":"Enchant With Levels","type":"object","properties":{"function":{"type":"string","const":"enchant_with_levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"levels":{"title":"Levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}]},"treasure":{"type":"boolean","title":"Treasure","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"G":{"additionalProperties":false,"description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Exploration Map","type":"object","properties":{"function":{"type":"string","const":"exploration_map","description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Function"},"destination":{"type":"string","description":"The destination value defines what type of treasure map they receive.","enum":["endcity","fortress","mineshaft","monument","ruins","stronghold","temple","village","mansion","shipwreck","buriedtreasure","pillageroutpost"],"title":"Destination"}}},"H":{"additionalProperties":false,"type":"object","description":"The function fill_container","title":"Fill Container","properties":{"function":{"type":"string","const":"fill_container","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"loot_table":{"type":"string","title":"Loot Table","pattern":"^loot_tables/.*\\.json$","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BA":{"type":"object","additionalProperties":false,"description":"Returns true if the actor properties defined were executed.","title":"Entity Properties","properties":{"condition":{"type":"string","title":"Condition","description":"Returns true if the actor properties defined were executed.","$comment":"UNDOCUMENTED"},"entity":{"type":"string","default":"this","description":"The entity to test. The value must be only `this`.","title":"Entity"},"properties":{"type":"object","default":{},"description":"The entity's properties. `on_fire`, `on_ground` is used for now.","title":"Properties","additionalProperties":false,"properties":{"on_fire":{"title":"On Fire","description":"Checks if the entity is on fire or not","$comment":"UNDOCUMENTED","type":"boolean"},"on_ground":{"title":"On Ground","description":"Checks if the entity is on the ground or not","$comment":"UNDOCUMENTED","type":"boolean"}}}}},"BB":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor's mark variant is matched to the value.","title":"Has Mark Variant","properties":{"condition":{"type":"string","title":"Condition","description":"Returns the condition true if the actor's mark variant is matched to the value.","$comment":"UNDOCUMENTED"},"value":{"type":"integer","default":"0","description":"Tests for the actor's mark variant (if it has one)","title":"Value"}}},"BC":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BD":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player Or Pets Or Pets","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BE":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value.","title":"Random Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Chance"},"max_chance":{"type":"number","default":0,"description":"The maximum random chance value allowed.","title":"Maximum Chance"}}},"BF":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value. Looting enchantment increase the random chance multiplier.","title":"Random Chance With Looting","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"The random chance of the value.","title":"Chance"},"looting_multiplier":{"type":"number","default":0,"description":"The multiplier for the chance if the target entity has the looting enchant that affects the actor.","title":"Looting Multiplier"}}},"BG":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value based on the level difficulty.","title":"Random Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"BH":{"type":"object","additionalProperties":false,"description":"Sets a Maximum regional difficulty random chance of the specified value.","title":"Random Regional Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"max_chance":{"title":"Maximum Chance","type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"J":{"description":"A minecraft loot table condition","title":"Condition","allOf":[{"if":{"properties":{"condition":{"type":"string","const":"entity_properties"}}},"then":{"$ref":"#/definitions/BA"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/BH"}}]},"I":{"additionalProperties":false,"type":"object","description":"If the item to return has a smelted crafting recipe and the loot table is triggered by an entity killed with fire. the result will be the smelted version of the item","title":"Furnace Smelt","properties":{"function":{"type":"string","const":"furnace_smelt","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"conditions":{"title":"Conditions","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/J"}}}},"BI":{"additionalProperties":false,"description":"The function looting_enchant","title":"Looting Enchant","type":"object","properties":{"function":{"type":"string","const":"looting_enchant","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"count":{"type":"object","properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Count","additionalProperties":false}}},"BJ":{"additionalProperties":false,"description":"The function random_aux_value","title":"Random Aux Value","type":"object","properties":{"function":{"type":"string","const":"random_aux_value","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"values":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false,"type":"object","properties":{"min":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum"},"max":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum"}}}}},"CA":{"additionalProperties":false,"description":"The function random_block_state","title":"Random Block State","type":"object","properties":{"function":{"type":"string","const":"random_block_state","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"block_state":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Block State"},"values":{"type":"object","properties":{"min":{"title":"Min","type":"integer"},"max":{"title":"Max","type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false}}},"CB":{"additionalProperties":false,"description":"The function set_actor_id","title":"Set Actor Id","type":"object","properties":{"function":{"type":"string","const":"set_actor_id","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"id":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Id"}}},"CC":{"additionalProperties":false,"description":"The function set_banner_details","title":"Set Banner Details","type":"object","properties":{"function":{"type":"string","const":"set_banner_details","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"type":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Type"}}},"CD":{"additionalProperties":false,"description":"The function set_book_contents","title":"Set Book Contents","required":["function","author","title","pages"],"type":"object","properties":{"function":{"type":"string","const":"set_book_contents","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"author":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Author"},"title":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Title"},"pages":{"type":"array","items":{"type":"string","examples":["Some text","{`rawtext`:[ {`translate`:`some.text`}]}"]},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Pages"}}},"CE":{"additionalProperties":false,"type":"object","description":"The function set_count","title":"Set Count","properties":{"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"count":{"title":"Count","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}],"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"CF":{"additionalProperties":false,"description":"The function set_damage","title":"Set Damage","type":"object","properties":{"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Damage","oneOf":[{"type":"number","minimum":0,"maximum":1},{"type":"object","properties":{"min":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum","minimum":0,"maximum":1},"max":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum","minimum":0,"maximum":1}}}]}}},"CG":{"additionalProperties":false,"description":"The function set_data","title":"Set Data","type":"object","properties":{"function":{"type":"string","const":"set_data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"data":{"title":"Data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"max":{"type":"integer","title":"Maximum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}}]}}},"CH":{"additionalProperties":false,"description":"The function set_data_from_color_index","title":"Set Data From Color Index","type":"object","properties":{"function":{"type":"string","const":"set_data_from_color_index","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CI":{"additionalProperties":false,"description":"The function trader_material_type","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"trader_material_type","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CJ":{"additionalProperties":false,"description":"The function random_dye","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"random_dye","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"DA":{"additionalProperties":false,"description":"The function set_lore","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"lore":{"type":"array","items":{"type":"string"},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Lore"}}},"DB":{"additionalProperties":false,"description":"The function set_name","title":"Set Name","type":"object","properties":{"function":{"type":"string","const":"set_name","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"name":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"name"}}},"DC_IDEnchant":{"type":"string","title":"ID Enchantment","enum":["aqua_affinity","bane_of_arthropods","blast_protection","channeling","binding","curse_of_vanishing","depth_strider","efficiency","feather_falling","fire_aspect","fire_protection","flame","fortune","frost_walker","impaling","infinity","knockback","looting","loyalty","luck_of_the_sea","lure","mending","multishot","piercing","projectile_protection","protection","power","punch","quick_charge","respiration","riptide","sharpness","silk_touch","smite","soul_speed","thorns","unbreaking"]},"DC_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/DC_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"DC":{"additionalProperties":false,"type":"object","description":"The function specific_enchants","title":"Specific Enchants","properties":{"function":{"type":"string","const":"specific_enchants","description":"Specific enchants","title":"Specific Enchants"},"enchants":{"title":"Enchants","description":"A enchanting specification","oneOf":[{"type":"string","$ref":"#/definitions/DC_IDEnchant"},{"type":"object","$ref":"#/definitions/DC_Enchant"},{"type":"array","items":{"$ref":"#/definitions/DC_Enchant"}}]}}},"B":{"description":"A minecraft loot table condition","title":"Functions","type":"object","properties":{"function":{"type":"string","enum":["enchant_random_gear","enchant_book_for_trading","enchant_randomly","enchant_with_levels","exploration_map","fill_container","furnace_smelt","looting_enchant","random_aux_value","random_block_state","set_actor_id","set_banner_details","set_book_contents","set_count","set_damage","set_data","set_data_from_color_index","trader_material_type","random_dye","set_lore","set_name","specific_enchants"]},"add":{"title":"Add","description":"UNDOCUMENTED","type":"boolean","default":false}},"allOf":[{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_random_gear$"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/I"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/BI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/CB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/CC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/CD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/DB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/DC"}}]},"DD":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.19.0","examples":["1.19.0","1.18.30","1.18.20","1.18.10","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18|}.${3|2|0|}"}]}},"properties":{"format_version":{"$ref":"#/definitions/DD"},"tiers":{"type":"array","title":"Tiers","description":"A collection of tiers","items":{"additionalProperties":false,"type":"object","title":"Tier","properties":{"trades":{"$ref":"#/definitions/TradeArray"},"total_exp_required":{"title":"Total Experience Required","type":"integer"},"groups":{"type":"array","title":"Groups","description":"A collection of groups","items":{"type":"object","title":"Group","additionalProperties":false,"properties":{"num_to_select":{"title":"Number To Select","type":"integer"},"trades":{"$ref":"#/definitions/TradeArray"}}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.trading","type":"object","additionalProperties":false,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Trading","examples":[{"tiers":[{"trades":[{"wants":[{"item":"minecraft:coal:0","quantity":{"min":16,"max":24}}],"gives":[{"item":"minecraft:emerald"}]}]}]}],"definitions":{"Item":{"title":"Item","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","title":"Item Identifier"},"price_multiplier":{"type":"number","title":"Price Multiplier"},"functions":{"$ref":"#/definitions/Functions"},"biomes":{"title":"Biomes","description":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/A"}},"quantity":{"title":"Quantity","oneOf":[{"type":"integer","minimum":1,"title":"Amount"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1,"title":"Minimum"},"max":{"type":"integer","minimum":1,"title":"Maximum"}}}]}}}]},"Functions":{"title":"Functions","type":"array","items":{"type":"object","required":["function"],"$ref":"#/definitions/B"}},"TradeArray":{"type":"array","title":"Trades","items":{"additionalProperties":false,"type":"object","title":"Trade","required":["wants","gives"],"properties":{"gives":{"type":"array","title":"Gives","items":{"title":"Give","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","title":"Item Identifier"},"quantity":{"title":"Quantity","oneOf":[{"type":"integer","minimum":1,"title":"Amount"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1,"title":"Minimum"},"max":{"type":"integer","minimum":1,"title":"Maximum"}}}]},"functions":{"$ref":"#/definitions/Functions"},"choice":{"title":"Choice","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/Item"}}}}]}},"wants":{"type":"array","title":"Wants","items":{"title":"Want","oneOf":[{"type":"string"},{"type":"object","additionalProperties":false,"properties":{"item":{"type":"string","title":"Item Identifier"},"quantity":{"title":"Quantity","oneOf":[{"type":"integer","minimum":1,"title":"Amount"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","minimum":1,"title":"Minimum"},"max":{"type":"integer","minimum":1,"title":"Maximum"}}}]},"price_multiplier":{"title":"Price Multiplier","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"number"},"functions":{"$ref":"#/definitions/Functions"},"choice":{"title":"Choice","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/Item"}}}}]}},"trader_exp":{"type":"integer","title":"Trader Experience"},"max_uses":{"type":"integer","title":"Maximum Uses"},"weight":{"type":"integer","title":"Weight"},"reward_exp":{"type":"boolean","title":"Reward Experience"}}}},"A":{"type":"string","title":"Biome Name","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","enum":["animal","beach","birch","cold","dark_oak","deep","desert","edge","extreme_hills","flower_forest","forest","frozen","hills","ice","ice_plains","jungle","lakes","lukewarm","mega","mesa","monster","mooshroom_island","mountain","mutated","nether","ocean","plains","plateau","river","roofed","savanna","shore","stone","swamp","taiga","the_end","warm"]},"C":{"additionalProperties":false,"type":"object","description":"The function enchant_random_gear","title":"Enchant Random Gear","properties":{"function":{"type":"string","const":"enchant_random_gear","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","description":"Takes a chance modifier to manipulate the algorithm. Note that a chance modifier of 1.0 doesn't mean a 100% chance that gear will become enchanted.","title":"Chance"}}},"D":{"additionalProperties":false,"type":"object","description":"The function enchant_book_for_trading","title":"Enchant Book For Trading","required":["function","base_cost","base_random_cost","per_level_random_cost","per_level_cost"],"properties":{"function":{"type":"string","const":"enchant_book_for_trading","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"base_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_random_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"per_level_cost":{"type":"integer","title":"Base Cost","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"E":{"additionalProperties":false,"type":"object","description":"The function enchant_randomly","title":"Enchant Randomly","properties":{"function":{"type":"string","const":"enchant_randomly","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"treasure":{"type":"boolean","description":"Supports the optional treasure boolean (true/false) to allow treasure enchantments to be toggled on and off.","title":"Treasure"}}},"F":{"additionalProperties":false,"description":"The function enchant_with_levels","title":"Enchant With Levels","type":"object","properties":{"function":{"type":"string","const":"enchant_with_levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"levels":{"title":"Levels","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}]},"treasure":{"type":"boolean","title":"Treasure","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"G":{"additionalProperties":false,"description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Exploration Map","type":"object","properties":{"function":{"type":"string","const":"exploration_map","description":"Transforms a normal map into a treasure map that marks the location of hidden treasure","title":"Function"},"destination":{"type":"string","description":"The destination value defines what type of treasure map they receive.","enum":["endcity","fortress","mineshaft","monument","ruins","stronghold","temple","village","mansion","shipwreck","buriedtreasure","pillageroutpost"],"title":"Destination"}}},"H":{"additionalProperties":false,"type":"object","description":"The function fill_container","title":"Fill Container","properties":{"function":{"type":"string","const":"fill_container","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"loot_table":{"type":"string","title":"Loot Table","pattern":"^loot_tables/.*\\.json$","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BA":{"type":"object","additionalProperties":false,"description":"Returns true if the actor properties defined were executed.","title":"Entity Properties","properties":{"condition":{"type":"string","title":"Condition","description":"Returns true if the actor properties defined were executed.","$comment":"UNDOCUMENTED"},"entity":{"type":"string","default":"this","description":"The entity to test. The value must be only `this`.","title":"Entity"},"properties":{"type":"object","default":{},"description":"The entity's properties. `on_fire`, `on_ground` is used for now.","title":"Properties","additionalProperties":false,"properties":{"on_fire":{"title":"On Fire","description":"Checks if the entity is on fire or not","$comment":"UNDOCUMENTED","type":"boolean"},"on_ground":{"title":"On Ground","description":"Checks if the entity is on the ground or not","$comment":"UNDOCUMENTED","type":"boolean"}}}}},"BB":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor's mark variant is matched to the value.","title":"Has Mark Variant","properties":{"condition":{"type":"string","title":"Condition","description":"Returns the condition true if the actor's mark variant is matched to the value.","$comment":"UNDOCUMENTED"},"value":{"type":"integer","default":"0","description":"Tests for the actor's mark variant (if it has one)","title":"Value"}}},"BC":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BD":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by player or entities that has owner.","title":"Killed By Player Or Pets Or Pets","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"BE":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value.","title":"Random Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Chance"},"max_chance":{"type":"number","default":0,"description":"The maximum random chance value allowed.","title":"Maximum Chance"}}},"BF":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value. Looting enchantment increase the random chance multiplier.","title":"Random Chance With Looting","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"chance":{"type":"number","default":0,"description":"The random chance of the value.","title":"Chance"},"looting_multiplier":{"type":"number","default":0,"description":"The multiplier for the chance if the target entity has the looting enchant that affects the actor.","title":"Looting Multiplier"}}},"BG":{"type":"object","additionalProperties":false,"description":"Sets a random chance of the specified value based on the level difficulty.","title":"Random Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"BH":{"type":"object","additionalProperties":false,"description":"Sets a Maximum regional difficulty random chance of the specified value.","title":"Random Regional Difficulty Chance","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"default_chance":{"type":"number","default":0,"description":"The default random chance if the level difficulty is not assigned.","title":"Default Chance"},"max_chance":{"title":"Maximum Chance","type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"easy":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in easy. Omitting this field will set the value to `default_chance` field.","title":"Easy"},"hard":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in hard. Omitting this field will set the value to `default_chance` field.","title":"Hard"},"normal":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in normal. Omitting this field will set the value to `default_chance` field.","title":"Normal"},"peaceful":{"type":"number","default":0,"description":"The default random chance if the level difficulty is in peaceful. Omitting this field will set the value to `default_chance` field.","title":"Peaceful"}}},"J":{"description":"A minecraft loot table condition","title":"Condition","allOf":[{"if":{"properties":{"condition":{"type":"string","const":"entity_properties"}}},"then":{"$ref":"#/definitions/BA"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/BH"}}]},"I":{"additionalProperties":false,"type":"object","description":"If the item to return has a smelted crafting recipe and the loot table is triggered by an entity killed with fire. the result will be the smelted version of the item","title":"Furnace Smelt","properties":{"function":{"type":"string","const":"furnace_smelt","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"conditions":{"title":"Conditions","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","type":"array","items":{"$ref":"#/definitions/J"}}}},"BI":{"additionalProperties":false,"description":"The function looting_enchant","title":"Looting Enchant","type":"object","properties":{"function":{"type":"string","const":"looting_enchant","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"count":{"type":"object","properties":{"min":{"type":"integer"},"max":{"type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Count","additionalProperties":false}}},"BJ":{"additionalProperties":false,"description":"The function random_aux_value","title":"Random Aux Value","type":"object","properties":{"function":{"type":"string","const":"random_aux_value","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"values":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false,"type":"object","properties":{"min":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum"},"max":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum"}}}}},"CA":{"additionalProperties":false,"description":"The function random_block_state","title":"Random Block State","type":"object","properties":{"function":{"type":"string","const":"random_block_state","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"block_state":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Block State"},"values":{"type":"object","properties":{"min":{"title":"Min","type":"integer"},"max":{"title":"Max","type":"integer"}},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Values","additionalProperties":false}}},"CB":{"additionalProperties":false,"description":"The function set_actor_id","title":"Set Actor Id","type":"object","properties":{"function":{"type":"string","const":"set_actor_id","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"id":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Id"}}},"CC":{"additionalProperties":false,"description":"The function set_banner_details","title":"Set Banner Details","type":"object","properties":{"function":{"type":"string","const":"set_banner_details","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"type":{"type":"integer","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Type"}}},"CD":{"additionalProperties":false,"description":"The function set_book_contents","title":"Set Book Contents","required":["function","author","title","pages"],"type":"object","properties":{"function":{"type":"string","const":"set_book_contents","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"author":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Author"},"title":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Title"},"pages":{"type":"array","items":{"type":"string","examples":["Some text","{`rawtext`:[ {`translate`:`some.text`}]}"]},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Pages"}}},"CE":{"additionalProperties":false,"type":"object","description":"The function set_count","title":"Set Count","properties":{"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"count":{"title":"Count","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum"},"max":{"type":"integer","title":"Maximum"}}}],"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}},"CF":{"additionalProperties":false,"description":"The function set_damage","title":"Set Damage","type":"object","properties":{"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Damage","oneOf":[{"type":"number","minimum":0,"maximum":1},{"type":"object","properties":{"min":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Minimum","minimum":0,"maximum":1},"max":{"type":"number","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Maximum","minimum":0,"maximum":1}}}]}}},"CG":{"additionalProperties":false,"description":"The function set_data","title":"Set Data","type":"object","properties":{"function":{"type":"string","const":"set_data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"data":{"title":"Data","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","oneOf":[{"type":"integer"},{"type":"object","properties":{"min":{"type":"integer","title":"Minimum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"},"max":{"type":"integer","title":"Maximum","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED"}}}]}}},"CH":{"additionalProperties":false,"description":"The function set_data_from_color_index","title":"Set Data From Color Index","type":"object","properties":{"function":{"type":"string","const":"set_data_from_color_index","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CI":{"additionalProperties":false,"description":"The function trader_material_type","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"trader_material_type","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"CJ":{"additionalProperties":false,"description":"The function random_dye","title":"Trader Material Type","type":"object","properties":{"function":{"type":"string","const":"random_dye","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"}}},"DA":{"additionalProperties":false,"description":"The function set_lore","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"lore":{"type":"array","items":{"type":"string"},"description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Lore"}}},"DB":{"additionalProperties":false,"description":"The function set_name","title":"Set Name","type":"object","properties":{"function":{"type":"string","const":"set_name","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"Function"},"name":{"type":"string","description":"UNDOCUMENTED","$comment":"UNDOCUMENTED","title":"name"}}},"DC_IDEnchant":{"type":"string","title":"ID Enchantment","enum":["aqua_affinity","bane_of_arthropods","blast_protection","channeling","binding","curse_of_vanishing","depth_strider","efficiency","feather_falling","fire_aspect","fire_protection","flame","fortune","frost_walker","impaling","infinity","knockback","looting","loyalty","luck_of_the_sea","lure","mending","multishot","piercing","projectile_protection","protection","power","punch","quick_charge","respiration","riptide","sharpness","silk_touch","smite","soul_speed","thorns","unbreaking"]},"DC_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/DC_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"DC":{"additionalProperties":false,"type":"object","description":"The function specific_enchants","title":"Specific Enchants","properties":{"function":{"type":"string","const":"specific_enchants","description":"Specific enchants","title":"Specific Enchants"},"enchants":{"title":"Enchants","description":"A enchanting specification","oneOf":[{"type":"string","$ref":"#/definitions/DC_IDEnchant"},{"type":"object","$ref":"#/definitions/DC_Enchant"},{"type":"array","items":{"$ref":"#/definitions/DC_Enchant"}}]}}},"B":{"description":"A minecraft loot table condition","title":"Functions","type":"object","properties":{"function":{"type":"string","enum":["enchant_book_for_trading","enchant_random_gear","enchant_randomly","enchant_with_levels","exploration_map","fill_container","furnace_smelt","looting_enchant","random_aux_value","random_block_state","random_dye","set_actor_id","set_banner_details","set_book_contents","set_count","set_damage","set_data_from_color_index","set_data","set_lore","set_name","specific_enchants","trader_material_type","minecraft:enchant_book_for_trading","minecraft:enchant_random_gear","minecraft:enchant_randomly","minecraft:enchant_with_levels","minecraft:exploration_map","minecraft:fill_container","minecraft:furnace_smelt","minecraft:looting_enchant","minecraft:random_aux_value","minecraft:random_block_state","minecraft:random_dye","minecraft:set_actor_id","minecraft:set_banner_details","minecraft:set_book_contents","minecraft:set_count","minecraft:set_damage","minecraft:set_data_from_color_index","minecraft:set_data","minecraft:set_lore","minecraft:set_name","minecraft:specific_enchants","minecraft:trader_material_type"]},"add":{"title":"Add","description":"UNDOCUMENTED","type":"boolean","default":false}},"allOf":[{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_random_gear$"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/I"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/BI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/CB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/CC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/CD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/DB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/DC"}}]},"DD":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.19.0","examples":["1.19.0","1.18.30","1.18.20","1.18.10","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18|}.${3|2|0|}"}]}},"properties":{"format_version":{"$ref":"#/definitions/DD"},"tiers":{"type":"array","title":"Tiers","description":"A collection of tiers","items":{"additionalProperties":false,"type":"object","title":"Tier","properties":{"trades":{"$ref":"#/definitions/TradeArray"},"total_exp_required":{"title":"Total Experience Required","type":"integer"},"groups":{"type":"array","title":"Groups","description":"A collection of groups","items":{"type":"object","title":"Group","additionalProperties":false,"properties":{"num_to_select":{"title":"Number To Select","type":"integer"},"trades":{"$ref":"#/definitions/TradeArray"}}}}}}}}} \ No newline at end of file