This commit is contained in:
DaanV2
2021-07-01 16:56:10 +02:00
parent 851c0a82fd
commit 66015d42a4
22 changed files with 32 additions and 48 deletions

View File

@@ -8,8 +8,7 @@
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "Filters"
"description": "The filters to check to determine if the event should be fired"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},

View File

@@ -8,8 +8,7 @@
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "Filters"
"description": "The filters to check to determine if the event should be fired"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},

View File

@@ -8,8 +8,7 @@
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "Filters"
"description": "The filters to check to determine if the event should be fired"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},

View File

@@ -12,9 +12,13 @@
"potions": {
"type": "array",
"description": "A list of potions that this entity can drink.",
"title": "Potions",
"items": {
"required": ["id", "chance", "filters"],
"additionalProperties": false,
"type": "object",
"description": "UNDOCUMENTATED: potions",
"title": "Potions",
"properties": {
"id": { "type": "integer", "default": -1, "description": "The registry ID of the potion to use", "title": "Id" },
"chance": {
@@ -27,14 +31,10 @@
},
"filters": {
"description": "The filters to use when determining if this potion can be selected.",
"$ref": "../../filters/filters.json",
"title": "Filters"
"$ref": "../../filters/filters.json"
}
},
"description": "UNDOCUMENTATED: potions",
"title": "Potions"
},
"title": "Potions"
}
}
}
}
}

View File

@@ -19,8 +19,7 @@
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "Filter out mob types that it should not attack while angry (other Piglins)",
"title": "Filters"
"description": "Filter out mob types that it should not attack while angry (other Piglins)"
},
"broadcast_range": {
"type": "integer",

View File

@@ -46,8 +46,7 @@
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored.",
"title": "Filters"
"description": "The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored."
},
"min_range_inactivity_timer": {
"type": "integer",

View File

@@ -7,8 +7,7 @@
"properties": {
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied for other entities to be counted towards group size.",
"title": "Filters"
"description": "The list of conditions that must be satisfied for other entities to be counted towards group size."
},
"radius": { "type": "number", "default": 16, "description": "Radius from center of entity.", "title": "Radius" }
}

View File

@@ -8,8 +8,7 @@
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "Filters"
"description": "The filters to check to determine if the event should be fired"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
}

View File

@@ -7,8 +7,7 @@
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "Filters"
"description": "The filters to check to determine if the event should be fired"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},

View File

@@ -15,6 +15,7 @@
"items": {
"required": ["id", "chance", "filters"],
"additionalProperties": false,
"type": "object",
"properties": {
"id": { "type": "integer", "default": -1, "description": "The registry ID of the potion to use", "title": "Id" },
"chance": {
@@ -27,8 +28,7 @@
},
"filters": {
"description": "The filters to use when determining if this potion can be selected.",
"$ref": "../../filters/filters.json",
"title": "Filters"
"$ref": "../../filters/filters.json"
}
},
"description": "UNDOCUMENTATED: potions",

View File

@@ -39,8 +39,7 @@
},
"filters": {
"description": "Filter to determine the conditions for this mob to look at the entity",
"$ref": "../../filters/filters.json",
"title": "Filters"
"$ref": "../../filters/filters.json"
}
}
}

View File

@@ -21,8 +21,7 @@
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "Filter out mob types that it should not attack while angry (other Piglins)",
"title": "Filters"
"description": "Filter out mob types that it should not attack while angry (other Piglins)"
},
"broadcast_range": {
"type": "integer",

View File

@@ -8,8 +8,7 @@
"properties": {
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored.",
"title": "Filters"
"description": "The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored."
},
"despawn_from_chance": {
"type": "boolean",

View File

@@ -7,8 +7,7 @@
"properties": {
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied for other entities to be counted towards group size.",
"title": "Filters"
"description": "The list of conditions that must be satisfied for other entities to be counted towards group size."
},
"radius": { "type": "number", "default": 16, "description": "Radius from center of entity.", "title": "Radius" }
}

View File

@@ -12,6 +12,6 @@
"description": "The maximum number in degrees the mob can turn per tick.",
"title": "Maximum Turn"
},
"sway_amplitude": { "type": "number", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO Title" }
"sway_amplitude": { "type": "number", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Sway Amplitude" }
}
}

View File

@@ -9,7 +9,7 @@
"name_actions": {
"type": "object",
"description": "Describes the special names for this entity and the events to call when the entity acquires those names",
"title": "TODO Title",
"title": "Name Actions",
"additionalProperties": false,
"properties": {
"on_named": {

View File

@@ -13,8 +13,7 @@
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions for this trigger to execute.",
"title": "Filters"
"description": "The list of conditions for this trigger to execute."
},
"target": {
"type": "string",

View File

@@ -13,8 +13,7 @@
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions for this trigger",
"title": "Filters"
"description": "The list of conditions for this trigger"
},
"target": {
"type": "string",

View File

@@ -6,14 +6,14 @@
"additionalProperties": false,
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "Event" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "Filters" },
"target": {
"type": "string",
"$ref": "../../filters/filters/types/subject.json",
"default": "self",
"description": "The target of the event",
"title": "TODO Title"
"title": "Target"
}
}
}

View File

@@ -52,8 +52,7 @@
},
"filters": {
"description": "If present, the specified entity will only spawn if the filter evaluates to true",
"$ref": "../../filters/filters.json",
"title": "Filters"
"$ref": "../../filters/filters.json"
},
"single_use": {
"type": "boolean",

View File

@@ -9,8 +9,7 @@
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "Filters"
"description": "The filters to check to determine if the event should be fired"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
}

View File

@@ -1,6 +1,7 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.filters",
"title": "Filters",
"$ref": "#/definitions/groups_spec",
"definitions": {
"filters_spec": {
"oneOf": [
@@ -124,6 +125,5 @@
{ "type": "object", "$ref": "#/definitions/filters_spec" }
]
}
},
"$ref": "#/definitions/groups_spec"
}
}