* - Allow for items without namespaces in loot tables * - Made rolls in loot table required * - Account for match tag conditions by not requiring item and count * - Allow forward / in feature (and rule) identifers * - Added pattern for structure names * - Change atlas > texture_name to const * - Allow . in texture entries in atlas files * - Food nutrition can only be ints
68 lines
2.0 KiB
JSON
68 lines
2.0 KiB
JSON
{
|
|
"$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"],
|
|
"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"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
} |