Misc improvements (#347)
* - 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
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
"structure_name": {
|
"structure_name": {
|
||||||
"title": "Structure Name",
|
"title": "Structure Name",
|
||||||
"description": "Reference to the structure to be placed.",
|
"description": "Reference to the structure to be placed.",
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"pattern": "^mystructure:(\\w|\/)+"
|
||||||
},
|
},
|
||||||
"adjustment_radius": {
|
"adjustment_radius": {
|
||||||
"title": "Adjustment Radius",
|
"title": "Adjustment Radius",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"nutrition": { "title": "Nutrition", "description": "How much nutrition does this food item give the player when eaten.", "type": "number", "default": 0 },
|
"nutrition": { "title": "Nutrition", "description": "How much nutrition does this food item give the player when eaten.", "type": "integer", "default": 0 },
|
||||||
"saturation_modifier": {
|
"saturation_modifier": {
|
||||||
"title": "Saturation Modifier",
|
"title": "Saturation Modifier",
|
||||||
"description": "Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item.",
|
"description": "Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item.",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"description": "Returns the condition true if the block of the loot table was broken with a specific item.",
|
"description": "Returns the condition true if the block of the loot table was broken with a specific item.",
|
||||||
"title": "Killed By Player",
|
"title": "Killed By Player",
|
||||||
"required": ["condition", "item", "count"],
|
"required": ["condition"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"condition": { "type": "string", "const": "match_tool", "title": "Condition", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
"condition": { "type": "string", "const": "match_tool", "title": "Condition", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
||||||
"item": {
|
"item": {
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"title": "A Single Pool",
|
"title": "A Single Pool",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": ["rolls"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"rolls": {
|
"rolls": {
|
||||||
"title": "Rolls",
|
"title": "Rolls",
|
||||||
@@ -72,7 +73,7 @@
|
|||||||
"title": "Count",
|
"title": "Count",
|
||||||
"description": "The amount of the item."
|
"description": "The amount of the item."
|
||||||
},
|
},
|
||||||
"name": { "title": "Name", "type": "string", "description": "An item or loottable.", "pattern": "^([\\w]+:|loot_tables/)" },
|
"name": { "title": "Name", "type": "string", "description": "An item or loottable.", "pattern": "^(?:[\\w]+:|loot_tables\/)?[\\w]+(?:\/[\\w]+)*$" },
|
||||||
"weight": {
|
"weight": {
|
||||||
"title": "Weight",
|
"title": "Weight",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$id": "blockception.minecraft.feature.identifier",
|
"$id": "blockception.minecraft.feature.identifier",
|
||||||
"description": "A minecraft feature identifier.",
|
"description": "A minecraft feature identifier.",
|
||||||
"examples": ["namespace:feature"],
|
"examples": ["namespace:feature"],
|
||||||
"pattern": "^[0-9a-zA-Z:_\\.\\-]+$",
|
"pattern": "^[0-9a-zA-Z:_\\.\/-]+$",
|
||||||
"title": "Feature Identifier",
|
"title": "Feature Identifier",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"defaultSnippets": [{ "label": "New Identifier", "body": "$1:$2" }]
|
"defaultSnippets": [{ "label": "New Identifier", "body": "$1:$2" }]
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
"description": "UNDOCUMENTED.",
|
"description": "UNDOCUMENTED.",
|
||||||
"$comment": "UNDOCUMENTED",
|
"$comment": "UNDOCUMENTED",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
|
"propertyNames": { "pattern": "^[a-z0-9_:.\\-]*$" },
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"title": "Texture Data",
|
"title": "Texture Data",
|
||||||
"description": "UNDOCUMENTED.",
|
"description": "UNDOCUMENTED.",
|
||||||
@@ -84,6 +84,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"texture_name": { "title": "Texture Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "string" }
|
"texture_name": { "const": "atlas.items" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
"resource_pack_name": { "type": "string", "title": "Resource Pack Name", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
||||||
"texture_data": {
|
"texture_data": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": { "pattern": "^[a-z0-9_:\\-]*$" },
|
"propertyNames": { "pattern": "^[a-z0-9_:.\\-]*$" },
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Texture Data",
|
"title": "Texture Data",
|
||||||
@@ -73,6 +73,6 @@
|
|||||||
"$comment": "UNDOCUMENTED",
|
"$comment": "UNDOCUMENTED",
|
||||||
"title": "Texture Data"
|
"title": "Texture Data"
|
||||||
},
|
},
|
||||||
"texture_name": { "type": "string", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Texture Name" }
|
"texture_name": { "const": "atlas.terrain" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user