diff --git a/behavior/loot_tables/loot_tables.json b/behavior/loot_tables/loot_tables.json index e7c3ec1f..c97a6264 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","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","required":["rolls"],"properties":{"rolls":{"title":"Rolls","description":"Determines how many items, will be selected.","$ref":"#/definitions/A"},"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/B"}},"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/)?[\\w]+(?:/[\\w]+)*$"},"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/CC"}},"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}}}},"A":{"description":"An integer value or inclusive range.","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","description":"Minimum value."},"max":{"type":"integer","description":"Maximum value."}}}]},"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","title":"Has Variant","description":"Checks the variant value of the current actor.","additionalProperties":false,"required":["condition","variant"],"properties":{"condition":{"const":"has_variant"},"value":{"type":"integer","description":"Expected variant identifier."}}},"E":{"type":"object","title":"Has Property","description":"Checks whether the current actor exposes a property in the given domain.","additionalProperties":false,"required":["condition","domain"],"properties":{"condition":{"const":"has_property"},"domain":{"type":"string","description":"Property domain identifier."}}},"F":{"type":"object","title":"Bool Property","description":"Checks whether a boolean property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"bool_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"boolean","description":"Expected boolean value."}}},"G":{"type":"object","title":"Int Property","description":"Checks whether an integer property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"int_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected integer value.","type":"integer"}}},"H":{"type":"object","title":"Float Property","description":"Checks whether a float property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"float_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected float value.","type":"number"}}},"I":{"type":"object","title":"Enum Property","description":"Checks whether an enum property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"enum_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"string","description":"Expected enumeration value."}}},"BA":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"J":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the block of the loot table was broken with a specific item.","title":"Match Tool","required":["condition"],"properties":{"condition":{"type":"string","const":"match_tool","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"item":{"description":"The item to match","$ref":"#/definitions/BA"},"count":{"title":"Count","description":"Minimum count to match of the given item","$ref":"#/definitions/A"},"durability":{"title":"Durability","description":"Minimum durability to match of the given item","$ref":"#/definitions/A"},"enchantments":{"title":"Enchantments","description":"List of enchantments to check for","type":"array","items":{"type":"object","required":["enchantment"],"properties":{"enchantment":{"title":"Enchantment","description":"The enchantment ID to check for","type":"string","enum":["protection","fire_protection","feather_falling","blast_protection","projectile_protection","thorns","respiration","depth_strider","aqua_affinity","sharpness","smite","bane_of_arthropods","knockback","fire_aspect","looting","efficiency","silk_touch","unbreaking","fortune","power","punch","flame","infinity","luck_of_the_sea","lure","frost_walker","mending","binding","vanishing","impaling","riptide","loyalty","channeling","multishot","piercing","quick_charge","soul_speed","swift_sneak","wind_burst","density","breach"]},"levels":{"title":"Levels","description":"The level of the enchantment","type":"object","properties":{"range_min":{"title":"Minimum","description":"The minimum level of the enchantment","type":"integer"},"range_max":{"title":"Maximum","description":"The maximum level of the enchantment","type":"integer"}}}}}},"minecraft:match_tool_filter_all":{"title":"Match Tool Filter All","description":"List of tags the item must have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_none":{"title":"Match Tool Filter None","description":"List of tags the item must NOT have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_any":{"title":"Match Tool Filter Any","description":"List of tags the item must have at least one of","type":"array","items":{"type":"string"}}}},"BB":{"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"}}},"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 Or Pets","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 a specific entity type.","title":"Killed By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"BE":{"type":"object","additionalProperties":false,"description":"Allows checking which entity type applied damage to an entity that is dropping loot.","title":"Damaged By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"BF":{"type":"object","title":"Entity Killed","description":"Checks whether the source entity matches the supplied identifier.","additionalProperties":false,"required":["condition","entity_type"],"properties":{"condition":{"const":"entity_killed"},"entity_type":{"type":"string","description":"Entity identifier expected for the killer/victim."}}},"BG":{"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"}}},"BH":{"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"}}},"BI":{"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"}}},"BJ":{"type":"object","additionalProperties":false,"description":"Passes with a probability scaled by the world's regional difficulty multiplier. The regional difficulty is based on dimension, world difficulty and moon brightness.","title":"Random Regional Difficulty Chance","properties":{"condition":{"const":"random_regional_difficulty_chance"},"max_chance":{"type":"number","description":"Base probability (0-1) before scaling by the regional difficulty multiplier.","minimum":0,"maximum":1,"default":0}},"required":["condition"]},"CA":{"type":"object","additionalProperties":false,"description":"Allows checking which vehicle entity type is being ridden by the damaged entity that is dropping loot","title":"Passenger Of Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CB":{"type":"object","additionalProperties":false,"description":"Allows checking if the entity that is dropping loot is a baby","title":"Is Baby","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"B":{"description":"A minecraft loot table condition.","title":"Condition","allOf":[{"if":{"properties":{"condition":{"const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"condition":{"const":"has_variant"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"condition":{"const":"has_property"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"condition":{"const":"bool_property"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"condition":{"const":"int_property"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"condition":{"const":"float_property"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"condition":{"const":"enum_property"}}},"then":{"$ref":"#/definitions/I"}},{"if":{"properties":{"condition":{"const":"match_tool"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"condition":{"type":"string","const":"match_tool"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_entity"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"condition":{"type":"string","const":"damaged_by_entity"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"condition":{"type":"string","const":"entity_killed"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/BH"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/BI"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"condition":{"type":"string","const":"passenger_of_entity"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"condition":{"type":"string","const":"is_baby"}}},"then":{"$ref":"#/definitions/CB"}}]},"CD":{"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"}}},"CE":{"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"}}},"CF":{"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"}}},"CG":{"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"}}},"CH":{"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"}}},"CI":{"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"}}},"CJ":{"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/B"}}}},"DA":{"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}}},"DB":{"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"}}}}},"DC":{"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}}},"DD":{"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"}}},"DE":{"additionalProperties":false,"type":"object","description":"The function set_armor_trim.","title":"Set Armor Trim","required":["function","material","pattern"],"properties":{"function":{"type":"string","const":"set_armor_trim","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"material":{"title":"Material","description":"Trim's material","type":"string","enum":["amethyst","copper","diamond","emerald","gold","iron","lapis","netherite","quartz","redstone","resin"]},"pattern":{"title":"Pattern","description":"Trim pattern","type":"string","enum":["sentry","vex","wild","coast","dune","wayfinder","shaper","raiser","host","ward","silence","tide","snout","rib","eye","spire","flow","bolt"]}}},"DF":{"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"}}},"DG":{"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"}}},"DH":{"additionalProperties":false,"type":"object","description":"The function set_count.","title":"Set Count","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"count":{"title":"Count","$ref":"#/definitions/A","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"DI":{"additionalProperties":false,"description":"The function set_damage.","title":"Set Damage","type":"object","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Damage","$ref":"#/definitions/A"}}},"DJ":{"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","$ref":"#/definitions/A"}}},"EA":{"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"}}},"EB":{"type":"object","title":"Set Ominous Bottle Amplifier","description":"Configures the amplifier value applied to the ominous bottle item.","additionalProperties":false,"required":["function","amplifier"],"properties":{"function":{"const":"set_ominous_bottle_amplifier"},"amplifier":{"description":"Amplifier value or range to apply.","$ref":"#/definitions/A"}}},"EC":{"type":"object","title":"Set Stew Effect","description":"Configures suspicious stew status effects.","additionalProperties":false,"required":["function","effects"],"properties":{"function":{"const":"set_stew_effect"},"effects":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"integer","description":"Numeric effect identifier."},"duration":{"type":"integer","minimum":0,"description":"Optional duration in ticks for the effect."}}}}}},"ED":{"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"}}},"EE":{"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"}}},"EF":{"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"}}},"EG":{"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"}}},"EH":{"additionalProperties":false,"description":"The function set_potion.","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"This function sets the potion type of compatible items with a potion id..","title":"Function"},"id":{"title":"Id","type":"string","description":"ID of the potion to set.","enum":["water","mundane","long_mundane","thick","awkward","nightvision","long_nightvision","invisibility","long_invisibility","leaping","long_leaping","strong_leaping","fire_resistance","long_fire_resistance","swiftness","long_swiftness","strong_swiftness","slowness","long_slowness","strong_slowness","water_breathing","long_water_breathing","healing","strong_healing","harming","strong_harming","poison","long_poison","strong_poison","regeneration","long_regeneration","strong_regeneration","strength","long_strength","strong_strength","weakness","long_weakness","wither","turtle_master","long_turtle_master","strong_turtle_master","slow_falling","long_slow_falling","wind_charged","weaving","oozing","infested"]}}},"EI_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"]},"EI_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/EI_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"EI":{"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/EI_IDEnchant"},{"type":"object","$ref":"#/definitions/EI_Enchant"},{"type":"array","items":{"$ref":"#/definitions/EI_Enchant"}}]}}},"CC":{"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_armor_trim","set_banner_details","set_book_contents","set_count","set_damage","set_data_from_color_index","set_data","set_ominous_bottle_amplifier","set_lore","set_name","set_potion","set_stew_effect","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_armor_trim","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_ominous_bottle_amplifier","minecraft:set_lore","minecraft:set_name","minecraft:set_potion","minecraft:set_stew_effect","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/CD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/DB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/DC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/DD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_armor_trim$"}}},"then":{"$ref":"#/definitions/DE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/DF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/DG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/DH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/DI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/DJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/EA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_ominous_bottle_amplifier$"}}},"then":{"$ref":"#/definitions/EB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_stew_effect$"}}},"then":{"$ref":"#/definitions/EC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/ED"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/EE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/EF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/EG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_potion$"}}},"then":{"$ref":"#/definitions/EH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/EI"}}]}},"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","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","required":["rolls"],"properties":{"rolls":{"title":"Rolls","description":"Determines how many items, will be selected.","$ref":"#/definitions/A"},"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/B"}},"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/)?[\\w]+(?:/[\\w]+)*$"},"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/CC"}},"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}}}},"A":{"description":"An integer value or inclusive range.","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","description":"Minimum value."},"max":{"type":"integer","description":"Maximum value."}}}]},"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","title":"Has Variant","description":"Checks the variant value of the current actor.","additionalProperties":false,"required":["condition","variant"],"properties":{"condition":{"const":"has_variant"},"value":{"type":"integer","description":"Expected variant identifier."}}},"E":{"type":"object","title":"Has Property","description":"Checks whether the current actor exposes a property in the given domain.","additionalProperties":false,"required":["condition","domain"],"properties":{"condition":{"const":"has_property"},"domain":{"type":"string","description":"Property domain identifier."}}},"F":{"type":"object","title":"Bool Property","description":"Checks whether a boolean property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"bool_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"boolean","description":"Expected boolean value."}}},"G":{"type":"object","title":"Int Property","description":"Checks whether an integer property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"int_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected integer value.","type":"integer"}}},"H":{"type":"object","title":"Float Property","description":"Checks whether a float property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"float_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected float value.","type":"number"}}},"I":{"type":"object","title":"Enum Property","description":"Checks whether an enum property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"enum_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"string","description":"Expected enumeration value."}}},"BA":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"J":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the block of the loot table was broken with a specific item.","title":"Match Tool","required":["condition"],"properties":{"condition":{"type":"string","const":"match_tool","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"item":{"description":"The item to match","$ref":"#/definitions/BA"},"count":{"title":"Count","description":"Minimum count to match of the given item","$ref":"#/definitions/A"},"durability":{"title":"Durability","description":"Minimum durability to match of the given item","$ref":"#/definitions/A"},"enchantments":{"title":"Enchantments","description":"List of enchantments to check for","type":"array","items":{"type":"object","required":["enchantment"],"properties":{"enchantment":{"title":"Enchantment","description":"The enchantment ID to check for","type":"string","enum":["protection","fire_protection","feather_falling","blast_protection","projectile_protection","thorns","respiration","depth_strider","aqua_affinity","sharpness","smite","bane_of_arthropods","knockback","fire_aspect","looting","efficiency","silk_touch","unbreaking","fortune","power","punch","flame","infinity","luck_of_the_sea","lure","frost_walker","mending","binding","vanishing","impaling","riptide","loyalty","channeling","multishot","piercing","quick_charge","soul_speed","swift_sneak","wind_burst","density","breach"]},"levels":{"title":"Levels","description":"The level of the enchantment","type":"object","properties":{"range_min":{"title":"Minimum","description":"The minimum level of the enchantment","type":"integer"},"range_max":{"title":"Maximum","description":"The maximum level of the enchantment","type":"integer"}}}}}},"minecraft:match_tool_filter_all":{"title":"Match Tool Filter All","description":"List of tags the item must have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_none":{"title":"Match Tool Filter None","description":"List of tags the item must NOT have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_any":{"title":"Match Tool Filter Any","description":"List of tags the item must have at least one of","type":"array","items":{"type":"string"}}}},"BB":{"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"}}},"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 Or Pets","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 a specific entity type.","title":"Killed By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"BE":{"type":"object","additionalProperties":false,"description":"Allows checking which entity type applied damage to an entity that is dropping loot.","title":"Damaged By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"BF":{"type":"object","title":"Entity Killed","description":"Checks whether the source entity matches the supplied identifier.","additionalProperties":false,"required":["condition","entity_type"],"properties":{"condition":{"const":"entity_killed"},"entity_type":{"type":"string","description":"Entity identifier expected for the killer/victim."}}},"BG":{"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"}}},"BH":{"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"}}},"BI":{"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"}}},"BJ":{"type":"object","additionalProperties":false,"description":"Passes with a probability scaled by the world's regional difficulty multiplier. The regional difficulty is based on dimension, world difficulty and moon brightness.","title":"Random Regional Difficulty Chance","properties":{"condition":{"const":"random_regional_difficulty_chance"},"max_chance":{"type":"number","description":"Base probability (0-1) before scaling by the regional difficulty multiplier.","minimum":0,"maximum":1,"default":0}},"required":["condition"]},"CA":{"type":"object","additionalProperties":false,"description":"Allows checking which vehicle entity type is being ridden by the damaged entity that is dropping loot","title":"Passenger Of Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CB":{"type":"object","additionalProperties":false,"description":"Allows checking if the entity that is dropping loot is a baby","title":"Is Baby","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"B":{"description":"A minecraft loot table condition.","title":"Condition","allOf":[{"if":{"properties":{"condition":{"const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"condition":{"const":"has_variant"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"condition":{"const":"has_property"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"condition":{"const":"bool_property"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"condition":{"const":"int_property"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"condition":{"const":"float_property"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"condition":{"const":"enum_property"}}},"then":{"$ref":"#/definitions/I"}},{"if":{"properties":{"condition":{"const":"match_tool"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"condition":{"type":"string","const":"match_tool"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_entity"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"condition":{"type":"string","const":"damaged_by_entity"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"condition":{"type":"string","const":"entity_killed"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/BH"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/BI"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"condition":{"type":"string","const":"passenger_of_entity"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"condition":{"type":"string","const":"is_baby"}}},"then":{"$ref":"#/definitions/CB"}}]},"CD":{"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"}}},"CE":{"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"}}},"CF":{"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"}}},"CG":{"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"}}},"CH":{"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. (Note: The following do not work, even though the docs say they do: endcity, fortress, mineshaft, ruins, stronghold, temple, village, shipwreck, and pillageroutpost.)","enum":["endcity","fortress","mineshaft","monument","ruins","stronghold","temple","village_desert","village_plains","village_savanna","village_snowy","village_taiga","village","mansion","shipwreck","buriedtreasure","pillageroutpost","jungle_temple","swamp_hut","trial_chambers"],"title":"Destination"}}},"CI":{"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"}}},"CJ":{"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/B"}}}},"DA":{"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}}},"DB":{"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"}}}}},"DC":{"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}}},"DD":{"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"}}},"DE":{"additionalProperties":false,"type":"object","description":"The function set_armor_trim.","title":"Set Armor Trim","required":["function","material","pattern"],"properties":{"function":{"type":"string","const":"set_armor_trim","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"material":{"title":"Material","description":"Trim's material","type":"string","enum":["amethyst","copper","diamond","emerald","gold","iron","lapis","netherite","quartz","redstone","resin"]},"pattern":{"title":"Pattern","description":"Trim pattern","type":"string","enum":["sentry","vex","wild","coast","dune","wayfinder","shaper","raiser","host","ward","silence","tide","snout","rib","eye","spire","flow","bolt"]}}},"DF":{"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"}}},"DG":{"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"}}},"DH":{"additionalProperties":false,"type":"object","description":"The function set_count.","title":"Set Count","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"count":{"title":"Count","$ref":"#/definitions/A","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"DI":{"additionalProperties":false,"description":"The function set_damage.","title":"Set Damage","type":"object","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Damage","$ref":"#/definitions/A"}}},"DJ":{"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","$ref":"#/definitions/A"}}},"EA":{"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"}}},"EB":{"type":"object","title":"Set Ominous Bottle Amplifier","description":"Configures the amplifier value applied to the ominous bottle item.","additionalProperties":false,"required":["function","amplifier"],"properties":{"function":{"const":"set_ominous_bottle_amplifier"},"amplifier":{"description":"Amplifier value or range to apply.","$ref":"#/definitions/A"}}},"EC":{"type":"object","title":"Set Stew Effect","description":"Configures suspicious stew status effects.","additionalProperties":false,"required":["function","effects"],"properties":{"function":{"const":"set_stew_effect"},"effects":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"integer","description":"Numeric effect identifier."},"duration":{"type":"integer","minimum":0,"description":"Optional duration in ticks for the effect."}}}}}},"ED":{"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"}}},"EE":{"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"}}},"EF":{"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"}}},"EG":{"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"}}},"EH":{"additionalProperties":false,"description":"The function set_potion.","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"This function sets the potion type of compatible items with a potion id..","title":"Function"},"id":{"title":"Id","type":"string","description":"ID of the potion to set.","enum":["water","mundane","long_mundane","thick","awkward","nightvision","long_nightvision","invisibility","long_invisibility","leaping","long_leaping","strong_leaping","fire_resistance","long_fire_resistance","swiftness","long_swiftness","strong_swiftness","slowness","long_slowness","strong_slowness","water_breathing","long_water_breathing","healing","strong_healing","harming","strong_harming","poison","long_poison","strong_poison","regeneration","long_regeneration","strong_regeneration","strength","long_strength","strong_strength","weakness","long_weakness","wither","turtle_master","long_turtle_master","strong_turtle_master","slow_falling","long_slow_falling","wind_charged","weaving","oozing","infested"]}}},"EI_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"]},"EI_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/EI_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"EI":{"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/EI_IDEnchant"},{"type":"object","$ref":"#/definitions/EI_Enchant"},{"type":"array","items":{"$ref":"#/definitions/EI_Enchant"}}]}}},"CC":{"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_armor_trim","set_banner_details","set_book_contents","set_count","set_damage","set_data_from_color_index","set_data","set_ominous_bottle_amplifier","set_lore","set_name","set_potion","set_stew_effect","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_armor_trim","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_ominous_bottle_amplifier","minecraft:set_lore","minecraft:set_name","minecraft:set_potion","minecraft:set_stew_effect","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/CD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/CJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/DB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/DC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/DD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_armor_trim$"}}},"then":{"$ref":"#/definitions/DE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/DF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/DG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/DH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/DI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/DJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/EA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_ominous_bottle_amplifier$"}}},"then":{"$ref":"#/definitions/EB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_stew_effect$"}}},"then":{"$ref":"#/definitions/EC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/ED"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/EE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/EF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/EG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_potion$"}}},"then":{"$ref":"#/definitions/EH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/EI"}}]}},"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 83eef18c..494250eb 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":{"type":"string"}},"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/A"}},"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"}}}},"B":{"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"}}},"C":{"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"}}},"D":{"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"}}},"E":{"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"}}},"F":{"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"}}},"G":{"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"}}},"J":{"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"}}},"BA":{"type":"object","title":"Has Variant","description":"Checks the variant value of the current actor.","additionalProperties":false,"required":["condition","variant"],"properties":{"condition":{"const":"has_variant"},"value":{"type":"integer","description":"Expected variant identifier."}}},"BB":{"type":"object","title":"Has Property","description":"Checks whether the current actor exposes a property in the given domain.","additionalProperties":false,"required":["condition","domain"],"properties":{"condition":{"const":"has_property"},"domain":{"type":"string","description":"Property domain identifier."}}},"BC":{"type":"object","title":"Bool Property","description":"Checks whether a boolean property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"bool_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"boolean","description":"Expected boolean value."}}},"BD":{"type":"object","title":"Int Property","description":"Checks whether an integer property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"int_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected integer value.","type":"integer"}}},"BE":{"type":"object","title":"Float Property","description":"Checks whether a float property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"float_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected float value.","type":"number"}}},"BF":{"type":"object","title":"Enum Property","description":"Checks whether an enum property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"enum_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"string","description":"Expected enumeration value."}}},"BH":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"BI":{"description":"An integer value or inclusive range.","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","description":"Minimum value."},"max":{"type":"integer","description":"Maximum value."}}}]},"BG":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the block of the loot table was broken with a specific item.","title":"Match Tool","required":["condition"],"properties":{"condition":{"type":"string","const":"match_tool","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"item":{"description":"The item to match","$ref":"#/definitions/BH"},"count":{"title":"Count","description":"Minimum count to match of the given item","$ref":"#/definitions/BI"},"durability":{"title":"Durability","description":"Minimum durability to match of the given item","$ref":"#/definitions/BI"},"enchantments":{"title":"Enchantments","description":"List of enchantments to check for","type":"array","items":{"type":"object","required":["enchantment"],"properties":{"enchantment":{"title":"Enchantment","description":"The enchantment ID to check for","type":"string","enum":["protection","fire_protection","feather_falling","blast_protection","projectile_protection","thorns","respiration","depth_strider","aqua_affinity","sharpness","smite","bane_of_arthropods","knockback","fire_aspect","looting","efficiency","silk_touch","unbreaking","fortune","power","punch","flame","infinity","luck_of_the_sea","lure","frost_walker","mending","binding","vanishing","impaling","riptide","loyalty","channeling","multishot","piercing","quick_charge","soul_speed","swift_sneak","wind_burst","density","breach"]},"levels":{"title":"Levels","description":"The level of the enchantment","type":"object","properties":{"range_min":{"title":"Minimum","description":"The minimum level of the enchantment","type":"integer"},"range_max":{"title":"Maximum","description":"The maximum level of the enchantment","type":"integer"}}}}}},"minecraft:match_tool_filter_all":{"title":"Match Tool Filter All","description":"List of tags the item must have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_none":{"title":"Match Tool Filter None","description":"List of tags the item must NOT have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_any":{"title":"Match Tool Filter Any","description":"List of tags the item must have at least one of","type":"array","items":{"type":"string"}}}},"BJ":{"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"}}},"CA":{"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","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"CB":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by a specific entity type.","title":"Killed By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CC":{"type":"object","additionalProperties":false,"description":"Allows checking which entity type applied damage to an entity that is dropping loot.","title":"Damaged By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CD":{"type":"object","title":"Entity Killed","description":"Checks whether the source entity matches the supplied identifier.","additionalProperties":false,"required":["condition","entity_type"],"properties":{"condition":{"const":"entity_killed"},"entity_type":{"type":"string","description":"Entity identifier expected for the killer/victim."}}},"CE":{"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"}}},"CF":{"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"}}},"CG":{"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"}}},"CH":{"type":"object","additionalProperties":false,"description":"Passes with a probability scaled by the world's regional difficulty multiplier. The regional difficulty is based on dimension, world difficulty and moon brightness.","title":"Random Regional Difficulty Chance","properties":{"condition":{"const":"random_regional_difficulty_chance"},"max_chance":{"type":"number","description":"Base probability (0-1) before scaling by the regional difficulty multiplier.","minimum":0,"maximum":1,"default":0}},"required":["condition"]},"CI":{"type":"object","additionalProperties":false,"description":"Allows checking which vehicle entity type is being ridden by the damaged entity that is dropping loot","title":"Passenger Of Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CJ":{"type":"object","additionalProperties":false,"description":"Allows checking if the entity that is dropping loot is a baby","title":"Is Baby","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"I":{"description":"A minecraft loot table condition.","title":"Condition","allOf":[{"if":{"properties":{"condition":{"const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"const":"has_variant"}}},"then":{"$ref":"#/definitions/BA"}},{"if":{"properties":{"condition":{"const":"has_property"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"condition":{"const":"bool_property"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"condition":{"const":"int_property"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"condition":{"const":"float_property"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"condition":{"const":"enum_property"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"condition":{"const":"match_tool"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"type":"string","const":"match_tool"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_entity"}}},"then":{"$ref":"#/definitions/CB"}},{"if":{"properties":{"condition":{"type":"string","const":"damaged_by_entity"}}},"then":{"$ref":"#/definitions/CC"}},{"if":{"properties":{"condition":{"type":"string","const":"entity_killed"}}},"then":{"$ref":"#/definitions/CD"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"condition":{"type":"string","const":"passenger_of_entity"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"condition":{"type":"string","const":"is_baby"}}},"then":{"$ref":"#/definitions/CJ"}}]},"H":{"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/I"}}}},"DA":{"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}}},"DB":{"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"}}}}},"DC":{"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}}},"DD":{"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"}}},"DE":{"additionalProperties":false,"type":"object","description":"The function set_armor_trim.","title":"Set Armor Trim","required":["function","material","pattern"],"properties":{"function":{"type":"string","const":"set_armor_trim","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"material":{"title":"Material","description":"Trim's material","type":"string","enum":["amethyst","copper","diamond","emerald","gold","iron","lapis","netherite","quartz","redstone","resin"]},"pattern":{"title":"Pattern","description":"Trim pattern","type":"string","enum":["sentry","vex","wild","coast","dune","wayfinder","shaper","raiser","host","ward","silence","tide","snout","rib","eye","spire","flow","bolt"]}}},"DF":{"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"}}},"DG":{"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"}}},"DH":{"additionalProperties":false,"type":"object","description":"The function set_count.","title":"Set Count","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"count":{"title":"Count","$ref":"#/definitions/BI","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"DI":{"additionalProperties":false,"description":"The function set_damage.","title":"Set Damage","type":"object","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Damage","$ref":"#/definitions/BI"}}},"DJ":{"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","$ref":"#/definitions/BI"}}},"EA":{"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"}}},"EB":{"type":"object","title":"Set Ominous Bottle Amplifier","description":"Configures the amplifier value applied to the ominous bottle item.","additionalProperties":false,"required":["function","amplifier"],"properties":{"function":{"const":"set_ominous_bottle_amplifier"},"amplifier":{"description":"Amplifier value or range to apply.","$ref":"#/definitions/BI"}}},"EC":{"type":"object","title":"Set Stew Effect","description":"Configures suspicious stew status effects.","additionalProperties":false,"required":["function","effects"],"properties":{"function":{"const":"set_stew_effect"},"effects":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"integer","description":"Numeric effect identifier."},"duration":{"type":"integer","minimum":0,"description":"Optional duration in ticks for the effect."}}}}}},"ED":{"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"}}},"EE":{"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"}}},"EF":{"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"}}},"EG":{"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"}}},"EH":{"additionalProperties":false,"description":"The function set_potion.","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"This function sets the potion type of compatible items with a potion id..","title":"Function"},"id":{"title":"Id","type":"string","description":"ID of the potion to set.","enum":["water","mundane","long_mundane","thick","awkward","nightvision","long_nightvision","invisibility","long_invisibility","leaping","long_leaping","strong_leaping","fire_resistance","long_fire_resistance","swiftness","long_swiftness","strong_swiftness","slowness","long_slowness","strong_slowness","water_breathing","long_water_breathing","healing","strong_healing","harming","strong_harming","poison","long_poison","strong_poison","regeneration","long_regeneration","strong_regeneration","strength","long_strength","strong_strength","weakness","long_weakness","wither","turtle_master","long_turtle_master","strong_turtle_master","slow_falling","long_slow_falling","wind_charged","weaving","oozing","infested"]}}},"EI_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"]},"EI_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/EI_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"EI":{"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/EI_IDEnchant"},{"type":"object","$ref":"#/definitions/EI_Enchant"},{"type":"array","items":{"$ref":"#/definitions/EI_Enchant"}}]}}},"A":{"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_armor_trim","set_banner_details","set_book_contents","set_count","set_damage","set_data_from_color_index","set_data","set_ominous_bottle_amplifier","set_lore","set_name","set_potion","set_stew_effect","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_armor_trim","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_ominous_bottle_amplifier","minecraft:set_lore","minecraft:set_name","minecraft:set_potion","minecraft:set_stew_effect","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/B"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/DB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/DC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/DD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_armor_trim$"}}},"then":{"$ref":"#/definitions/DE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/DF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/DG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/DH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/DI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/DJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/EA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_ominous_bottle_amplifier$"}}},"then":{"$ref":"#/definitions/EB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_stew_effect$"}}},"then":{"$ref":"#/definitions/EC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/ED"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/EE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/EF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/EG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_potion$"}}},"then":{"$ref":"#/definitions/EH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/EI"}}]},"EJ":{"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.21.60","examples":["1.21.50","1.20.80","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]}},"properties":{"format_version":{"$ref":"#/definitions/EJ"},"tiers":{"type":"array","title":"Tiers","description":"A collection of tiers.","items":{"additionalProperties":false,"type":"object","title":"Tier","required":["total_exp_required","groups"],"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":{"type":"string"}},"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/A"}},"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"}}}},"B":{"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"}}},"C":{"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"}}},"D":{"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"}}},"E":{"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"}}},"F":{"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. (Note: The following do not work, even though the docs say they do: endcity, fortress, mineshaft, ruins, stronghold, temple, village, shipwreck, and pillageroutpost.)","enum":["endcity","fortress","mineshaft","monument","ruins","stronghold","temple","village_desert","village_plains","village_savanna","village_snowy","village_taiga","village","mansion","shipwreck","buriedtreasure","pillageroutpost","jungle_temple","swamp_hut","trial_chambers"],"title":"Destination"}}},"G":{"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"}}},"J":{"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"}}},"BA":{"type":"object","title":"Has Variant","description":"Checks the variant value of the current actor.","additionalProperties":false,"required":["condition","variant"],"properties":{"condition":{"const":"has_variant"},"value":{"type":"integer","description":"Expected variant identifier."}}},"BB":{"type":"object","title":"Has Property","description":"Checks whether the current actor exposes a property in the given domain.","additionalProperties":false,"required":["condition","domain"],"properties":{"condition":{"const":"has_property"},"domain":{"type":"string","description":"Property domain identifier."}}},"BC":{"type":"object","title":"Bool Property","description":"Checks whether a boolean property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"bool_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"boolean","description":"Expected boolean value."}}},"BD":{"type":"object","title":"Int Property","description":"Checks whether an integer property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"int_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected integer value.","type":"integer"}}},"BE":{"type":"object","title":"Float Property","description":"Checks whether a float property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"float_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"description":"Expected float value.","type":"number"}}},"BF":{"type":"object","title":"Enum Property","description":"Checks whether an enum property matches the requested value.","additionalProperties":false,"required":["condition","domain","value"],"properties":{"condition":{"const":"enum_property"},"domain":{"type":"string","description":"Property domain identifier."},"value":{"type":"string","description":"Expected enumeration value."}}},"BH":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"BI":{"description":"An integer value or inclusive range.","oneOf":[{"type":"integer"},{"type":"object","additionalProperties":false,"required":["min","max"],"properties":{"min":{"type":"integer","description":"Minimum value."},"max":{"type":"integer","description":"Maximum value."}}}]},"BG":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the block of the loot table was broken with a specific item.","title":"Match Tool","required":["condition"],"properties":{"condition":{"type":"string","const":"match_tool","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"item":{"description":"The item to match","$ref":"#/definitions/BH"},"count":{"title":"Count","description":"Minimum count to match of the given item","$ref":"#/definitions/BI"},"durability":{"title":"Durability","description":"Minimum durability to match of the given item","$ref":"#/definitions/BI"},"enchantments":{"title":"Enchantments","description":"List of enchantments to check for","type":"array","items":{"type":"object","required":["enchantment"],"properties":{"enchantment":{"title":"Enchantment","description":"The enchantment ID to check for","type":"string","enum":["protection","fire_protection","feather_falling","blast_protection","projectile_protection","thorns","respiration","depth_strider","aqua_affinity","sharpness","smite","bane_of_arthropods","knockback","fire_aspect","looting","efficiency","silk_touch","unbreaking","fortune","power","punch","flame","infinity","luck_of_the_sea","lure","frost_walker","mending","binding","vanishing","impaling","riptide","loyalty","channeling","multishot","piercing","quick_charge","soul_speed","swift_sneak","wind_burst","density","breach"]},"levels":{"title":"Levels","description":"The level of the enchantment","type":"object","properties":{"range_min":{"title":"Minimum","description":"The minimum level of the enchantment","type":"integer"},"range_max":{"title":"Maximum","description":"The maximum level of the enchantment","type":"integer"}}}}}},"minecraft:match_tool_filter_all":{"title":"Match Tool Filter All","description":"List of tags the item must have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_none":{"title":"Match Tool Filter None","description":"List of tags the item must NOT have","type":"array","items":{"type":"string"}},"minecraft:match_tool_filter_any":{"title":"Match Tool Filter Any","description":"List of tags the item must have at least one of","type":"array","items":{"type":"string"}}}},"BJ":{"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"}}},"CA":{"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","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"CB":{"type":"object","additionalProperties":false,"description":"Returns the condition true if the actor of the loot table is killed by a specific entity type.","title":"Killed By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CC":{"type":"object","additionalProperties":false,"description":"Allows checking which entity type applied damage to an entity that is dropping loot.","title":"Damaged By Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CD":{"type":"object","title":"Entity Killed","description":"Checks whether the source entity matches the supplied identifier.","additionalProperties":false,"required":["condition","entity_type"],"properties":{"condition":{"const":"entity_killed"},"entity_type":{"type":"string","description":"Entity identifier expected for the killer/victim."}}},"CE":{"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"}}},"CF":{"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"}}},"CG":{"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"}}},"CH":{"type":"object","additionalProperties":false,"description":"Passes with a probability scaled by the world's regional difficulty multiplier. The regional difficulty is based on dimension, world difficulty and moon brightness.","title":"Random Regional Difficulty Chance","properties":{"condition":{"const":"random_regional_difficulty_chance"},"max_chance":{"type":"number","description":"Base probability (0-1) before scaling by the regional difficulty multiplier.","minimum":0,"maximum":1,"default":0}},"required":["condition"]},"CI":{"type":"object","additionalProperties":false,"description":"Allows checking which vehicle entity type is being ridden by the damaged entity that is dropping loot","title":"Passenger Of Entity","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"entity_type":{"title":"Entity Type","description":"The entity type to match","type":"string"}}},"CJ":{"type":"object","additionalProperties":false,"description":"Allows checking if the entity that is dropping loot is a baby","title":"Is Baby","properties":{"condition":{"type":"string","title":"Condition","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"I":{"description":"A minecraft loot table condition.","title":"Condition","allOf":[{"if":{"properties":{"condition":{"const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"const":"has_variant"}}},"then":{"$ref":"#/definitions/BA"}},{"if":{"properties":{"condition":{"const":"has_property"}}},"then":{"$ref":"#/definitions/BB"}},{"if":{"properties":{"condition":{"const":"bool_property"}}},"then":{"$ref":"#/definitions/BC"}},{"if":{"properties":{"condition":{"const":"int_property"}}},"then":{"$ref":"#/definitions/BD"}},{"if":{"properties":{"condition":{"const":"float_property"}}},"then":{"$ref":"#/definitions/BE"}},{"if":{"properties":{"condition":{"const":"enum_property"}}},"then":{"$ref":"#/definitions/BF"}},{"if":{"properties":{"condition":{"const":"match_tool"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"has_mark_variant"}}},"then":{"$ref":"#/definitions/J"}},{"if":{"properties":{"condition":{"type":"string","const":"match_tool"}}},"then":{"$ref":"#/definitions/BG"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player"}}},"then":{"$ref":"#/definitions/BJ"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_player_or_pets"}}},"then":{"$ref":"#/definitions/CA"}},{"if":{"properties":{"condition":{"type":"string","const":"killed_by_entity"}}},"then":{"$ref":"#/definitions/CB"}},{"if":{"properties":{"condition":{"type":"string","const":"damaged_by_entity"}}},"then":{"$ref":"#/definitions/CC"}},{"if":{"properties":{"condition":{"type":"string","const":"entity_killed"}}},"then":{"$ref":"#/definitions/CD"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance"}}},"then":{"$ref":"#/definitions/CE"}},{"if":{"properties":{"condition":{"type":"string","const":"random_chance_with_looting"}}},"then":{"$ref":"#/definitions/CF"}},{"if":{"properties":{"condition":{"type":"string","const":"random_difficulty_chance"}}},"then":{"$ref":"#/definitions/CG"}},{"if":{"properties":{"condition":{"type":"string","const":"random_regional_difficulty_chance"}}},"then":{"$ref":"#/definitions/CH"}},{"if":{"properties":{"condition":{"type":"string","const":"passenger_of_entity"}}},"then":{"$ref":"#/definitions/CI"}},{"if":{"properties":{"condition":{"type":"string","const":"is_baby"}}},"then":{"$ref":"#/definitions/CJ"}}]},"H":{"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/I"}}}},"DA":{"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}}},"DB":{"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"}}}}},"DC":{"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}}},"DD":{"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"}}},"DE":{"additionalProperties":false,"type":"object","description":"The function set_armor_trim.","title":"Set Armor Trim","required":["function","material","pattern"],"properties":{"function":{"type":"string","const":"set_armor_trim","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"material":{"title":"Material","description":"Trim's material","type":"string","enum":["amethyst","copper","diamond","emerald","gold","iron","lapis","netherite","quartz","redstone","resin"]},"pattern":{"title":"Pattern","description":"Trim pattern","type":"string","enum":["sentry","vex","wild","coast","dune","wayfinder","shaper","raiser","host","ward","silence","tide","snout","rib","eye","spire","flow","bolt"]}}},"DF":{"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"}}},"DG":{"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"}}},"DH":{"additionalProperties":false,"type":"object","description":"The function set_count.","title":"Set Count","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_count","title":"Function","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"},"count":{"title":"Count","$ref":"#/definitions/BI","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED"}}},"DI":{"additionalProperties":false,"description":"The function set_damage.","title":"Set Damage","type":"object","properties":{"add":{"title":"Add","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","type":"boolean"},"function":{"type":"string","const":"set_damage","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Function"},"damage":{"description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","title":"Damage","$ref":"#/definitions/BI"}}},"DJ":{"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","$ref":"#/definitions/BI"}}},"EA":{"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"}}},"EB":{"type":"object","title":"Set Ominous Bottle Amplifier","description":"Configures the amplifier value applied to the ominous bottle item.","additionalProperties":false,"required":["function","amplifier"],"properties":{"function":{"const":"set_ominous_bottle_amplifier"},"amplifier":{"description":"Amplifier value or range to apply.","$ref":"#/definitions/BI"}}},"EC":{"type":"object","title":"Set Stew Effect","description":"Configures suspicious stew status effects.","additionalProperties":false,"required":["function","effects"],"properties":{"function":{"const":"set_stew_effect"},"effects":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"integer","description":"Numeric effect identifier."},"duration":{"type":"integer","minimum":0,"description":"Optional duration in ticks for the effect."}}}}}},"ED":{"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"}}},"EE":{"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"}}},"EF":{"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"}}},"EG":{"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"}}},"EH":{"additionalProperties":false,"description":"The function set_potion.","title":"Set Lore","type":"object","properties":{"function":{"type":"string","const":"set_lore","description":"This function sets the potion type of compatible items with a potion id..","title":"Function"},"id":{"title":"Id","type":"string","description":"ID of the potion to set.","enum":["water","mundane","long_mundane","thick","awkward","nightvision","long_nightvision","invisibility","long_invisibility","leaping","long_leaping","strong_leaping","fire_resistance","long_fire_resistance","swiftness","long_swiftness","strong_swiftness","slowness","long_slowness","strong_slowness","water_breathing","long_water_breathing","healing","strong_healing","harming","strong_harming","poison","long_poison","strong_poison","regeneration","long_regeneration","strong_regeneration","strength","long_strength","strong_strength","weakness","long_weakness","wither","turtle_master","long_turtle_master","strong_turtle_master","slow_falling","long_slow_falling","wind_charged","weaving","oozing","infested"]}}},"EI_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"]},"EI_Enchant":{"type":"object","title":"Enchantment","additionalProperties":false,"properties":{"id":{"$ref":"#/definitions/EI_IDEnchant"},"level":{"title":"Level","oneOf":[{"type":"integer","title":"Level"},{"type":"array","items":[{"type":"integer","title":"Min"},{"type":"integer","title":"Max"}]}]}}},"EI":{"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/EI_IDEnchant"},{"type":"object","$ref":"#/definitions/EI_Enchant"},{"type":"array","items":{"$ref":"#/definitions/EI_Enchant"}}]}}},"A":{"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_armor_trim","set_banner_details","set_book_contents","set_count","set_damage","set_data_from_color_index","set_data","set_ominous_bottle_amplifier","set_lore","set_name","set_potion","set_stew_effect","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_armor_trim","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_ominous_bottle_amplifier","minecraft:set_lore","minecraft:set_name","minecraft:set_potion","minecraft:set_stew_effect","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/B"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_book_for_trading$"}}},"then":{"$ref":"#/definitions/C"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_randomly$"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*enchant_with_levels$"}}},"then":{"$ref":"#/definitions/E"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*exploration_map$"}}},"then":{"$ref":"#/definitions/F"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*fill_container$"}}},"then":{"$ref":"#/definitions/G"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*furnace_smelt$"}}},"then":{"$ref":"#/definitions/H"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*looting_enchant$"}}},"then":{"$ref":"#/definitions/DA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_aux_value$"}}},"then":{"$ref":"#/definitions/DB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_block_state$"}}},"then":{"$ref":"#/definitions/DC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_actor_id$"}}},"then":{"$ref":"#/definitions/DD"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_armor_trim$"}}},"then":{"$ref":"#/definitions/DE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_banner_details$"}}},"then":{"$ref":"#/definitions/DF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_book_contents$"}}},"then":{"$ref":"#/definitions/DG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_count$"}}},"then":{"$ref":"#/definitions/DH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_damage$"}}},"then":{"$ref":"#/definitions/DI"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data$"}}},"then":{"$ref":"#/definitions/DJ"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_data_from_color_index$"}}},"then":{"$ref":"#/definitions/EA"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_ominous_bottle_amplifier$"}}},"then":{"$ref":"#/definitions/EB"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_stew_effect$"}}},"then":{"$ref":"#/definitions/EC"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*trader_material_type$"}}},"then":{"$ref":"#/definitions/ED"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*random_dye$"}}},"then":{"$ref":"#/definitions/EE"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_lore$"}}},"then":{"$ref":"#/definitions/EF"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_name$"}}},"then":{"$ref":"#/definitions/EG"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*set_potion$"}}},"then":{"$ref":"#/definitions/EH"}},{"if":{"properties":{"function":{"type":"string","pattern":"^(minecraft:)*specific_enchants$"}}},"then":{"$ref":"#/definitions/EI"}}]},"EJ":{"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.21.60","examples":["1.21.50","1.20.80","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]}},"properties":{"format_version":{"$ref":"#/definitions/EJ"},"tiers":{"type":"array","title":"Tiers","description":"A collection of tiers.","items":{"additionalProperties":false,"type":"object","title":"Tier","required":["total_exp_required","groups"],"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