This commit is contained in:
DaanV2
2021-06-08 17:06:03 +02:00
parent ff3344cff0
commit cf2fa6212a
38 changed files with 27447 additions and 44 deletions

View File

@@ -4,7 +4,6 @@
"object_check": { "object_check": {
"type": "object", "type": "object",
"dependencies": { "dependencies": {
"description": ["title"],
"additionalProperties": ["type"], "additionalProperties": ["type"],
"items": ["type"], "items": ["type"],
"properties": ["type"] "properties": ["type"]
@@ -24,6 +23,12 @@
{ "type": "number" }, { "type": "number" },
{ "type": "integer" } { "type": "integer" }
] ]
},
"properties": {
"title": {
"type": "string",
"pattern": "^([A-Z0-9][a-z0-9]*(| ))*$"
}
} }
}, },
"array_check": { "array_check": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1,120 @@
{"$id":"blockception.minecraft.behavior.volumes","examples":[{"format_version":"1.17.0","minecraft:volume":{"description":{"identifier":"example:foo"},"components":{}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.17.0"}}},"then":{"$ref":"#/definitions/A"}},{"properties":{"format_version":{"$ref":"#/definitions/C"}}}],"definitions":{"B":{"type":"string","title":"Entity Identifier 1.8.0","description":"The minecraft entity volume","examples":["namespace:volume"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"A":{"type":"object","title":"Spawn Rules 1.17.0","description":"TODO","additionalProperties":false,"required":["format_version","minecraft:volume"],"properties":{"format_version":{"const":"1.17.0","description":"Specifies the version of the game this entity was made in. Minimum supported version is 1.17.0. Current supported version is 1.17.0.","title":"TODO Title"},"minecraft:volume":{"type":"object","title":"Spawn Rules","description":"TODO","additionalProperties":false,"properties":{"description":{"type":"object","title":"Description","description":"The description contains a single `identifier` string","additionalProperties":false,"properties":{"identifier":{"title":"Identifier","description":"The unique identifier for this volume. It must be of the form `namespace:name', where namespace cannot be `minecraft'.","$ref":"#/definitions/B"}}},"components":{"type":"object","title":"Components","description":"TODO","additionalProperties":false,"properties":{"minecraft:bounds":{"title":"Minecraft:bounds","description":"Component that defines a minimum and maximum block position for a bounding box and which world dimension the bounding box is in. Every volume must have a bounds component.","type":"object","additionalProperties":false,"properties":{"dimension":{"type":"string","description":"The name of the dimension the bounding box will exist in: one of `overworld', `nether` or `the end'.","title":"Dimension","enum":["overworld","nether","the end"]},"max":{"type":"array","description":"The maximum block position of the bounding box.","title":"Maximum","items":[{"title":"A","type":"number"},{"title":"B","type":"number"},{"title":"C","type":"number"}]},"min":{"type":"array","description":"The minimum block position of the bounding box.","title":"Minimum","items":[{"title":"A","type":"number"},{"title":"B","type":"number"},{"title":"C","type":"number"}]}}},"minecraft:fog":{"title":"Minecraft:fog","description":"Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.","type":"object","additionalProperties":false,"properties":{"fog_identifier":{"type":"string","default":"","description":"The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.","title":"fog identifier"},"priority":{"type":"integer","default":2147483647,"description":"The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.","title":"priority"}}}}}}}}},"C":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^(1)\\.([0-9]+)\\.([0-9]+)$","type":"string"}}} {
"$id": "blockception.minecraft.behavior.volumes",
"examples": [{ "format_version": "1.17.0", "minecraft:volume": { "description": { "identifier": "example:foo" }, "components": {} } }],
"allOf": [
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.17.0" } } }, "then": { "$ref": "#/definitions/A" } },
{ "properties": { "format_version": { "$ref": "#/definitions/C" } } }
],
"definitions": {
"B": {
"type": "string",
"title": "Entity Identifier 1.8.0",
"description": "The minecraft entity volume",
"examples": ["namespace:volume"],
"pattern": "^[0-9a-zA-Z:_\\.\\-]+$"
},
"A": {
"type": "object",
"title": "Spawn Rules 1.17.0",
"description": "TODO",
"additionalProperties": false,
"required": ["format_version", "minecraft:volume"],
"properties": {
"format_version": {
"const": "1.17.0",
"description": "Specifies the version of the game this entity was made in. Minimum supported version is 1.17.0. Current supported version is 1.17.0.",
"title": "TODO Title"
},
"minecraft:volume": {
"type": "object",
"title": "Spawn Rules",
"description": "TODO",
"additionalProperties": false,
"properties": {
"description": {
"type": "object",
"title": "Description",
"description": "The description contains a single `identifier` string",
"additionalProperties": false,
"properties": {
"identifier": {
"title": "Identifier",
"description": "The unique identifier for this volume. It must be of the form `namespace:name', where namespace cannot be `minecraft`.",
"$ref": "#/definitions/B"
}
}
},
"components": {
"type": "object",
"title": "Components",
"description": "TODO",
"additionalProperties": false,
"properties": {
"minecraft:bounds": {
"title": "Minecraft:bounds",
"description": "Component that defines a minimum and maximum block position for a bounding box and which world dimension the bounding box is in. Every volume must have a bounds component.",
"type": "object",
"additionalProperties": false,
"properties": {
"dimension": {
"type": "string",
"description": "The name of the dimension the bounding box will exist in: one of `overworld', `nether` or `the end`.",
"title": "Dimension",
"enum": ["overworld", "nether", "the end"]
},
"max": {
"type": "array",
"description": "The maximum block position of the bounding box.",
"title": "Maximum",
"items": [
{ "title": "A", "type": "number" },
{ "title": "B", "type": "number" },
{ "title": "C", "type": "number" }
]
},
"min": {
"type": "array",
"description": "The minimum block position of the bounding box.",
"title": "Minimum",
"items": [
{ "title": "A", "type": "number" },
{ "title": "B", "type": "number" },
{ "title": "C", "type": "number" }
]
}
}
},
"minecraft:fog": {
"title": "Minecraft:fog",
"description": "Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.",
"type": "object",
"additionalProperties": false,
"properties": {
"fog_identifier": {
"type": "string",
"default": "",
"description": "The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.",
"title": "fog identifier"
},
"priority": {
"type": "integer",
"default": 2147483647,
"description": "The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.",
"title": "priority"
}
}
}
}
}
}
}
}
},
"C": {
"title": "Format Version",
"description": "A version that tells minecraft what type of data format can be expected when reading this file.",
"pattern": "^(1)\\.([0-9]+)\\.([0-9]+)$",
"type": "string"
}
}
}

236
resource/fog/fog.json vendored

File diff suppressed because one or more lines are too long

View File

@@ -71,7 +71,7 @@
"properties": { "properties": {
"coordinate_eval_order": { "coordinate_eval_order": {
"title": "Coordinate Eval Order", "title": "Coordinate Eval Order",
"description": "The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to `xzy'.", "description": "The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to `xzy`.",
"type": "string", "type": "string",
"enum": ["xyz", "xzy", "yxz", "yzx", "zxy", "zyx"] "enum": ["xyz", "xzy", "yxz", "yzx", "zxy", "zyx"]
}, },

View File

@@ -26,7 +26,7 @@
"big_wave_speed": { "big_wave_speed": {
"type": "number", "type": "number",
"default": 10, "default": 10,
"description": "Multiplier for the speed to make a big wave. Triggered depending on `big_wave_probability'.", "description": "Multiplier for the speed to make a big wave. Triggered depending on `big_wave_probability`.",
"title": "Big Wave Speed" "title": "Big Wave Speed"
}, },
"drag_down_on_buoyancy_removed": { "drag_down_on_buoyancy_removed": {

View File

@@ -26,7 +26,7 @@
"big_wave_speed": { "big_wave_speed": {
"type": "number", "type": "number",
"default": 10, "default": 10,
"description": "Multiplier for the speed to make a big wave. Triggered depending on `big_wave_probability'.", "description": "Multiplier for the speed to make a big wave. Triggered depending on `big_wave_probability`.",
"title": "Big Wave Speed" "title": "Big Wave Speed"
}, },
"drag_down_on_buoyancy_removed": { "drag_down_on_buoyancy_removed": {

View File

@@ -12,7 +12,7 @@
}, },
"operator": { "operator": {
"$ref": "./types/operator.json", "$ref": "./types/operator.json",
"description": "(Optional) The comparison to apply with `value'.", "description": "(Optional) The comparison to apply with `value`.",
"default": "equals", "default": "equals",
"title": "Operator" "title": "Operator"
}, },

View File

@@ -6,7 +6,7 @@
"required": ["value"], "required": ["value"],
"properties": { "properties": {
"test": { "type": "string", "title": "Test Property", "description": "Compares the distance to the nearest Player with a float value." }, "test": { "type": "string", "title": "Test Property", "description": "Compares the distance to the nearest Player with a float value." },
"operator": { "$ref": "./types/operator.json", "description": "(Optional) The comparison to apply with `value'.", "title": "Operator" }, "operator": { "$ref": "./types/operator.json", "description": "(Optional) The comparison to apply with `value`.", "title": "Operator" },
"subject": { "$ref": "./types/subject.json", "description": "(Optional) The subject of this filter test.", "title": "Subject" }, "subject": { "$ref": "./types/subject.json", "description": "(Optional) The subject of this filter test.", "title": "Subject" },
"value": { "type": "number", "description": "(Required) A floating point value.", "title": "Value" } "value": { "type": "number", "description": "(Required) A floating point value.", "title": "Value" }
} }

View File

@@ -11,7 +11,7 @@
}, },
"operator": { "operator": {
"$ref": "./types/operator.json", "$ref": "./types/operator.json",
"description": "(Optional) The comparison to apply with `value'.", "description": "(Optional) The comparison to apply with `value`.",
"default": "equals", "default": "equals",
"title": "Operator" "title": "Operator"
}, },

View File

@@ -2,7 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.filters.operator", "$id": "blockception.minecraft.behavior.entities.filters.operator",
"title": "Filters Operator", "title": "Filters Operator",
"type": "string", "type": "string",
"description": "The comparison to apply with `value'.", "description": "The comparison to apply with `value`.",
"default": "equals", "default": "equals",
"enum": ["!=", "<", "<=", "<>", "=", "==", ">", ">=", "equals", "not"] "enum": ["!=", "<", "<=", "<>", "=", "==", ">", ">=", "equals", "not"]
} }

View File

@@ -61,7 +61,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../general/feature/identifier.json" "$ref": "../../../general/feature/identifier.json"
}, },

View File

@@ -11,7 +11,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -9,7 +9,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The name of this feature in the form `namespace_name:feature_name'. `feature_name` must match the filename.", "description": "The name of this feature in the form `namespace_name:feature_name`. `feature_name` must match the filename.",
"type": "string", "type": "string",
"$ref": "../../../../general/feature/identifier.json" "$ref": "../../../../general/feature/identifier.json"
} }

View File

@@ -59,11 +59,11 @@
}, },
"on_use_action": { "on_use_action": {
"type": "string", "type": "string",
"description": "'chorus_teleport` or `none'.", "description": "'chorus_teleport` or `none`.",
"enum": ["chorus_teleport", "suspicious_stew_effect", "none"] "enum": ["chorus_teleport", "suspicious_stew_effect", "none"]
}, },
"on_use_range": { "$ref": "../../../general/array_3_number.json" }, "on_use_range": { "$ref": "../../../general/array_3_number.json" },
"cooldown_type": { "type": "string", "description": "'chorusfruit` or `none'.", "enum": ["chorusfruit", "none"] }, "cooldown_type": { "type": "string", "description": "'chorusfruit` or `none`.", "enum": ["chorusfruit", "none"] },
"cooldown_time": { "type": "integer", "description": "Cooldown time in ticks." }, "cooldown_time": { "type": "integer", "description": "Cooldown time in ticks." },
"can_always_eat": { "type": "boolean", "description": "Can always eat this item? true or false." }, "can_always_eat": { "type": "boolean", "description": "Can always eat this item? true or false." },
"effects": { "effects": {

View File

@@ -72,14 +72,14 @@
}, },
"on_use_action": { "on_use_action": {
"type": "string", "type": "string",
"description": "'chorus_teleport` or `none'.", "description": "'chorus_teleport` or `none`.",
"title": "UNDOCUMANTED", "title": "UNDOCUMANTED",
"enum": ["chorus_teleport", "suspicious_stew_effect", "none"] "enum": ["chorus_teleport", "suspicious_stew_effect", "none"]
}, },
"on_use_range": { "$ref": "../../../general/array_3_number.json", "title": "UNDOCUMANTED" }, "on_use_range": { "$ref": "../../../general/array_3_number.json", "title": "UNDOCUMANTED" },
"cooldown_type": { "cooldown_type": {
"type": "string", "type": "string",
"description": "'chorusfruit` or `none'.", "description": "'chorusfruit` or `none`.",
"title": "UNDOCUMANTED", "title": "UNDOCUMANTED",
"enum": ["chorusfruit", "none"] "enum": ["chorusfruit", "none"]
}, },

View File

@@ -88,14 +88,14 @@
}, },
"on_use_action": { "on_use_action": {
"type": "string", "type": "string",
"description": "'chorus_teleport` or `none'.", "description": "'chorus_teleport` or `none`.",
"title": "UNDOCUMANTED", "title": "UNDOCUMANTED",
"enum": ["chorus_teleport", "suspicious_stew_effect", "none"] "enum": ["chorus_teleport", "suspicious_stew_effect", "none"]
}, },
"on_use_range": { "$ref": "../../../general/array_3_number.json" }, "on_use_range": { "$ref": "../../../general/array_3_number.json" },
"cooldown_type": { "cooldown_type": {
"type": "string", "type": "string",
"description": "'chorusfruit` or `none'.", "description": "'chorusfruit` or `none`.",
"title": "UNDOCUMANTED", "title": "UNDOCUMANTED",
"enum": ["chorusfruit", "none"] "enum": ["chorusfruit", "none"]
}, },

View File

@@ -29,7 +29,7 @@
}, },
"using_converts_to": { "using_converts_to": {
"title": "Using Converts To", "title": "Using Converts To",
"description": "When used, convert the *this* item to the one specified by `using_converts_to'.", "description": "When used, convert the *this* item to the one specified by `using_converts_to`.",
"type": "string" "type": "string"
} }
} }

View File

@@ -29,7 +29,7 @@
}, },
"using_converts_to": { "using_converts_to": {
"title": "Using Converts To", "title": "Using Converts To",
"description": "When used, convert the *this* item to the one specified by `using_converts_to'.", "description": "When used, convert the *this* item to the one specified by `using_converts_to`.",
"type": "string" "type": "string"
} }
} }

View File

@@ -1,6 +1,6 @@
{ {
"$id": "blockception.minecraft.behavior.1.12.0.recipe.furnace", "$id": "blockception.minecraft.behavior.1.12.0.recipe.furnace",
"description": "Represents a furnace recipe for a furnace.'Input` items will burn and transform into items specified in `output'..", "description": "Represents a furnace recipe for a furnace.'Input` items will burn and transform into items specified in `output`..",
"title": "Furnace Recipe 1.12.0", "title": "Furnace Recipe 1.12.0",
"additionalProperties": false, "additionalProperties": false,
"required": ["description"], "required": ["description"],

View File

@@ -25,7 +25,7 @@
"properties": { "properties": {
"identifier": { "identifier": {
"title": "Identifier", "title": "Identifier",
"description": "The unique identifier for this volume. It must be of the form `namespace:name', where namespace cannot be `minecraft'.", "description": "The unique identifier for this volume. It must be of the form `namespace:name', where namespace cannot be `minecraft`.",
"$ref": "../../../general/volume/identifier.json" "$ref": "../../../general/volume/identifier.json"
} }
} }
@@ -44,7 +44,7 @@
"properties": { "properties": {
"dimension": { "dimension": {
"type": "string", "type": "string",
"description": "The name of the dimension the bounding box will exist in: one of `overworld', `nether` or `the end'.", "description": "The name of the dimension the bounding box will exist in: one of `overworld', `nether` or `the end`.",
"title": "Dimension", "title": "Dimension",
"enum": ["overworld", "nether", "the end"] "enum": ["overworld", "nether", "the end"]
}, },

View File

@@ -27,13 +27,13 @@
"properties": { "properties": {
"fog_start": { "fog_start": {
"title": "Fog Start", "title": "Fog Start",
"description": "The distance from the player that the fog will begin to appear. `fog_start` must be less than or equal to `fog_end'.", "description": "The distance from the player that the fog will begin to appear. `fog_start` must be less than or equal to `fog_end`.",
"type": "number", "type": "number",
"minimum": 0 "minimum": 0
}, },
"fog_end": { "fog_end": {
"title": "Fog End", "title": "Fog End",
"description": "The distance from the player that the fog will become fully opaque. `fog_end` must be greater than or equal to `fog_start'.", "description": "The distance from the player that the fog will become fully opaque. `fog_end` must be greater than or equal to `fog_start`.",
"type": "number", "type": "number",
"minimum": 0 "minimum": 0
}, },
@@ -68,7 +68,7 @@
}, },
"zero_density_height": { "zero_density_height": {
"title": "Zero Density Height", "title": "Zero Density Height",
"description": "The height in blocks that the ground fog will be completely transparent and begin to appear. This value needs to be at least 1 higher than `max_density_height'.", "description": "The height in blocks that the ground fog will be completely transparent and begin to appear. This value needs to be at least 1 higher than `max_density_height`.",
"minimum": 0, "minimum": 0,
"maximum": 128, "maximum": 128,
"type": "number" "type": "number"