Updated UNDOCUMENTED

This commit is contained in:
DaanV2
2021-07-01 11:35:53 +02:00
parent 6ac62d15e7
commit ba94cceb50
367 changed files with 2266 additions and 640 deletions

View File

@@ -5,7 +5,7 @@
"description": "Returns true if the actor properties defined were executed.",
"title": "Entity Properties",
"properties": {
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED" },
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"entity": { "type": "string", "default": "this", "description": "The entity to test. The value must be only `this`.", "title": "Entity" },
"properties": {
"type": "object",
@@ -14,8 +14,8 @@
"title": "Properties",
"additionalProperties": false,
"properties": {
"on_fire": { "title": "On Fire", "description": "UNDOCUMENTED", "type": "boolean" },
"on_ground": { "title": "On Fire", "description": "UNDOCUMENTED", "type": "boolean" }
"on_fire": { "title": "On Fire", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "boolean" },
"on_ground": { "title": "On Fire", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "boolean" }
}
}
}

View File

@@ -5,7 +5,7 @@
"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": "UNDOCUMENTED" },
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"value": { "type": "integer", "default": "0", "description": "Tests for the actor's mark variant (if it has one)", "title": "Value" }
}
}

View File

@@ -4,5 +4,5 @@
"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" } }
"properties": { "condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } }
}

View File

@@ -4,5 +4,5 @@
"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" } }
"properties": { "condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } }
}

View File

@@ -5,8 +5,8 @@
"description": "Sets a random chance of the specified value.",
"title": "Random Chance",
"properties": {
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED" },
"chance": { "type": "number", "default": 0, "description": "UNDOCUMENTED", "title": "Chance" },
"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": "Max Chance" }
}
}

View File

@@ -5,7 +5,7 @@
"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" },
"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",

View File

@@ -5,7 +5,7 @@
"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" },
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"default_chance": {
"type": "number",
"default": 0,

View File

@@ -5,7 +5,7 @@
"description": "Sets a max regional difficulty random chance of the specified value.",
"title": "Random Regional Difficulty Chance",
"properties": {
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED" },
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"default_chance": {
"type": "number",
"default": 0,

View File

@@ -5,10 +5,16 @@
"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" },
"base_cost": { "type": "integer", "title": "Base Cost", "description": "UNDOCUMENTED" },
"base_random_cost": { "type": "integer", "title": "Base Cost", "description": "UNDOCUMENTED" },
"per_level_random_cost": { "type": "integer", "title": "Base Cost", "description": "UNDOCUMENTED" },
"per_level_cost": { "type": "integer", "title": "Base Cost", "description": "UNDOCUMENTED" }
"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" }
}
}

View File

@@ -4,7 +4,7 @@
"description": "The function enchant_random_gear",
"title": "Enchant Random Gear",
"properties": {
"function": { "type": "string", "const": "enchant_random_gear", "title": "Function", "description": "UNDOCUMENTED" },
"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.",

View File

@@ -4,7 +4,7 @@
"description": "The function enchant_randomly",
"title": "Enchant Randomly",
"properties": {
"function": { "type": "string", "const": "enchant_randomly", "title": "Function", "description": "UNDOCUMENTED" },
"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.",

View File

@@ -4,7 +4,13 @@
"description": "The function enchant_with_levels",
"title": "Enchant With Levels",
"properties": {
"function": { "type": "string", "const": "enchant_with_levels", "description": "UNDOCUMENTED", "title": "TODO Title" },
"function": {
"type": "string",
"const": "enchant_with_levels",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "TODO Title"
},
"levels": {
"title": "Levels",
"oneOf": [
@@ -16,8 +22,9 @@
"properties": { "min": { "type": "integer", "title": "Minimum" }, "max": { "type": "integer", "title": "Maximum" } }
}
],
"description": "UNDOCUMENTED"
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED"
},
"treasure": { "type": "boolean", "title": "Treasure", "description": "UNDOCUMENTED" }
"treasure": { "type": "boolean", "title": "Treasure", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }
}
}

View File

@@ -5,7 +5,7 @@
"title": "Exploration Map",
"type": "object",
"properties": {
"function": { "type": "string", "const": "exploration_map", "description": "UNDOCUMENTED", "title": "Function" },
"function": { "type": "string", "const": "exploration_map", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"destination": {
"type": "string",
"description": "The destination value defines what type of treasure map they receive.",

View File

@@ -4,7 +4,13 @@
"description": "The function fill_container",
"title": "Fill Container",
"properties": {
"function": { "type": "string", "const": "fill_container", "title": "Function", "description": "UNDOCUMENTED" },
"loot_table": { "type": "string", "title": "Loot Table", "pattern": "^loot_tables/.*\\.json$", "description": "UNDOCUMENTED" }
"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"
}
}
}

View File

@@ -5,7 +5,13 @@
"title": "Furnace Smelt",
"type": "object",
"properties": {
"function": { "type": "string", "const": "furnace_smelt", "description": "UNDOCUMENTED", "title": "Function" },
"conditions": { "title": "Conditions", "description": "UNDOCUMENTED", "type": "array", "items": { "$ref": "../conditions.json" } }
"function": { "type": "string", "const": "furnace_smelt", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"conditions": {
"title": "Conditions",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": { "$ref": "../conditions.json" }
}
}
}

View File

@@ -5,11 +5,12 @@
"title": "Looting Enchant",
"type": "object",
"properties": {
"function": { "type": "string", "const": "looting_enchant", "description": "UNDOCUMENTED", "title": "Function" },
"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
}

View File

@@ -5,15 +5,16 @@
"title": "Random Aux Value",
"type": "object",
"properties": {
"function": { "type": "string", "const": "random_aux_value", "description": "UNDOCUMENTED", "title": "Function" },
"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", "title": "Minimum" },
"max": { "type": "integer", "description": "UNDOCUMENTED", "title": "Maximum" }
"min": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Minimum" },
"max": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Maximum" }
}
}
}

View File

@@ -5,12 +5,13 @@
"title": "Random Block State",
"type": "object",
"properties": {
"function": { "type": "string", "const": "random_block_state", "description": "UNDOCUMENTED", "title": "Function" },
"block_state": { "type": "string", "description": "UNDOCUMENTED", "title": "Block State" },
"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
}

View File

@@ -4,5 +4,7 @@
"description": "The function random_dye",
"title": "Trader Material Type",
"type": "object",
"properties": { "function": { "type": "string", "const": "random_dye", "description": "UNDOCUMENTED", "title": "Function" } }
"properties": {
"function": { "type": "string", "const": "random_dye", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" }
}
}

View File

@@ -5,7 +5,7 @@
"title": "Set Actor Id",
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_actor_id", "description": "UNDOCUMENTED", "title": "Function" },
"id": { "type": "string", "description": "UNDOCUMENTED", "title": "Id" }
"function": { "type": "string", "const": "set_actor_id", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"id": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Id" }
}
}

View File

@@ -5,7 +5,7 @@
"title": "Set Banner Details",
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_banner_details", "description": "UNDOCUMENTED", "title": "Function" },
"type": { "type": "integer", "description": "UNDOCUMENTED", "title": "Type" }
"function": { "type": "string", "const": "set_banner_details", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"type": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Type" }
}
}

View File

@@ -6,13 +6,14 @@
"required": ["function", "author", "title", "pages"],
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_book_contents", "description": "UNDOCUMENTED", "title": "Function" },
"author": { "type": "string", "description": "UNDOCUMENTED", "title": "Author" },
"title": { "type": "string", "description": "UNDOCUMENTED", "title": "Title" },
"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"
}
}

View File

@@ -4,11 +4,15 @@
"description": "The function set_count",
"title": "Set Count",
"properties": {
"function": { "type": "string", "const": "set_count", "title": "Function", "description": "UNDOCUMENTED" },
"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"
"oneOf": [
{ "type": "integer" },
{ "type": "object", "properties": { "min": { "type": "integer", "title": "Minimum" }, "max": { "type": "integer", "title": "Maximum" } } }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED"
}
}
}

View File

@@ -5,17 +5,18 @@
"title": "Set Damage",
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_damage", "description": "UNDOCUMENTED", "title": "Function" },
"function": { "type": "string", "const": "set_damage", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"damage": {
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Damage",
"oneOf": [
{ "type": "integer" },
{
"type": "object",
"properties": {
"min": { "type": "integer", "description": "UNDOCUMENTED", "title": "Minimum" },
"max": { "type": "integer", "description": "UNDOCUMENTED", "title": "Maximum" }
"min": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Minimum" },
"max": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Maximum" }
}
}
]

View File

@@ -5,17 +5,18 @@
"title": "Set Data",
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_data", "description": "UNDOCUMENTED", "title": "Function" },
"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" },
"max": { "type": "integer", "title": "Maximum", "description": "UNDOCUMENTED" }
"min": { "type": "integer", "title": "Minimum", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"max": { "type": "integer", "title": "Maximum", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }
}
}
]

View File

@@ -4,5 +4,13 @@
"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", "title": "Function" } }
"properties": {
"function": {
"type": "string",
"const": "set_data_from_color_index",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Function"
}
}
}

View File

@@ -5,7 +5,7 @@
"title": "Set Lore",
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_lore", "description": "UNDOCUMENTED", "title": "Function" },
"lore": { "type": "array", "items": { "type": "string" }, "description": "UNDOCUMENTED", "title": "Lore" }
"function": { "type": "string", "const": "set_lore", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"lore": { "type": "array", "items": { "type": "string" }, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Lore" }
}
}

View File

@@ -5,7 +5,7 @@
"title": "Set Name",
"type": "object",
"properties": {
"function": { "type": "string", "const": "set_name", "description": "UNDOCUMENTED", "title": "Function" },
"name": { "type": "string", "description": "UNDOCUMENTED", "title": "name" }
"function": { "type": "string", "const": "set_name", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Function" },
"name": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "name" }
}
}

View File

@@ -4,5 +4,7 @@
"description": "The function trader_material_type",
"title": "Trader Material Type",
"type": "object",
"properties": { "function": { "type": "string", "const": "trader_material_type", "description": "UNDOCUMENTED", "title": "function" } }
"properties": {
"function": { "type": "string", "const": "trader_material_type", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "function" }
}
}

View File

@@ -24,6 +24,7 @@
"pools_spec": {
"title": "Pools",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "array",
"additionalProperties": false,
"items": {
@@ -45,8 +46,20 @@
}
]
},
"type": { "title": "Type", "type": "string", "description": "UNDOCUMENTED", "enum": ["loot_table", "item", "empty"] },
"conditions": { "title": "Conditions", "description": "UNDOCUMENTED", "type": "array", "items": { "$ref": "./conditions.json" } },
"type": {
"title": "Type",
"type": "string",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"enum": ["loot_table", "item", "empty"]
},
"conditions": {
"title": "Conditions",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": { "$ref": "./conditions.json" }
},
"entries": {
"title": "Entries",
"type": "array",
@@ -73,12 +86,13 @@
"tiers": {
"title": "Tiers",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "object",
"additionalProperties": false,
"properties": {
"bonus_chance": { "title": "Bonus Chance", "description": "UNDOCUMENTED", "type": "number" },
"bonus_rolls": { "title": "Bonus Rolls", "description": "UNDOCUMENTED", "type": "integer" },
"initial_range": { "title": "Initial Range", "description": "UNDOCUMENTED", "type": "integer" }
"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" }
}
}
}
@@ -86,7 +100,7 @@
}
},
"properties": {
"pools": { "$ref": "#/definitions/pools_spec", "description": "UNDOCUMENTED", "title": "TODO Title" },
"type": { "title": "Type", "type": "string", "description": "UNDOCUMENTED", "enum": ["minecraft:chest"] }
"pools": { "$ref": "#/definitions/pools_spec", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO Title" },
"type": { "title": "Type", "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["minecraft:chest"] }
}
}