Updated for 1.21.60 (#334)
* - Add crafting item catalogs * - Removed experimental warning for item visual * - Added renders_when_invisible entity component * - Removed experimental warning for liquid detection * - Added property inheritance to breedable * - Added min_looked_at_duration field to look_at component * - Added combine_parent_colors to breedable * - Update catalog file schema * - Split storage item components * - Added new entity filters * - Added surface opacity to water appearance biome component * - Remove actor_id loot table example as it is no longer the standard * - Add set_armor_trim trim loot table function * - Added match_tool loot table condition * - Added creature_spawn_probability component * - Added verticalFlySpeed to has_ability * - Update descriptions and default values * - Add base field to block_sounds * - Removed block sounds enum as creators can specify custom ones too * - Change default format version
This commit is contained in:
60
source/behavior/loot_tables/conditions/match_tool.json
Normal file
60
source/behavior/loot_tables/conditions/match_tool.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.condition.match_tool",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"description": "Returns the condition true if the block of the loot table was broken with a specific item.",
|
||||
"title": "Killed By Player",
|
||||
"required": ["condition", "item", "count"],
|
||||
"properties": {
|
||||
"condition": { "type": "string", "const": "match_tool", "title": "Condition", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
||||
"item": {
|
||||
"title": "Item",
|
||||
"description": "The item to match",
|
||||
"type": "string"
|
||||
},
|
||||
"count": {
|
||||
"title": "Count",
|
||||
"description": "Minimum count to match of the given item",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"enchantments": {
|
||||
"title": "Enchantments",
|
||||
"description": "List of enchantments to check for",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z]+$": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": ["level"]
|
||||
}
|
||||
},
|
||||
"minProperties": 1,
|
||||
"maxProperties": 1
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user