Updated volumes

This commit is contained in:
DaanV2
2021-09-21 23:39:25 +02:00
parent a742b8f721
commit c5fd2812ad

View File

@@ -40,7 +40,7 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"minecraft:bounds": { "minecraft:bounds": {
"title": "Minecraft:bounds", "title": "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.", "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", "type": "object",
"additionalProperties": false, "additionalProperties": false,
@@ -56,9 +56,9 @@
"description": "The maximum block position of the bounding box.", "description": "The maximum block position of the bounding box.",
"title": "Maximum", "title": "Maximum",
"items": [ "items": [
{ "title": "A", "type": "number" }, { "title": "X", "type": "number" },
{ "title": "B", "type": "number" }, { "title": "Y", "type": "number" },
{ "title": "C", "type": "number" } { "title": "Z", "type": "number" }
] ]
}, },
"min": { "min": {
@@ -66,15 +66,15 @@
"description": "The minimum block position of the bounding box.", "description": "The minimum block position of the bounding box.",
"title": "Minimum", "title": "Minimum",
"items": [ "items": [
{ "title": "A", "type": "number" }, { "title": "X", "type": "number" },
{ "title": "B", "type": "number" }, { "title": "Y", "type": "number" },
{ "title": "C", "type": "number" } { "title": "Z", "type": "number" }
] ]
} }
} }
}, },
"minecraft:fog": { "minecraft:fog": {
"title": "Minecraft:fog", "title": "Fog",
"description": "Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.", "description": "Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
@@ -83,13 +83,91 @@
"type": "string", "type": "string",
"default": "", "default": "",
"description": "The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.", "description": "The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.",
"title": "fog identifier" "title": "Fog Identifier"
}, },
"priority": { "priority": {
"type": "integer", "type": "integer",
"default": 2147483647, "default": 2147483647,
"description": "The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.", "description": "The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.",
"title": "priority" "title": "Priority"
}
}
},
"minecraft:on_actor_enter": {
"title": "On Actor Enter",
"description": "Component that defines what happens when an actor enters the volume. Can contain multiple json objects.",
"type": "object",
"additionalProperties": false,
"required": ["on_enter"],
"properties": {
"on_enter": {
"title": "On Enter",
"description": "Required array that contains all the triggers.",
"type": "array",
"items": {
"title": "On Enter Trigger",
"description": "Trigger",
"type": "object",
"additionalProperties": false,
"properties": {
"condition": {
"title": "Condition",
"description": "Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.",
"type": "string",
"$ref": "../../../molang/string.json"
},
"event": {
"title": "Event",
"description": "Name of the event to run.",
"type": "string"
},
"target": {
"title": "Target",
"description": "One of `self` or `other`. Self means the event is attached to the volume. Other means the event is attached to the actor.",
"type": "string",
"enum": ["self", "other"]
}
}
}
}
}
},
"minecraft:on_actor_leave": {
"title": "On Actor Leave",
"description": "Component that defines what happens when an actor leaves the volume.",
"type": "object",
"additionalProperties": false,
"required": ["on_enter"],
"properties": {
"on_enter": {
"title": "On Enter",
"description": "Required array that contains all the triggers.",
"type": "array",
"items": {
"title": "On Enter Trigger",
"description": "Trigger",
"type": "object",
"additionalProperties": false,
"properties": {
"condition": {
"title": "Condition",
"description": "Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.",
"type": "string",
"$ref": "../../../molang/string.json"
},
"event": {
"title": "Event",
"description": "Name of the event to run.",
"type": "string"
},
"target": {
"title": "Target",
"description": "One of `self` or `other`. Self means the event is attached to the volume. Other means the event is attached to the actor.",
"type": "string",
"enum": ["self", "other"]
}
}
}
} }
} }
} }