Updated comments

This commit is contained in:
DaanV2
2021-07-02 13:05:57 +02:00
parent dd28b6a467
commit 90a39eba44
67 changed files with 350 additions and 310 deletions

View File

@@ -40,12 +40,12 @@
},
"randomize": {
"title": "Randomize",
"description": "UNDOCUMENTED",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": {
"title": "Randomize",
"description": "UNDOCUMENTED",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"$comment": "UNDOCUMENTED",
"type": "object",
"$ref": "#/definitions/event_functions",

View File

@@ -51,8 +51,10 @@
},
"sequence": {
"type": "array",
"description": "A series of filters and components to be added",
"title": "Sequences",
"items": {
"description": "UNDOCUMENTATED: sequence",
"description": "A filters and components to be added",
"title": "Sequence",
"type": "object",
"properties": {
@@ -60,9 +62,7 @@
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"filters": { "$ref": "./../filters/filters.json" }
}
},
"description": "A series of filters and components to be added",
"title": "Sequences"
}
},
"filters": { "$ref": "./../filters/filters.json" },
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" }

View File

@@ -12,7 +12,7 @@
"const": "1.11.0",
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
},
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "UNDOCUMENTATED: minecraft:entity", "title": "Entity" }
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "UNDOCUMENTED: minecraft:entity", "title": "Entity" }
},
"additionalProperties": false
}

View File

@@ -32,19 +32,24 @@
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"sequence": {
"type": "array",
"items": {
"description": "UNDOCUMENTATED: sequence",
"description": "Filters and components to be added",
"title": "Sequence",
"type": "object",
"properties": {

View File

@@ -12,7 +12,7 @@
"const": "1.12.0",
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
},
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "UNDOCUMENTATED: minecraft:entity", "title": "Entity" }
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "UNDOCUMENTED: minecraft:entity", "title": "Entity" }
},
"additionalProperties": false
}

View File

@@ -31,19 +31,24 @@
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"sequence": {
"type": "array",
"items": {
"description": "UNDOCUMENTATED: sequence",
"description": "Filters and components to be added",
"title": "Sequence",
"type": "object",
"properties": {

View File

@@ -33,8 +33,8 @@
"title": "On Damage",
"properties": {
"filters": { "$ref": "../../filters/filters.json" },
"event": { "type": "string", "pattern": "^.*$", "description": "UNDOCUMENTATED: event", "title": "Event" },
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "UNDOCUMENTATED: target", "title": "Target" }
"event": { "type": "string", "pattern": "^.*$", "description": "UNDOCUMENTED: event", "title": "Event" },
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "UNDOCUMENTED: target", "title": "Target" }
},
"on_damage_sound_event": {
"type": "string",

View File

@@ -12,7 +12,7 @@
"const": "1.13.0",
"description": "A version that tells minecraft what type of data format can be expected when reading this file."
},
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "UNDOCUMENTATED: minecraft:entity", "title": "Entity" }
"minecraft:entity": { "$ref": "./minecraft.entity.json", "description": "UNDOCUMENTED: minecraft:entity", "title": "Entity" }
},
"additionalProperties": false
}

View File

@@ -31,19 +31,24 @@
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"sequence": {
"type": "array",
"items": {
"description": "UNDOCUMENTATED: sequence",
"description": "Filters and components to be added",
"title": "Sequence",
"type": "object",
"properties": {

View File

@@ -31,19 +31,24 @@
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"title": "Randomize"
},
"sequence": {
"type": "array",
"items": {
"description": "UNDOCUMENTATED: sequence",
"description": "Filters and components to be added",
"title": "Sequence",
"type": "object",
"properties": {

View File

@@ -8,7 +8,7 @@
"properties": {
"priority": { "$ref": "./types/priority.json" },
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"speed_modifier": { "default": 0.0, "description": "UNDOCUMENTATED: speed modifier", "title": "Speed Modifier" },
"speed_modifier": { "default": 0.0, "description": "UNDOCUMENTED: speed modifier", "title": "Speed Modifier" },
"potions": {
"type": "array",
"description": "A list of potions that this entity can drink.",
@@ -17,7 +17,7 @@
"required": ["id", "chance", "filters"],
"additionalProperties": false,
"type": "object",
"description": "UNDOCUMENTATED: potions",
"description": "UNDOCUMENTED: potions",
"title": "Potions",
"properties": {
"id": { "type": "integer", "default": -1, "description": "The registry ID of the potion to use", "title": "Id" },

View File

@@ -33,8 +33,8 @@
"title": "On Damage",
"properties": {
"filters": { "$ref": "../../filters/filters.json" },
"event": { "type": "string", "pattern": "^.*$", "description": "UNDOCUMENTATED: event", "title": "Event" },
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "UNDOCUMENTATED: target", "title": "Target" }
"event": { "type": "string", "pattern": "^.*$", "description": "UNDOCUMENTED: event", "title": "Event" },
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "UNDOCUMENTED: target", "title": "Target" }
},
"on_damage_sound_event": {
"type": "string",

View File

@@ -26,7 +26,7 @@
}
}
},
"table": { "type": "string", "pattern": ".*\\.json$", "description": "UNDOCUMENTATED: table", "title": "Table" }
"table": { "type": "string", "pattern": ".*\\.json$", "description": "UNDOCUMENTED: table", "title": "Table" }
},
"description": "UNDOCUMENTATED: "
"description": "UNDOCUMENTED: "
}

View File

@@ -20,15 +20,20 @@
},
"randomize": {
"title": "Randomize",
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"type": "array",
"items": {
"required": ["weight"],
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
}
}
},
@@ -48,7 +53,7 @@
"description": "A series of filters and components to be added",
"title": "Sequences",
"type": "array",
"items": { "description": "UNDOCUMENTATED: sequence", "title": "Sequence", "type": "object", "$ref": "#/definitions/event_base" }
"items": { "description": "Filters and components to be added", "title": "Sequence", "type": "object", "$ref": "#/definitions/event_base" }
},
"trigger": { "type": "string", "description": "The event to run", "title": "Trigger" }
}

View File

@@ -20,15 +20,20 @@
},
"randomize": {
"title": "Randomize",
"description": "UNDOCUMENTATED: randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"type": "array",
"items": {
"required": ["weight"],
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
}
}
},
@@ -48,7 +53,7 @@
"description": "A series of filters and components to be added",
"title": "Sequences",
"type": "array",
"items": { "description": "UNDOCUMENTATED: sequence", "title": "Sequence", "type": "object", "$ref": "#/definitions/event_base" }
"items": { "description": "Filters and components to be added", "title": "Sequence", "type": "object", "$ref": "#/definitions/event_base" }
},
"trigger": { "type": "string", "description": "The event to run", "title": "Trigger" }
}

View File

@@ -38,7 +38,7 @@
"description": "If true, visbility between this entity and the mob type will not be checked.",
"title": "Ignore Visibility"
},
"entity_types": { "$ref": "../types/entity_types.json", "description": "UNDOCUMENTATED: entity types", "title": "Entity Types" },
"entity_types": { "$ref": "../types/entity_types.json", "description": "UNDOCUMENTED: entity types", "title": "Entity Types" },
"avoid_mob_sound": {
"title": "Avoid Mob Sound",
"description": "UNDOCUMENTED",

View File

@@ -10,7 +10,7 @@
"items": {
"type": "array",
"description": "List of items that this mob likes",
"items": { "type": "string", "description": "UNDOCUMENTATED: properties", "title": "Properties" },
"items": { "type": "string", "description": "UNDOCUMENTED: properties", "title": "Properties" },
"title": "Properties"
},
"look_distance": { "type": "number", "default": 8, "description": "Distance in blocks the mob will beg from", "title": "Look Distance" },

View File

@@ -8,7 +8,7 @@
"properties": {
"priority": { "$ref": "./types/priority.json" },
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"speed_modifier": { "default": 0.0, "description": "UNDOCUMENTATED: speed modifier", "title": "Speed Modifier" },
"speed_modifier": { "default": 0.0, "description": "UNDOCUMENTED: speed modifier", "title": "Speed Modifier" },
"potions": {
"type": "array",
"description": "A list of potions that this entity can drink.",
@@ -31,7 +31,7 @@
"$ref": "../../filters/filters.json"
}
},
"description": "UNDOCUMENTATED: potions",
"description": "UNDOCUMENTED: potions",
"title": "Potions"
},
"title": "Potions"

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"priority": { "$ref": "./types/priority.json" },
"entity_types": { "$ref": "../types/entity_types.json", "description": "UNDOCUMENTATED: entity types", "title": "Entity Types" },
"entity_types": { "$ref": "../types/entity_types.json", "description": "UNDOCUMENTED: entity types", "title": "Entity Types" },
"alert_same_type": {
"type": "boolean",
"default": false,

View File

@@ -3,7 +3,7 @@
"type": "object",
"title": "Move Towards Dwelling Restriction 1.8.0",
"additionalProperties": false,
"description": "UNDOCUMENTATED, comes from cat",
"description": "UNDOCUMENTED, comes from cat",
"required": [],
"properties": { "priority": { "$ref": "types/priority.json" }, "speed_multiplier": { "$ref": "types/speed_multiplier.json" } }
}

View File

@@ -10,8 +10,8 @@
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"control_flags": {
"type": "array",
"items": { "type": "string", "enum": ["move", "look"], "description": "UNDOCUMENTATED: control flags", "title": "Control Flags" },
"description": "UNDOCUMENTATED: control flags",
"items": { "type": "string", "enum": ["move", "look"], "description": "UNDOCUMENTED: control flags", "title": "Control Flags" },
"description": "UNDOCUMENTED: control flags",
"title": "Control Flags"
}
}

View File

@@ -4,6 +4,6 @@
"title": "Attack Damage 1.8.0",
"additionalProperties": false,
"required": ["value"],
"properties": { "value": { "type": "number", "description": "UNDOCUMENTATED: value", "title": "Value" } },
"description": "UNDOCUMENTATED: "
"properties": { "value": { "type": "number", "description": "UNDOCUMENTED: value", "title": "Value" } },
"description": "UNDOCUMENTED: "
}

View File

@@ -4,6 +4,6 @@
"type": "object",
"title": "Balloonable 1.8.0",
"required": [],
"properties": { "mass": { "type": "number", "description": "UNDOCUMENTATED: mass", "title": "Mass" } },
"description": "UNDOCUMENTATED: "
"properties": { "mass": { "type": "number", "description": "UNDOCUMENTED: mass", "title": "Mass" } },
"description": "UNDOCUMENTED: "
}

View File

@@ -6,5 +6,5 @@
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"required": [],
"properties": { "value": { "type": "number", "default": 1, "description": "UNDOCUMENTATED: value", "title": "Value" } }
"properties": { "value": { "type": "number", "default": 1, "description": "UNDOCUMENTED: value", "title": "Value" } }
}

View File

@@ -8,5 +8,5 @@
"value": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Value" },
"max": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Max" }
},
"description": "UNDOCUMENTATED: "
"description": "UNDOCUMENTED: "
}

View File

@@ -44,8 +44,13 @@
"type": "object",
"additionalProperties": false,
"properties": {
"weight": { "type": "integer", "description": "UNDOCUMENTATED: weight", "title": "Weight" },
"value": { "type": "integer", "description": "UNDOCUMENTATED: value", "title": "Value" }
"weight": {
"type": "integer",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
},
"value": { "type": "integer", "description": "UNDOCUMENTED: value", "title": "Value" }
}
}
}

View File

@@ -14,7 +14,7 @@
"title": "Component Groups",
"description": "The components groups to add or remove",
"type": "array",
"items": { "type": "string", "description": "UNDOCUMENTATED: component groups", "title": "Component Groups" }
"items": { "type": "string", "description": "UNDOCUMENTED: component groups", "title": "Component Groups" }
}
}
},
@@ -26,24 +26,29 @@
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"randomize": {
"type": "array",
"title": "Randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"items": {
"required": ["weight"],
"title": "Randomize",
"description": "Randomly selects one of the following items based upon their weight and the total weights",
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
},
"description": "UNDOCUMENTATED: randomize",
"title": "Randomize"
},
"description": "UNDOCUMENTATED: randomize",
"title": "Randomize"
"trigger": { "type": "string", "description": "Triggers additional events", "$comment": "UNDOCUMENTED", "title": "Trigger" },
"weight": {
"type": "number",
"description": "The weight on how likely this section is to trigger",
"$comment": "UNDOCUMENTED",
"title": "Weight"
}
}
}
},
"sequence": {
"type": "array",
"items": {
"description": "UNDOCUMENTATED: sequence",
"description": "Filters and components to be added",
"title": "Sequence",
"type": "object",
"properties": {

View File

@@ -2,7 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.filters.is_game_rule",
"type": "object",
"title": "Is Game Rule",
"description": "UNDOCUMENTATED:",
"description": "UNDOCUMENTED:",
"required": ["domain"],
"properties": {
"domain": { "description": "The Game Rule to test.", "title": "Domain" },