Updated titles

This commit is contained in:
DaanV2
2021-07-01 16:32:59 +02:00
parent 0b1527e81a
commit bd92fde1b8
30 changed files with 132 additions and 124 deletions

View File

@@ -5,7 +5,6 @@
"type": "object", "type": "object",
"dependencies": { "dependencies": {
"additionalProperties": ["type"], "additionalProperties": ["type"],
"items": ["type"],
"properties": ["type"] "properties": ["type"]
}, },
"additionalProperties": { "additionalProperties": {

View File

@@ -12,7 +12,7 @@
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, the mob can stop being tempted if the player moves too fast while close to this mob", "description": "If true, the mob can stop being tempted if the player moves too fast while close to this mob",
"title": "TODO Title" "title": "Can Get Scared"
}, },
"can_tempt_while_ridden": { "can_tempt_while_ridden": {
"type": "boolean", "type": "boolean",
@@ -23,14 +23,14 @@
"items": { "items": {
"type": "array", "type": "array",
"description": "List of items this mob is tempted by", "description": "List of items this mob is tempted by",
"items": { "$ref": "../../../../general/item/identifier.json" }, "items": { "$ref": "../../../../general/item/identifier.json", "title": "Item" },
"title": "TODO Title" "title": "Items"
}, },
"within_radius": { "within_radius": {
"type": "number", "type": "number",
"default": 0, "default": 0,
"description": "Distance in blocks this mob can get tempted by a player holding an item they like", "description": "Distance in blocks this mob can get tempted by a player holding an item they like",
"title": "TODO Title" "title": "Within Radius"
} }
} }
} }

View File

@@ -10,7 +10,7 @@
"entity_types": { "entity_types": {
"$ref": "../types/entity_types.json", "$ref": "../types/entity_types.json",
"description": "List of entities this mob can copy the owner from.", "description": "List of entities this mob can copy the owner from.",
"title": "TODO Title" "title": "Entity Types"
} }
} }
} }

View File

@@ -10,7 +10,7 @@
"entity_types": { "entity_types": {
"$ref": "../types/entity_types.json", "$ref": "../types/entity_types.json",
"description": "List of entities this mob can copy the owner from.", "description": "List of entities this mob can copy the owner from.",
"title": "TODO Title" "title": "Entity Types"
} }
} }
} }

View File

@@ -10,7 +10,7 @@
"entity_types": { "entity_types": {
"$ref": "../types/entity_types.json", "$ref": "../types/entity_types.json",
"description": "List of entity types the wither takes into account to find who dealt the most damage to it", "description": "List of entity types the wither takes into account to find who dealt the most damage to it",
"title": "TODO Title" "title": "Entity Types"
} }
} }
} }

View File

@@ -2,6 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.behavior.work", "$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.behavior.work",
"type": "object", "type": "object",
"title": "Work 1.8.0", "title": "Work 1.8.0",
"description": "Allows an entity to navigate and interact with a point of interest that has been assigned as their worksite.",
"additionalProperties": false, "additionalProperties": false,
"required": [], "required": [],
"properties": { "properties": {
@@ -11,34 +12,42 @@
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "The amount of ticks the NPC will stay in their the work location", "description": "The amount of ticks the NPC will stay in their the work location",
"title": "TODO Title" "title": "Active Time"
}, },
"can_work_in_rain": { "can_work_in_rain": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, this entity can work when their jobsite POI is being rained on.", "description": "If true, this entity can work when their jobsite POI is being rained on.",
"title": "TODO Title" "title": "Can Work In Rain"
}, },
"goal_cooldown": { "goal_cooldown": {
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "The amount of ticks the goal will be on cooldown before it can be used again", "description": "The amount of ticks the goal will be on cooldown before it can be used again",
"title": "TODO Title" "title": "Goal Cooldown"
}, },
"on_arrival": { "on_arrival": {
"$ref": "../types/event.json", "$ref": "../types/event.json",
"description": "Event to run when the mob reaches their jobsite and finishes working.", "description": "Event to run when the mob reaches their jobsite and finishes working.",
"title": "TODO Title" "title": "On Arrival"
},
"sound_delay_max": {
"type": "integer",
"default": 0,
"description": "The max interval in which a sound will play",
"title": "Sound Delay Maximum"
},
"sound_delay_min": {
"type": "integer",
"default": 0,
"description": "The min interval in which a sound will play",
"title": "Sound Delay Minimum"
}, },
"sound_delay_max": { "type": "integer", "default": 0, "description": "The max interval in which a sound will play", "title": "TODO Title" },
"sound_delay_min": { "type": "integer", "default": 0, "description": "The min interval in which a sound will play", "title": "TODO Title" },
"work_in_rain_tolerance": { "work_in_rain_tolerance": {
"type": "integer", "type": "integer",
"default": -1, "default": -1,
"description": "If `can_work_in_rain` is false, this is the maximum number of ticks left in the goal where rain will not interrupt the goal", "description": "If `can_work_in_rain` is false, this is the maximum number of ticks left in the goal where rain will not interrupt the goal",
"title": "TODO Title" "title": "Work In Rain Tolerance"
} }
}, }
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED"
} }

View File

@@ -14,7 +14,11 @@
}, },
"feedItems": { "feedItems": {
"description": "List of items that can be fed to the entity. Includes `item` for the item name and `growth` to define how much time it grows up by", "description": "List of items that can be fed to the entity. Includes `item` for the item name and `growth` to define how much time it grows up by",
"title": "Feed Items",
"type": "array",
"items": { "items": {
"title": "Feed Items",
"description": "UNDOCUMENTATED: feedItems",
"oneOf": [ "oneOf": [
{ {
"type": "object", "type": "object",
@@ -29,11 +33,8 @@
} }
}, },
{ "type": "string", "$ref": "../../../../general/item/identifier.json" } { "type": "string", "$ref": "../../../../general/item/identifier.json" }
], ]
"description": "UNDOCUMENTATED: feedItems", }
"title": "Feed Items"
},
"title": "Feed Items"
}, },
"drop_items": { "drop_items": {
"type": "array", "type": "array",
@@ -43,11 +44,11 @@
}, },
"grow_up": { "grow_up": {
"description": "Event to run when this entity grows up", "description": "Event to run when this entity grows up",
"title": "Grow Up",
"oneOf": [ "oneOf": [
{ "type": "string" }, { "type": "string" },
{ "type": "object", "properties": { "event": { "type": "string" }, "target": { "$ref": "../../filters/filters/types/subject.json" } } } { "type": "object", "properties": { "event": { "type": "string" }, "target": { "$ref": "../../filters/filters/types/subject.json" } } }
], ]
"title": "TODO Title"
} }
} }
} }

View File

@@ -10,19 +10,19 @@
"type": "string", "type": "string",
"default": "ambient", "default": "ambient",
"description": "Level sound event to be played as the ambient sound.", "description": "Level sound event to be played as the ambient sound.",
"title": "TODO Title" "title": "Event Name"
}, },
"max": { "max": {
"type": "number", "type": "number",
"default": 16, "default": 16,
"description": "Maximum time in seconds to randomly add to the ambient sound delay time.", "description": "Maximum time in seconds to randomly add to the ambient sound delay time.",
"title": "TODO Title" "title": "Maximum"
}, },
"min": { "min": {
"type": "number", "type": "number",
"default": 8, "default": 8,
"description": "Minimum time in seconds before the entity plays its ambient sound again", "description": "Minimum time in seconds before the entity plays its ambient sound again",
"title": "TODO Title" "title": "Minimum"
} }
} }
} }

View File

@@ -5,13 +5,14 @@
"type": "object", "type": "object",
"title": "Annotation.break Door 1.8.0", "title": "Annotation.break Door 1.8.0",
"required": [], "required": [],
"$comment": "Caution No longe rin use",
"properties": { "properties": {
"break_time": { "type": "number", "default": 12, "description": "The time in seconds required to break through doors.", "title": "TODO Title" }, "break_time": { "type": "number", "default": 12, "description": "The time in seconds required to break through doors.", "title": "Break Time" },
"min_difficulty": { "min_difficulty": {
"type": "string", "type": "string",
"default": "hard", "default": "hard",
"description": "The minimum difficulty that the world must be on for this entity to break doors.", "description": "The minimum difficulty that the world must be on for this entity to break doors.",
"title": "TODO Title" "title": "Minimum Difficulty"
} }
} }
} }

View File

@@ -6,15 +6,18 @@
"description": "Defines the conditions and behavior of a rideable entity's boost", "description": "Defines the conditions and behavior of a rideable entity's boost",
"required": [], "required": [],
"properties": { "properties": {
"duration": { "type": "number", "default": 3, "description": "Time in seconds for the boost", "title": "TODO Title" }, "duration": { "type": "number", "default": 3, "description": "Time in seconds for the boost", "title": "Duration" },
"speed_multiplier": { "speed_multiplier": {
"type": "number", "type": "number",
"default": 1, "default": 1,
"description": "Factor by which the entity's normal speed increases. E.g. 2.0 means go twice as fast", "description": "Factor by which the entity's normal speed increases. E.g. 2.0 means go twice as fast",
"title": "TODO Title" "title": "Speed Multiplier"
}, },
"boost_items": { "boost_items": {
"type": "array", "type": "array",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Boost Items",
"items": { "items": {
"type": "object", "type": "object",
"description": "List of items that can be used to boost while riding this entity.", "description": "List of items that can be used to boost while riding this entity.",
@@ -31,10 +34,7 @@
"description": "The item used to boost will become this item once it is used up" "description": "The item used to boost will become this item once it is used up"
} }
} }
}, }
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "TODO Title"
} }
} }
} }

View File

@@ -6,65 +6,35 @@
"description": "Defines what blocks this entity can breathe in and gives them the ability to suffocate.", "description": "Defines what blocks this entity can breathe in and gives them the ability to suffocate.",
"required": [], "required": [],
"properties": { "properties": {
"totalSupply": { "type": "integer", "default": 15, "description": "Time in seconds the entity can hold its breath", "title": "TODO Title" }, "total_supply": { "type": "integer", "default": 15, "description": "Time in seconds the entity can hold its breath", "title": "Total Supply" },
"total_supply": { "type": "integer", "default": 15, "description": "Time in seconds the entity can hold its breath", "title": "TODO Title" }, "suffocate_time": { "type": "integer", "default": -20, "description": "Time in seconds between suffocation damage", "title": "Suffocate Time" },
"suffocateTime": { "type": "integer", "default": -20, "description": "Time in seconds between suffocation damage", "title": "TODO Title" }, "inhale_time": { "type": "number", "default": 0, "description": "Time in seconds to recover breath to maximum", "title": "Inhale Time" },
"suffocate_time": { "type": "integer", "default": -20, "description": "Time in seconds between suffocation damage", "title": "TODO Title" }, "breathes_air": { "type": "boolean", "default": true, "description": "If true, this entity can breathe in air", "title": "Breathes Air" },
"inhaleTime": { "type": "number", "default": 0, "description": "Time in seconds to recover breath to maximum", "title": "TODO Title" }, "breathes_water": { "type": "boolean", "default": false, "description": "If true, this entity can breathe in water", "title": "Breathes Water" },
"inhale_time": { "type": "number", "default": 0, "description": "Time in seconds to recover breath to maximum", "title": "TODO Title" }, "breathes_lava": { "type": "boolean", "default": false, "description": "If true, this entity can breathe in lava", "title": "Breathes Lava" },
"breathesAir": { "type": "boolean", "default": true, "description": "If true, this entity can breathe in air", "title": "TODO Title" },
"breathes_air": { "type": "boolean", "default": true, "description": "If true, this entity can breathe in air", "title": "TODO Title" },
"breathesWater": { "type": "boolean", "default": false, "description": "If true, this entity can breathe in water", "title": "TODO Title" },
"breathes_water": { "type": "boolean", "default": false, "description": "If true, this entity can breathe in water", "title": "TODO Title" },
"breathesLava": { "type": "boolean", "default": false, "description": "If true, this entity can breathe in lava", "title": "TODO Title" },
"breathes_lava": { "type": "boolean", "default": false, "description": "If true, this entity can breathe in lava", "title": "TODO Title" },
"breathesSolids": {
"type": "boolean",
"default": false,
"description": "If true, this entity can breathe in solid blocks",
"title": "TODO Title"
},
"breathes_solids": { "breathes_solids": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, this entity can breathe in solid blocks", "description": "If true, this entity can breathe in solid blocks",
"title": "TODO Title" "title": "Breathes Solids"
},
"generatesBubbles": {
"type": "boolean",
"default": true,
"description": "If true, this entity will have visible bubbles while in water",
"title": "TODO Title"
}, },
"generates_bubbles": { "generates_bubbles": {
"type": "boolean", "type": "boolean",
"default": true, "default": true,
"description": "If true, this entity will have visible bubbles while in water", "description": "If true, this entity will have visible bubbles while in water",
"title": "TODO Title" "title": "Generates Bubbles"
},
"breatheBlocks": {
"type": "array",
"description": "List of blocks this entity can breathe in, in addition to the above",
"items": { "$ref": "../../../../general/block/identifier.json" },
"title": "TODO Title"
}, },
"breathe_blocks": { "breathe_blocks": {
"type": "array", "type": "array",
"description": "List of blocks this entity can breathe in, in addition to the above", "description": "List of blocks this entity can breathe in, in addition to the above",
"items": { "$ref": "../../../../general/block/identifier.json" }, "items": { "$ref": "../../../../general/block/identifier.json" },
"title": "TODO Title" "title": "Breathe Blocks"
},
"nonBreatheBlocks": {
"type": "array",
"description": "List of blocks this entity can't breathe in, in addition to the above",
"items": { "$ref": "../../../../general/block/identifier.json" },
"title": "TODO Title"
}, },
"non_breathe_blocks": { "non_breathe_blocks": {
"type": "array", "type": "array",
"description": "List of blocks this entity can't breathe in, in addition to the above", "description": "List of blocks this entity can't breathe in, in addition to the above",
"items": { "$ref": "../../../../general/block/identifier.json" }, "items": { "$ref": "../../../../general/block/identifier.json" },
"title": "TODO Title" "title": "Non Breathes Blocks"
} }
} }
} }

View File

@@ -42,19 +42,19 @@
"type": "string", "type": "string",
"description": "An item that can be used to get the entity into the `love` state", "description": "An item that can be used to get the entity into the `love` state",
"$ref": "../../../../general/item/identifier.json", "$ref": "../../../../general/item/identifier.json",
"title": "TODO Title" "title": "Breed Item"
} }
}, },
{ "type": "string", "$ref": "../../../../general/item/identifier.json", "title": "TODO Title" } { "type": "string", "$ref": "../../../../general/item/identifier.json" }
] ]
}, },
"breeds_with": { "breeds_with": {
"description": "The list of entity definitions that this entity can breed with.", "description": "The list of entity definitions that this entity can breed with.",
"title": "Breeds With",
"oneOf": [ "oneOf": [
{ "type": "object", "$ref": "#/definitions/breeds_with_spec" }, { "type": "object", "$ref": "#/definitions/breeds_with_spec" },
{ "uniqueItems": true, "type": "array", "items": { "type": "object", "$ref": "#/definitions/breeds_with_spec" } } { "uniqueItems": true, "type": "array", "items": { "type": "object", "$ref": "#/definitions/breeds_with_spec" } }
], ]
"title": "TODO Title"
}, },
"causes_pregnancy": { "causes_pregnancy": {
"type": "boolean", "type": "boolean",

View File

@@ -5,5 +5,5 @@
"additionalProperties": false, "additionalProperties": false,
"description": "Sets this entity's default head rotation angle.", "description": "Sets this entity's default head rotation angle.",
"required": [], "required": [],
"properties": { "value": { "type": "number", "default": 0.0, "description": "Angle in degrees", "title": "TODO Title" } } "properties": { "value": { "type": "number", "default": 0.0, "description": "Angle in degrees", "title": "Value" } }
} }

View File

@@ -5,5 +5,5 @@
"additionalProperties": false, "additionalProperties": false,
"description": "Speed in Blocks that this entity flies at.", "description": "Speed in Blocks that this entity flies at.",
"required": [], "required": [],
"properties": { "value": { "type": "number", "default": 0.02, "description": "Flying speed in blocks per tick", "title": "TODO Title" } } "properties": { "value": { "type": "number", "default": 0.02, "description": "Flying speed in blocks per tick", "title": "Value" } }
} }

View File

@@ -10,7 +10,7 @@
"type": "number", "type": "number",
"default": 1.0, "default": 1.0,
"description": "The higher the number, the more the friction affects this entity. A value of 1.0 means regular friction, while 2.0 means twice as much", "description": "The higher the number, the more the friction affects this entity. A value of 1.0 means regular friction, while 2.0 means twice as much",
"title": "TODO Title" "title": "Value"
} }
} }
} }

View File

@@ -10,7 +10,7 @@
"type": "number", "type": "number",
"default": 0.0, "default": 0.0,
"description": "The value of the entity's offset from the terrain, in blocks", "description": "The value of the entity's offset from the terrain, in blocks",
"title": "TODO Title" "title": "Value"
} }
} }
} }

View File

@@ -6,19 +6,16 @@
"additionalProperties": false, "additionalProperties": false,
"required": [], "required": [],
"properties": { "properties": {
"filters": { "filters": { "$ref": "../../filters/filters.json" },
"$ref": "../../filters/filters.json",
"description": "The filter group that defines the conditions for this trigger",
"title": "Filters"
},
"force_use": { "force_use": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "Determines if item can be used regardless of entity being at full health", "description": "Determines if item can be used regardless of entity being at full health",
"title": "TODO Title" "title": "Force Use"
}, },
"items": { "items": {
"description": "The array of items that can be used to heal this entity", "description": "The array of items that can be used to heal this entity",
"title": "Items",
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
@@ -27,11 +24,15 @@
"$ref": "../../filters/filters.json", "$ref": "../../filters/filters.json",
"description": "The filter group that defines the conditions for using this item to heal the entity" "description": "The filter group that defines the conditions for using this item to heal the entity"
}, },
"heal_amount": { "type": "integer", "default": 1, "description": "The amount of health this entity gains when fed this item" }, "heal_amount": {
"item": { "type": "string", "description": "Item identifier that can be used to heal this entity" } "type": "integer",
"default": 1,
"description": "The amount of health this entity gains when fed this item",
"title": "Heal Amount"
},
"item": { "type": "string", "description": "Item identifier that can be used to heal this entity", "title": "Item" }
} }
}, }
"title": "TODO Title"
} }
} }
} }

View File

@@ -10,7 +10,7 @@
"type": "number", "type": "number",
"default": 3, "default": 3,
"description": "Number of days the mob has to stay up until the insomnia effect begins.", "description": "Number of days the mob has to stay up until the insomnia effect begins.",
"title": "TODO Title" "title": "Days Until Insomnia"
} }
} }
} }

View File

@@ -36,11 +36,10 @@
"title": "Blocks To Avoid", "title": "Blocks To Avoid",
"items": { "items": {
"title": "Block", "title": "Block",
"description": "UNDOCUMENTED", "description": "Tells the pathfinder which blocks to avoid when creating a path",
"$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -40,7 +40,7 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -40,7 +40,7 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -40,7 +40,7 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -39,7 +39,7 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -40,7 +40,7 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -40,7 +40,7 @@
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "string", "$ref": "../../../../general/block/identifier.json" }, { "type": "string", "$ref": "../../../../general/block/identifier.json" },
{ "type": "object", "title": "TODO", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json", "title": "Name" } } }
] ]
} }
}, },

View File

@@ -9,7 +9,7 @@
"triggered_event": { "triggered_event": {
"$ref": "../types/event.json", "$ref": "../types/event.json",
"description": "Event to run we attempt to trigger a raid on the village.", "description": "Event to run we attempt to trigger a raid on the village.",
"title": "TODO Title" "title": "Triggered Event"
} }
} }
} }

View File

@@ -10,24 +10,25 @@
"type": "number", "type": "number",
"default": 3, "default": 3,
"description": "The strength with which blocking entities should be knocked back", "description": "The strength with which blocking entities should be knocked back",
"title": "TODO Title" "title": "Knockback Strength"
}, },
"reaction_choices": { "reaction_choices": {
"type": "array", "type": "array",
"description": "A list of weighted responses to the melee attack being blocked", "description": "A list of weighted responses to the melee attack being blocked",
"title": "Reaction Choices",
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"properties": { "properties": {
"weight": { "type": "integer" }, "weight": { "type": "integer", "title": "Weight", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"value": { "value": {
"additionalProperties": false, "title": "Value",
"type": "object", "description": "UNDOCUMENTED",
"properties": { "event": { "type": "string" }, "target": { "type": "string", "$ref": "../../filters/filters/types/subject.json" } } "$comment": "UNDOCUMENTED",
"$ref": "../types/event.json"
} }
} }
}, }
"title": "TODO Title"
} }
} }
} }

View File

@@ -11,13 +11,13 @@
"type": "array", "type": "array",
"title": "Dispense On", "title": "Dispense On",
"description": "List of block descriptors that contain blocks that this item can be dispensed on. If left empty, all blocks will be allowed.", "description": "List of block descriptors that contain blocks that this item can be dispensed on. If left empty, all blocks will be allowed.",
"items": { "title": "TODO", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } "items": { "title": "Dispense On", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }
}, },
"use_on": { "use_on": {
"type": "array", "type": "array",
"title": "Use On", "title": "Use On",
"description": "List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.", "description": "List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.",
"items": { "title": "TODO", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } "items": { "title": "Use On", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }
} }
} }
} }

View File

@@ -3,16 +3,19 @@
"additionalProperties": false, "additionalProperties": false,
"description": "The function enchant_with_levels", "description": "The function enchant_with_levels",
"title": "Enchant With Levels", "title": "Enchant With Levels",
"type": "object",
"properties": { "properties": {
"function": { "function": {
"type": "string", "type": "string",
"const": "enchant_with_levels", "const": "enchant_with_levels",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "TODO Title" "title": "Function"
}, },
"levels": { "levels": {
"title": "Levels", "title": "Levels",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "integer" }, { "type": "integer" },
{ {
@@ -21,9 +24,7 @@
"required": ["min", "max"], "required": ["min", "max"],
"properties": { "min": { "type": "integer", "title": "Minimum" }, "max": { "type": "integer", "title": "Maximum" } } "properties": { "min": { "type": "integer", "title": "Minimum" }, "max": { "type": "integer", "title": "Maximum" } }
} }
], ]
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED"
}, },
"treasure": { "type": "boolean", "title": "Treasure", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" } "treasure": { "type": "boolean", "title": "Treasure", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }
} }

View File

@@ -3,6 +3,7 @@
"additionalProperties": false, "additionalProperties": false,
"description": "A minecraft loot table", "description": "A minecraft loot table",
"title": "Loot Table", "title": "Loot Table",
"type": "object",
"examples": [ "examples": [
{ {
"pools": [ "pools": [
@@ -34,6 +35,8 @@
"properties": { "properties": {
"rolls": { "rolls": {
"title": "Rolls", "title": "Rolls",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "integer", "minimum": 0 }, { "type": "integer", "minimum": 0 },
{ {
@@ -63,23 +66,46 @@
"entries": { "entries": {
"title": "Entries", "title": "Entries",
"type": "array", "type": "array",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"required": ["type"], "required": ["type"],
"title": "Entry", "title": "Entry",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": { "properties": {
"type": { "title": "Type", "type": "string", "enum": ["item", "empty", "loot_table"] }, "type": {
"count": { "type": "integer", "title": "Count", "description": "The amount of the item" }, "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/)" }, "name": { "title": "Name", "type": "string", "description": "An item or loottable", "pattern": "^([\\w]+:|loot_tables/)" },
"weight": { "title": "Weight", "type": "integer", "minimum": 1 }, "weight": { "title": "Weight", "type": "integer", "minimum": 1, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"functions": { "functions": {
"title": "Functions", "title": "Functions",
"type": "array", "type": "array",
"items": { "type": "object", "required": ["function"], "title": "Function", "$ref": "./functions.json" } "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"items": {
"type": "object",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"required": ["function"],
"title": "Function",
"$ref": "./functions.json"
}
}, },
"pools": { "$ref": "#/definitions/pools_spec" }, "pools": { "$ref": "#/definitions/pools_spec" },
"quality": { "title": "Quality", "description": "UNDOCUMANTED", "type": "integer" } "quality": { "title": "Quality", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "integer" }
} }
} }
}, },
@@ -100,7 +126,7 @@
} }
}, },
"properties": { "properties": {
"pools": { "$ref": "#/definitions/pools_spec", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO Title" }, "pools": { "$ref": "#/definitions/pools_spec", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Pools" },
"type": { "title": "Type", "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["minecraft:chest"] } "type": { "title": "Type", "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["minecraft:chest"] }
} }
} }