Updated filter reference

This commit is contained in:
DaanV2
2021-06-03 14:02:28 +02:00
parent f7d88464d1
commit 8481a485ba
74 changed files with 131 additions and 84 deletions

View File

@@ -27,7 +27,7 @@
},
"filters": {
"description": "The filters to use when determining if this potion can be selected.",
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"title": "Filters"
}
},

View File

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

View File

@@ -21,7 +21,7 @@
"default": true,
"description": "If true, the mob will do the casting animations and render spell particles"
},
"filters": { "$ref": "../filters.json" },
"filters": { "$ref": "../../filters/filters.json" },
"max_activation_range": {
"type": "number",
"default": -1,

View File

@@ -13,7 +13,7 @@
"title": "Broadcast Anger"
},
"broadcast_filters": {
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"description": "Conditions that make this entry in the list valid",
"title": "Broadcast Filters"
},

View File

@@ -17,7 +17,7 @@
"description": "How close a hostile entity must be to have the damage applied.",
"title": "Damage Range"
},
"entity_filter": { "$ref": "../filters.json", "description": "Entity_filter", "title": "Filter" },
"entity_filter": { "$ref": "../../filters/filters.json", "description": "Entity_filter", "title": "Filter" },
"cause": { "type": "string", "description": "TODO", "title": "Cause", "$ref": "../../../../general/entity/damage_source.json" }
}
}

View File

@@ -117,7 +117,11 @@
"default": true,
"title": "Inherit Tamed"
},
"love_filters": { "$ref": "../filters.json", "description": "The filters to run when attempting to fall in love.", "title": "Love Filters" },
"love_filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to run when attempting to fall in love.",
"title": "Love Filters"
},
"mutation_factor": {
"type": "object",
"description": "Determines how likely the babies are to NOT inherit one of their parent's variances. Values are between 0.0 and 1.0, with a higher number meaning more likely to mutate.",

View File

@@ -12,7 +12,7 @@
"title": "Broadcast"
},
"celeberation_targets": {
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"description": "The list of conditions that target of hunt must satisfy to initiate celebration.",
"title": "Celeberation Targets"
},

View File

@@ -33,7 +33,7 @@
"title": "Conditional Values",
"description": "Conditions that must be met for these optimization values to be used.",
"type": "array",
"items": { "$ref": "../filters.json" }
"items": { "$ref": "../../filters/filters.json" }
}
}
}

View File

@@ -26,7 +26,7 @@
"additionalProperties": false,
"type": "object",
"properties": {
"filters": { "$ref": "../filters.json" },
"filters": { "$ref": "../../filters/filters.json" },
"event": { "type": "string", "pattern": "^.*$", "description": "TODO description: event", "title": "Event" },
"target": { "$ref": "../filters/types/base_subject.json", "description": "TODO description: target", "title": "Target" }
},

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"filters": {
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied before the Actor is despawned",
"title": "Filters"
},

View File

@@ -35,7 +35,7 @@
"description": "The maximum distance another entity can be from this and have the filters checked against it.",
"title": "Sensor Range"
},
"event_filters": { "$ref": "../filters.json" },
"event_filters": { "$ref": "../../filters/filters.json" },
"event": { "title": "Event", "description": "event", "type": "string" }
}
}

View File

@@ -10,7 +10,7 @@
"description": "TODO description: on environement",
"title": "On Environement",
"properties": {
"filters": { "$ref": "../filters.json", "description": "The filters to evualate for this environment sensor", "title": "Filters" },
"filters": { "$ref": "../../filters/filters.json", "description": "The filters to evualate for this environment sensor", "title": "Filters" },
"event": { "type": "string", "pattern": "^.+$", "description": "The event to trigger if the filters are true", "title": "Event" },
"target": { "description": "The target of the event", "$ref": "../filters/types/base_subject.json" }
}

View File

@@ -6,7 +6,7 @@
"additionalProperties": false,
"properties": {
"filters": {
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied for other entities to be counted towards group size.",
"title": "Filters"
},

View File

@@ -6,7 +6,11 @@
"additionalProperties": false,
"required": [],
"properties": {
"filters": { "$ref": "../filters.json", "description": "The filter group that defines the conditions for this trigger", "title": "Filters" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filter group that defines the conditions for this trigger",
"title": "Filters"
},
"force_use": {
"type": "boolean",
"default": false,
@@ -20,7 +24,7 @@
"type": "object",
"properties": {
"filters": {
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"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" },

View File

@@ -15,7 +15,7 @@
"description": "TODO",
"additionalProperties": false,
"properties": {
"filters": { "$ref": "../filters.json" },
"filters": { "$ref": "../../filters/filters.json" },
"cause": { "type": "string", "title": "Cause", "description": "Damage cause", "$ref": "../../../../general/entity/damage_source.json" },
"damage_per_tick": { "type": "integer", "title": "Damage Per Tick", "description": "TODO" }
}

View File

@@ -6,7 +6,7 @@
"additionalProperties": false,
"required": [],
"properties": {
"filters": { "$ref": "../filters.json", "description": "Defines the entities that can trigger this component", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "Defines the entities that can trigger this component", "title": "TODO Title" },
"look_cooldown": {
"$ref": "../types/range_number_type.json",
"default": [0.0, 0.0],

View File

@@ -18,6 +18,6 @@
"description": "The mob effect that is applied to entities that enter this entities effect range.",
"title": "Mob Effect"
},
"entity_filter": { "$ref": "../filters.json", "title": "Entity Filter", "description": "TODO" }
"entity_filter": { "$ref": "../../filters/filters.json", "title": "Entity Filter", "description": "TODO" }
}
}

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -7,7 +7,7 @@
"required": [],
"properties": {
"event": { "type": "string", "description": "The event to run when the conditions for this trigger are met", "title": "TODO Title" },
"filters": { "$ref": "../filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"filters": { "$ref": "../../filters/filters.json", "description": "The list of conditions for this trigger", "title": "TODO Title" },
"target": {
"type": "string",
"$ref": "../filters/types/base_subject.json",

View File

@@ -15,7 +15,11 @@
"title": "TODO Title"
},
"destroyOnHurt": { "type": "boolean", "default": false, "description": "If true, this entity will be destroyed when hit", "title": "TODO Title" },
"filter": { "$ref": "../filters.json", "description": "Entity Definitions defined here can't be hurt by the projectile", "title": "TODO Title" },
"filter": {
"$ref": "../../filters/filters.json",
"description": "Entity Definitions defined here can't be hurt by the projectile",
"title": "TODO Title"
},
"fireAffectedByGriefing": {
"type": "boolean",
"default": false,

View File

@@ -51,7 +51,7 @@
},
"filters": {
"description": "If present, the specified entity will only spawn if the filter evaluates to true",
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"title": "TODO Title"
},
"single_use": {

View File

@@ -13,7 +13,7 @@
"title": "Block Type"
},
"spawn_filter": {
"$ref": "../filters.json",
"$ref": "../../filters/filters.json",
"description": "One or more conditions that must be met in order to cause the chosen block type to spawn.",
"title": "Spawn Filter"
},

View File

@@ -49,13 +49,13 @@
"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" },
"filters": { "$ref": "./filters.json" }
"filters": { "$ref": "./../filters/filters.json" }
}
},
"description": "A series of filters and components to be added",
"title": "Sequences"
},
"filters": { "$ref": "./filters.json" },
"filters": { "$ref": "./../filters/filters.json" },
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "UNDOCUMENTATED" }
}
}

View File

@@ -7,7 +7,7 @@
"title": "Entity Type",
"type": "object",
"properties": {
"filters": { "type": "object", "$ref": "../filters.json" },
"filters": { "type": "object", "$ref": "../../filters/filters.json" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",

View File

@@ -6,7 +6,11 @@
"minProperties": 1,
"properties": {
"event": { "type": "string", "description": "Event", "title": "Event To Fire" },
"filters": { "$ref": "../filters.json", "description": "The filters to check to determine if the event should be fired", "title": "TODO Title" },
"filters": {
"$ref": "../../filters/filters.json",
"description": "The filters to check to determine if the event should be fired",
"title": "TODO Title"
},
"target": { "$ref": "../filters/types/base_subject.json", "description": "The entity to target", "title": "Target" }
},
"additionalProperties": false