This commit is contained in:
DaanV2
2021-07-02 20:31:33 +02:00
parent e2fd979a91
commit 8692e0ff98
27 changed files with 27 additions and 814 deletions

View File

@@ -1,116 +0,0 @@
{
"$id": "blockception.minecraft.behavior.entities.1.10.0.minecraft.filters",
"title": "1.10.0",
"definitions": {
"filters_spec": {
"oneOf": [
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
"properties": {
"all_of": {
"title": "All Of",
"description": "All tests in an `all_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an `any_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a `none_of` group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
}
},
{
"required": ["test"],
"properties": {
"all_of": {
"title": "All Of",
"description": "All tests in an `all_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an `any_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a `none_of` group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
},
"allOf": [
{ "if": { "properties": { "test": { "const": "clock_time" } } }, "then": { "$ref": "../1.8.0/filters/clock_time.json" } },
{
"if": { "properties": { "test": { "const": "distance_to_nearest_player" } } },
"then": { "$ref": "../1.8.0/filters/distance_to_nearest_player.json" }
},
{ "if": { "properties": { "test": { "const": "has_ability" } } }, "then": { "$ref": "../1.8.0/filters/has_ability.json" } },
{ "if": { "properties": { "test": { "const": "has_biome_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_biome_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_component" } } }, "then": { "$ref": "../1.8.0/filters/has_component.json" } },
{ "if": { "properties": { "test": { "const": "has_damage" } } }, "then": { "$ref": "../1.8.0/filters/has_damage.json" } },
{ "if": { "properties": { "test": { "const": "has_equipment" } } }, "then": { "$ref": "../1.8.0/filters/has_equipment.json" } },
{ "if": { "properties": { "test": { "const": "has_mob_effect" } } }, "then": { "$ref": "../1.8.0/filters/has_mob_effect.json" } },
{ "if": { "properties": { "test": { "const": "has_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_trade_supply" } } }, "then": { "$ref": "../1.8.0/filters/has_trade_supply.json" } },
{ "if": { "properties": { "test": { "const": "hourly_clock_time" } } }, "then": { "$ref": "../1.8.0/filters/hourly_clock_time.json" } },
{ "if": { "properties": { "test": { "const": "in_caravan" } } }, "then": { "$ref": "../1.8.0/filters/in_caravan.json" } },
{ "if": { "properties": { "test": { "const": "in_clouds" } } }, "then": { "$ref": "../1.8.0/filters/in_clouds.json" } },
{ "if": { "properties": { "test": { "const": "in_lava" } } }, "then": { "$ref": "../1.8.0/filters/in_lava.json" } },
{ "if": { "properties": { "test": { "const": "in_water" } } }, "then": { "$ref": "../1.8.0/filters/in_water.json" } },
{ "if": { "properties": { "test": { "const": "in_water_or_rain" } } }, "then": { "$ref": "../1.8.0/filters/in_water_or_rain.json" } },
{ "if": { "properties": { "test": { "const": "is_altitude" } } }, "then": { "$ref": "../1.8.0/filters/is_altitude.json" } },
{ "if": { "properties": { "test": { "const": "is_avoiding_mobs" } } }, "then": { "$ref": "../1.8.0/filters/is_avoiding_mobs.json" } },
{ "if": { "properties": { "test": { "const": "is_biome" } } }, "then": { "$ref": "../1.8.0/filters/is_biome.json" } },
{ "if": { "properties": { "test": { "const": "is_brightness" } } }, "then": { "$ref": "../1.8.0/filters/is_brightness.json" } },
{ "if": { "properties": { "test": { "const": "is_climbing" } } }, "then": { "$ref": "../1.8.0/filters/is_climbing.json" } },
{ "if": { "properties": { "test": { "const": "is_color" } } }, "then": { "$ref": "../1.8.0/filters/is_color.json" } },
{ "if": { "properties": { "test": { "const": "is_daytime" } } }, "then": { "$ref": "../1.8.0/filters/is_daytime.json" } },
{ "if": { "properties": { "test": { "const": "is_difficulty" } } }, "then": { "$ref": "../1.8.0/filters/is_difficulty.json" } },
{ "if": { "properties": { "test": { "const": "is_family" } } }, "then": { "$ref": "../1.8.0/filters/is_family.json" } },
{ "if": { "properties": { "test": { "const": "is_game_rule" } } }, "then": { "$ref": "../1.8.0/filters/is_game_rule.json" } },
{ "if": { "properties": { "test": { "const": "is_humid" } } }, "then": { "$ref": "../1.8.0/filters/is_humid.json" } },
{ "if": { "properties": { "test": { "const": "is_immobile" } } }, "then": { "$ref": "../1.8.0/filters/is_immobile.json" } },
{ "if": { "properties": { "test": { "const": "is_in_village" } } }, "then": { "$ref": "../1.8.0/filters/is_in_village.json" } },
{ "if": { "properties": { "test": { "const": "is_leashed" } } }, "then": { "$ref": "../1.8.0/filters/is_leashed.json" } },
{ "if": { "properties": { "test": { "const": "is_mark_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_mark_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_moving" } } }, "then": { "$ref": "../1.8.0/filters/is_moving.json" } },
{ "if": { "properties": { "test": { "const": "is_owner" } } }, "then": { "$ref": "../1.8.0/filters/is_owner.json" } },
{ "if": { "properties": { "test": { "const": "is_riding" } } }, "then": { "$ref": "../1.8.0/filters/is_riding.json" } },
{ "if": { "properties": { "test": { "const": "is_skin_id" } } }, "then": { "$ref": "../1.8.0/filters/is_skin_id.json" } },
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "../1.8.0/filters/is_sneaking.json" } },
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "../1.8.0/filters/is_snow_covered.json" } },
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "../1.8.0/filters/is_target.json" } },
{
"if": { "properties": { "test": { "const": "is_temperature_type" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_type.json" }
},
{
"if": { "properties": { "test": { "const": "is_temperature_value" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_value.json" }
},
{ "if": { "properties": { "test": { "const": "is_underground" } } }, "then": { "$ref": "../1.8.0/filters/is_underground.json" } },
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "../1.8.0/filters/is_underwater.json" } },
{ "if": { "properties": { "test": { "const": "is_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_visible" } } }, "then": { "$ref": "../1.8.0/filters/is_visible.json" } },
{ "if": { "properties": { "test": { "const": "moon_intensity" } } }, "then": { "$ref": "../1.8.0/filters/moon_intensity.json" } },
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "../1.8.0/filters/moon_phase.json" } },
{ "if": { "properties": { "test": { "const": "on_ground" } } }, "then": { "$ref": "../1.8.0/filters/on_ground.json" } },
{ "if": { "properties": { "test": { "const": "on_ladder" } } }, "then": { "$ref": "../1.8.0/filters/on_ladder.json" } }
]
}
]
},
"groups_spec": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/groups_spec" } },
{ "type": "object", "$ref": "#/definitions/filters_spec" }
]
}
},
"$ref": "#/definitions/groups_spec"
}

View File

@@ -1,46 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.entity_types.1.10.0",
"title": "Entity Types 1.10.0",
"definitions": {
"entity_definition": {
"description": "The entity type",
"title": "Entity Type",
"type": "object",
"additionalProperties": false,
"properties": {
"filters": { "type": "object", "$ref": "../../filters/filters.json" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",
"default": 16,
"title": "Maximum Dist"
},
"walk_speed_multiplier": {
"type": "number",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Walk Speed Multiplier"
},
"sprint_speed_multiplier": {
"type": "number",
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Sprint Speed Multiplier"
},
"must_see": {
"type": "boolean",
"description": "If true, the mob has to be visible to be a valid choice",
"default": false,
"title": "Must See"
},
"must_see_forget_duration": {
"type": "number",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"default": 3,
"title": "Must See Forget Duration"
}
}
}
},
"oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/entity_definition" } }, { "$ref": "#/definitions/entity_definition" }]
}
{ "$ref": "../../1.8.0/entity_types.json" }

View File

@@ -1,19 +1 @@
{
"$id": "blockception.minecraft.entities.1.10.0.event",
"title": "Event",
"description": "Minecraft behavior event 1.10.0",
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
{
"type": "object",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": {
"type": "string",
"description": "The target of the event",
"enum": ["block", "damager", "other", "parent", "player", "self", "target"]
}
}
}
]
}
{ "$ref": "../../1.8.0/event.json" }

View File

@@ -1,9 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.range_number_type.1.10.0",
"title": "Range [a, B]",
"description": "A described range",
"items": [
{ "type": "number", "title": "Range: A", "description": "The first value of the range" },
{ "type": "number", "title": "Range: B", "description": "The second value of the range" }
]
}
{ "$ref": "../../1.8.0/range_number_type.json" }

View File

@@ -1,16 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.trigger.1.10.0",
"title": "Trigger 1.10.0",
"type": "object",
"description": "Trigger to fire",
"minProperties": 1,
"properties": {
"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"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},
"additionalProperties": false
}
{ "$ref": "../../1.8.0/trigger.json" }

View File

@@ -1,43 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.entity_types.1.12.0",
"title": "Entity Types 1.12.0",
"type": "array",
"items": {
"description": "The entity type",
"title": "Entity Type",
"type": "object",
"properties": {
"filters": { "type": "object", "$ref": "../../filters/filters.json" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",
"default": 16,
"title": "Maximum Dist"
},
"walk_speed_multiplier": {
"type": "number",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Walk Speed Multiplier"
},
"sprint_speed_multiplier": {
"type": "number",
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Sprint Speed Multiplier"
},
"must_see": {
"type": "boolean",
"description": "If true, the mob has to be visible to be a valid choice",
"default": false,
"title": "Must See"
},
"must_see_forget_duration": {
"type": "number",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"default": 3,
"title": "Must See Forget Duration"
}
}
}
}
{ "$ref": "../../1.8.0/entity_types.json" }

View File

@@ -1,19 +1 @@
{
"$id": "blockception.minecraft.entities.1.12.0.event",
"title": "Event",
"description": "Minecraft behavior event 1.12.0",
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire" },
{
"type": "object",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": {
"type": "string",
"description": "The target of the event",
"enum": ["block", "damager", "other", "parent", "player", "self", "target"]
}
}
}
]
}
{ "$ref": "../../1.8.0/event.json" }

View File

@@ -1,9 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.range_number_type.1.12.0",
"title": "Range [a, B]",
"description": "A described range",
"items": [
{ "type": "number", "title": "Range: A", "description": "The first value of the range" },
{ "type": "number", "title": "Range: B", "description": "The second value of the range" }
]
}
{ "$ref": "../../1.8.0/range_number_type.json" }

View File

@@ -1,16 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.trigger.1.12.0",
"title": "Trigger1.12.0",
"type": "object",
"description": "Trigger to fire",
"minProperties": 1,
"properties": {
"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"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},
"additionalProperties": false
}
{ "$ref": "../../1.8.0/trigger.json" }

View File

@@ -1,133 +0,0 @@
{
"$id": "blockception.minecraft.behavior.entities.1.13.0.minecraft.filters",
"title": "1.13.0",
"definitions": {
"filters_spec": {
"oneOf": [
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
"properties": {
"all_of": {
"title": "All Of",
"description": "All tests in an `all_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an `any_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a `none_of` group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
}
},
{
"required": ["test"],
"properties": {
"all_of": {
"title": "All Of",
"description": "All tests in an `all_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an `any_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a `none_of` group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
},
"allOf": [
{ "if": { "properties": { "test": { "const": "clock_time" } } }, "then": { "$ref": "../1.8.0/filters/clock_time.json" } },
{
"if": { "properties": { "test": { "const": "distance_to_nearest_player" } } },
"then": { "$ref": "../1.8.0/filters/distance_to_nearest_player.json" }
},
{ "if": { "properties": { "test": { "const": "has_ability" } } }, "then": { "$ref": "../1.8.0/filters/has_ability.json" } },
{ "if": { "properties": { "test": { "const": "has_biome_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_biome_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_component" } } }, "then": { "$ref": "../1.8.0/filters/has_component.json" } },
{ "if": { "properties": { "test": { "const": "has_container_open" } } }, "then": { "$ref": "./filters/has_container_open.json" } },
{ "if": { "properties": { "test": { "const": "has_damage" } } }, "then": { "$ref": "../1.8.0/filters/has_damage.json" } },
{ "if": { "properties": { "test": { "const": "has_equipment" } } }, "then": { "$ref": "../1.8.0/filters/has_equipment.json" } },
{ "if": { "properties": { "test": { "const": "has_mob_effect" } } }, "then": { "$ref": "../1.8.0/filters/has_mob_effect.json" } },
{ "if": { "properties": { "test": { "const": "has_ranged_weapon" } } }, "then": { "$ref": "./filters/has_ranged_weapon.json" } },
{ "if": { "properties": { "test": { "const": "has_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_target" } } }, "then": { "$ref": "./filters/has_target.json" } },
{ "if": { "properties": { "test": { "const": "has_trade_supply" } } }, "then": { "$ref": "../1.8.0/filters/has_trade_supply.json" } },
{ "if": { "properties": { "test": { "const": "hourly_clock_time" } } }, "then": { "$ref": "../1.8.0/filters/hourly_clock_time.json" } },
{ "if": { "properties": { "test": { "const": "in_caravan" } } }, "then": { "$ref": "../1.8.0/filters/in_caravan.json" } },
{ "if": { "properties": { "test": { "const": "in_clouds" } } }, "then": { "$ref": "../1.8.0/filters/in_clouds.json" } },
{ "if": { "properties": { "test": { "const": "in_lava" } } }, "then": { "$ref": "../1.8.0/filters/in_lava.json" } },
{ "if": { "properties": { "test": { "const": "in_nether" } } }, "then": { "$ref": "./filters/in_nether.json" } },
{ "if": { "properties": { "test": { "const": "in_water" } } }, "then": { "$ref": "../1.8.0/filters/in_water.json" } },
{ "if": { "properties": { "test": { "const": "in_water_or_rain" } } }, "then": { "$ref": "../1.8.0/filters/in_water_or_rain.json" } },
{ "if": { "properties": { "test": { "const": "inactivity_timer" } } }, "then": { "$ref": "./filters/inactivity_timer.json" } },
{ "if": { "properties": { "test": { "const": "is_altitude" } } }, "then": { "$ref": "../1.8.0/filters/is_altitude.json" } },
{ "if": { "properties": { "test": { "const": "is_avoiding_mobs" } } }, "then": { "$ref": "../1.8.0/filters/is_avoiding_mobs.json" } },
{ "if": { "properties": { "test": { "const": "is_biome" } } }, "then": { "$ref": "../1.8.0/filters/is_biome.json" } },
{ "if": { "properties": { "test": { "const": "is_block" } } }, "then": { "$ref": "./filters/is_block.json" } },
{ "if": { "properties": { "test": { "const": "is_brightness" } } }, "then": { "$ref": "../1.8.0/filters/is_brightness.json" } },
{ "if": { "properties": { "test": { "const": "is_climbing" } } }, "then": { "$ref": "../1.8.0/filters/is_climbing.json" } },
{ "if": { "properties": { "test": { "const": "is_color" } } }, "then": { "$ref": "../1.8.0/filters/is_color.json" } },
{ "if": { "properties": { "test": { "const": "is_daytime" } } }, "then": { "$ref": "../1.8.0/filters/is_daytime.json" } },
{ "if": { "properties": { "test": { "const": "is_difficulty" } } }, "then": { "$ref": "../1.8.0/filters/is_difficulty.json" } },
{ "if": { "properties": { "test": { "const": "is_family" } } }, "then": { "$ref": "../1.8.0/filters/is_family.json" } },
{ "if": { "properties": { "test": { "const": "is_game_rule" } } }, "then": { "$ref": "../1.8.0/filters/is_game_rule.json" } },
{ "if": { "properties": { "test": { "const": "is_humid" } } }, "then": { "$ref": "../1.8.0/filters/is_humid.json" } },
{ "if": { "properties": { "test": { "const": "is_immobile" } } }, "then": { "$ref": "../1.8.0/filters/is_immobile.json" } },
{ "if": { "properties": { "test": { "const": "is_in_village" } } }, "then": { "$ref": "../1.8.0/filters/is_in_village.json" } },
{ "if": { "properties": { "test": { "const": "is_leashed" } } }, "then": { "$ref": "../1.8.0/filters/is_leashed.json" } },
{ "if": { "properties": { "test": { "const": "is_leashed_to" } } }, "then": { "$ref": "./filters/is_leashed_to.json" } },
{ "if": { "properties": { "test": { "const": "is_mark_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_mark_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_moving" } } }, "then": { "$ref": "../1.8.0/filters/is_moving.json" } },
{ "if": { "properties": { "test": { "const": "is_owner" } } }, "then": { "$ref": "../1.8.0/filters/is_owner.json" } },
{ "if": { "properties": { "test": { "const": "is_persistent" } } }, "then": { "$ref": "./filters/is_persistent.json" } },
{ "if": { "properties": { "test": { "const": "is_riding" } } }, "then": { "$ref": "../1.8.0/filters/is_riding.json" } },
{ "if": { "properties": { "test": { "const": "is_skin_id" } } }, "then": { "$ref": "../1.8.0/filters/is_skin_id.json" } },
{ "if": { "properties": { "test": { "const": "is_sleeping" } } }, "then": { "$ref": "./filters/is_sleeping.json" } },
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "../1.8.0/filters/is_sneaking.json" } },
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "../1.8.0/filters/is_snow_covered.json" } },
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "../1.8.0/filters/is_target.json" } },
{
"if": { "properties": { "test": { "const": "is_temperature_type" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_type.json" }
},
{
"if": { "properties": { "test": { "const": "is_temperature_value" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_value.json" }
},
{ "if": { "properties": { "test": { "const": "is_underground" } } }, "then": { "$ref": "../1.8.0/filters/is_underground.json" } },
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "../1.8.0/filters/is_underwater.json" } },
{ "if": { "properties": { "test": { "const": "is_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_visible" } } }, "then": { "$ref": "../1.8.0/filters/is_visible.json" } },
{ "not": { "properties": { "test": { "const": "is_weather" } }, "$comment": "DEPRECATED" } },
{ "if": { "properties": { "test": { "const": "light_level" } } }, "then": { "$ref": "./filters/light_level.json" } },
{ "if": { "properties": { "test": { "const": "moon_intensity" } } }, "then": { "$ref": "../1.8.0/filters/moon_intensity.json" } },
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "../1.8.0/filters/moon_phase.json" } },
{ "if": { "properties": { "test": { "const": "on_ground" } } }, "then": { "$ref": "../1.8.0/filters/on_ground.json" } },
{ "if": { "properties": { "test": { "const": "on_ladder" } } }, "then": { "$ref": "../1.8.0/filters/on_ladder.json" } },
{ "if": { "properties": { "test": { "const": "random_chance" } } }, "then": { "$ref": "./filters/random_chance.json" } },
{ "if": { "properties": { "test": { "const": "rider_count" } } }, "then": { "$ref": "./filters/rider_count.json" } },
{ "if": { "properties": { "test": { "const": "surface_mob" } } }, "then": { "$ref": "./filters/surface_mob.json" } },
{ "if": { "properties": { "test": { "const": "trusts" } } }, "then": { "$ref": "./filters/trusts.json" } },
{ "if": { "properties": { "test": { "const": "weather" } } }, "then": { "$ref": "./filters/weather.json" } },
{ "if": { "properties": { "test": { "const": "weather_at_position" } } }, "then": { "$ref": "./filters/weather_at_position.json" } }
]
}
]
},
"groups_spec": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/groups_spec" } },
{ "type": "object", "$ref": "#/definitions/filters_spec" }
]
}
},
"$ref": "#/definitions/groups_spec"
}

View File

@@ -1,43 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.entity_types.1.13.0",
"title": "Entity Types 1.13.0",
"type": "array",
"items": {
"description": "The entity type",
"title": "Entity Type",
"type": "object",
"properties": {
"filters": { "type": "object", "$ref": "../../filters/filters.json" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",
"default": 16,
"title": "Maximum Dist"
},
"walk_speed_multiplier": {
"type": "number",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Walk Speed Multiplier"
},
"sprint_speed_multiplier": {
"type": "number",
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Sprint Speed Multiplier"
},
"must_see": {
"type": "boolean",
"description": "If true, the mob has to be visible to be a valid choice",
"default": false,
"title": "Must See"
},
"must_see_forget_duration": {
"type": "number",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"default": 3,
"title": "Must See Forget Duration"
}
}
}
}
{ "$ref": "../../1.8.0/entity_types.json" }

View File

@@ -1,19 +1 @@
{
"$id": "blockception.minecraft.entities.1.13.0.event",
"title": "Event",
"description": "Minecraft behavior event 1.13.0",
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire" },
{
"type": "object",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": {
"type": "string",
"description": "The target of the event",
"enum": ["block", "damager", "other", "parent", "player", "self", "target", "baby"]
}
}
}
]
}
{ "$ref": "../../1.8.0/event.json" }

View File

@@ -1,9 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.range_number_type.1.13.0",
"title": "Range [a, B]",
"description": "A described range",
"items": [
{ "type": "number", "title": "Range: A", "description": "The first value of the range" },
{ "type": "number", "title": "Range: B", "description": "The second value of the range" }
]
}
{ "$ref": "../../1.8.0/range_number_type.json" }

View File

@@ -1,16 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.trigger.1.13.0",
"title": "Trigger 1.13.0",
"type": "object",
"description": "Trigger to fire",
"minProperties": 1,
"properties": {
"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"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},
"additionalProperties": false
}
{ "$ref": "../../1.8.0/trigger.json" }

View File

@@ -1,123 +0,0 @@
{
"$id": "blockception.minecraft.behavior.entities.1.14.0.minecraft.filters",
"title": "1.14.0",
"definitions": {
"filters_spec": {
"oneOf": [
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
"properties": {
"all_of": {
"title": "All Of",
"description": "All tests in an `all_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an `any_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a `none_of` group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
}
},
{
"required": ["test"],
"properties": {
"all_of": {
"title": "All Of",
"description": "All tests in an `all_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an `any_of` group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a `none_of` group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
},
"allOf": [
{ "if": { "properties": { "test": { "const": "clock_time" } } }, "then": { "$ref": "../1.8.0/filters/clock_time.json" } },
{
"if": { "properties": { "test": { "const": "distance_to_nearest_player" } } },
"then": { "$ref": "../1.8.0/filters/distance_to_nearest_player.json" }
},
{ "if": { "properties": { "test": { "const": "has_ability" } } }, "then": { "$ref": "../1.8.0/filters/has_ability.json" } },
{ "if": { "properties": { "test": { "const": "has_biome_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_biome_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_component" } } }, "then": { "$ref": "../1.8.0/filters/has_component.json" } },
{ "if": { "properties": { "test": { "const": "has_damage" } } }, "then": { "$ref": "../1.8.0/filters/has_damage.json" } },
{ "if": { "properties": { "test": { "const": "has_equipment" } } }, "then": { "$ref": "../1.8.0/filters/has_equipment.json" } },
{ "if": { "properties": { "test": { "const": "has_mob_effect" } } }, "then": { "$ref": "../1.8.0/filters/has_mob_effect.json" } },
{ "if": { "properties": { "test": { "const": "has_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_trade_supply" } } }, "then": { "$ref": "../1.8.0/filters/has_trade_supply.json" } },
{ "if": { "properties": { "test": { "const": "hourly_clock_time" } } }, "then": { "$ref": "../1.8.0/filters/hourly_clock_time.json" } },
{ "if": { "properties": { "test": { "const": "in_caravan" } } }, "then": { "$ref": "../1.8.0/filters/in_caravan.json" } },
{ "if": { "properties": { "test": { "const": "in_clouds" } } }, "then": { "$ref": "../1.8.0/filters/in_clouds.json" } },
{ "if": { "properties": { "test": { "const": "in_lava" } } }, "then": { "$ref": "../1.8.0/filters/in_lava.json" } },
{ "if": { "properties": { "test": { "const": "in_water" } } }, "then": { "$ref": "../1.8.0/filters/in_water.json" } },
{ "if": { "properties": { "test": { "const": "in_water_or_rain" } } }, "then": { "$ref": "../1.8.0/filters/in_water_or_rain.json" } },
{ "if": { "properties": { "test": { "const": "is_altitude" } } }, "then": { "$ref": "../1.8.0/filters/is_altitude.json" } },
{ "if": { "properties": { "test": { "const": "is_avoiding_mobs" } } }, "then": { "$ref": "../1.8.0/filters/is_avoiding_mobs.json" } },
{ "if": { "properties": { "test": { "const": "is_biome" } } }, "then": { "$ref": "../1.8.0/filters/is_biome.json" } },
{ "if": { "properties": { "test": { "const": "is_brightness" } } }, "then": { "$ref": "../1.8.0/filters/is_brightness.json" } },
{ "if": { "properties": { "test": { "const": "is_climbing" } } }, "then": { "$ref": "../1.8.0/filters/is_climbing.json" } },
{ "if": { "properties": { "test": { "const": "is_color" } } }, "then": { "$ref": "../1.8.0/filters/is_color.json" } },
{ "if": { "properties": { "test": { "const": "is_daytime" } } }, "then": { "$ref": "../1.8.0/filters/is_daytime.json" } },
{ "if": { "properties": { "test": { "const": "is_difficulty" } } }, "then": { "$ref": "../1.8.0/filters/is_difficulty.json" } },
{ "if": { "properties": { "test": { "const": "is_family" } } }, "then": { "$ref": "../1.8.0/filters/is_family.json" } },
{ "if": { "properties": { "test": { "const": "is_game_rule" } } }, "then": { "$ref": "../1.8.0/filters/is_game_rule.json" } },
{ "if": { "properties": { "test": { "const": "is_humid" } } }, "then": { "$ref": "../1.8.0/filters/is_humid.json" } },
{ "if": { "properties": { "test": { "const": "is_immobile" } } }, "then": { "$ref": "../1.8.0/filters/is_immobile.json" } },
{ "if": { "properties": { "test": { "const": "is_in_village" } } }, "then": { "$ref": "../1.8.0/filters/is_in_village.json" } },
{ "if": { "properties": { "test": { "const": "is_leashed" } } }, "then": { "$ref": "../1.8.0/filters/is_leashed.json" } },
{ "if": { "properties": { "test": { "const": "is_mark_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_mark_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_moving" } } }, "then": { "$ref": "../1.8.0/filters/is_moving.json" } },
{ "if": { "properties": { "test": { "const": "is_owner" } } }, "then": { "$ref": "../1.8.0/filters/is_owner.json" } },
{ "if": { "properties": { "test": { "const": "is_riding" } } }, "then": { "$ref": "../1.8.0/filters/is_riding.json" } },
{ "if": { "properties": { "test": { "const": "is_skin_id" } } }, "then": { "$ref": "../1.8.0/filters/is_skin_id.json" } },
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "../1.8.0/filters/is_sneaking.json" } },
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "../1.8.0/filters/is_snow_covered.json" } },
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "../1.8.0/filters/is_target.json" } },
{
"if": { "properties": { "test": { "const": "is_temperature_type" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_type.json" }
},
{
"if": { "properties": { "test": { "const": "is_temperature_value" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_value.json" }
},
{ "if": { "properties": { "test": { "const": "is_underground" } } }, "then": { "$ref": "../1.8.0/filters/is_underground.json" } },
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "../1.8.0/filters/is_underwater.json" } },
{ "if": { "properties": { "test": { "const": "is_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_visible" } } }, "then": { "$ref": "../1.8.0/filters/is_visible.json" } },
{ "if": { "properties": { "test": { "const": "moon_intensity" } } }, "then": { "$ref": "../1.8.0/filters/moon_intensity.json" } },
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "../1.8.0/filters/moon_phase.json" } },
{ "if": { "properties": { "test": { "const": "on_ground" } } }, "then": { "$ref": "../1.8.0/filters/on_ground.json" } },
{ "if": { "properties": { "test": { "const": "on_ladder" } } }, "then": { "$ref": "../1.8.0/filters/on_ladder.json" } },
{ "if": { "properties": { "test": { "const": "has_target" } } }, "then": { "$ref": "../1.13.0/filters/has_target.json" } },
{ "if": { "properties": { "test": { "const": "is_block" } } }, "then": { "$ref": "../1.13.0/filters/is_block.json" } },
{ "if": { "properties": { "test": { "const": "is_leashed_to" } } }, "then": { "$ref": "../1.13.0/filters/is_leashed_to.json" } },
{ "if": { "properties": { "test": { "const": "is_sleeping" } } }, "then": { "$ref": "../1.13.0/filters/is_sleeping.json" } },
{ "not": { "properties": { "test": { "const": "is_weather" } }, "$comment": "DEPRECATED" } },
{ "if": { "properties": { "test": { "const": "rider_count" } } }, "then": { "$ref": "../1.13.0/filters/rider_count.json" } },
{ "if": { "properties": { "test": { "const": "trusts" } } }, "then": { "$ref": "../1.13.0/filters/trusts.json" } }
]
}
]
},
"groups_spec": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/groups_spec" } },
{ "type": "object", "$ref": "#/definitions/filters_spec" }
]
}
},
"$ref": "#/definitions/groups_spec"
}

View File

@@ -1,43 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.entity_types.1.16.0",
"title": "Entity Types 1.16.0",
"type": "array",
"items": {
"description": "The entity type",
"title": "Entity Type",
"type": "object",
"properties": {
"filters": { "type": "object", "$ref": "../../filters/filters.json" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",
"default": 16,
"title": "Maximum Dist"
},
"walk_speed_multiplier": {
"type": "number",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Walk Speed Multiplier"
},
"sprint_speed_multiplier": {
"type": "number",
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Sprint Speed Multiplier"
},
"must_see": {
"type": "boolean",
"description": "If true, the mob has to be visible to be a valid choice",
"default": false,
"title": "Must See"
},
"must_see_forget_duration": {
"type": "number",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"default": 3,
"title": "Must See Forget Duration"
}
}
}
}
{ "$ref": "../../1.8.0/entity_types.json" }

View File

@@ -1,20 +1 @@
{
"$id": "blockception.minecraft.entities.1.16.0.event",
"title": "Event",
"description": "Minecraft behavior event 1.16.0",
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire" },
{
"type": "object",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": {
"type": "string",
"description": "The target of the event",
"title": "Target",
"enum": ["baby", "block", "damager", "other", "parent", "player", "self", "target"]
}
}
}
]
}
{ "$ref": "../../1.8.0/event.json" }

View File

@@ -1,9 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.range_number_type.1.16.0",
"title": "Range [a, B]",
"description": "A described range",
"items": [
{ "type": "number", "title": "Range: A", "description": "The first value of the range" },
{ "type": "number", "title": "Range: B", "description": "The second value of the range" }
]
}
{ "$ref": "../../1.8.0/range_number_type.json" }

View File

@@ -1,15 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.trigger.1.16.0",
"title": "Trigger",
"type": "object",
"description": "Trigger to fire for 1.16.0",
"additionalProperties": false,
"properties": {
"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"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
}
}
{ "$ref": "../../1.8.0/trigger.json" }

View File

@@ -9,7 +9,7 @@
"minecraft:admire_item": { "$ref": "../1.16.0/components/minecraft.admire_item.json" },
"minecraft:ageable": { "$ref": "../1.16.0/components/minecraft.ageable.json" },
"minecraft:ambient_sound_interval": { "$ref": "../1.16.0/components/minecraft.ambient_sound_interval.json" },
"minecraft:angry": { "$ref": "../1.16.0/components/minecraft.angry.json" },
"minecraft:angry": { "$ref": "../1.8.0/components/minecraft.angry.json" },
"minecraft:annotation.break_door": { "$ref": "../1.8.0/components/minecraft.annotation.break_door.json" },
"minecraft:annotation.open_door": { "$ref": "../1.8.0/components/minecraft.annotation.open_door.json" },
"minecraft:area_attack": { "$ref": "../1.16.0/components/minecraft.area_attack.json" },

View File

@@ -1,43 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.entity_types.1.16.100",
"title": "Entity Types 1.16.100",
"type": "array",
"items": {
"description": "The entity type",
"title": "Entity Type",
"type": "object",
"properties": {
"filters": { "type": "object", "$ref": "../../filters/filters.json" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",
"default": 16,
"title": "Maximum Dist"
},
"walk_speed_multiplier": {
"type": "number",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Walk Speed Multiplier"
},
"sprint_speed_multiplier": {
"type": "number",
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged",
"default": 16,
"title": "Sprint Speed Multiplier"
},
"must_see": {
"type": "boolean",
"description": "If true, the mob has to be visible to be a valid choice",
"default": false,
"title": "Must See"
},
"must_see_forget_duration": {
"type": "number",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"default": 3,
"title": "Must See Forget Duration"
}
}
}
}
{ "$ref": "../../1.8.0/entity_types.json" }

View File

@@ -1,20 +1 @@
{
"$id": "blockception.minecraft.entities.1.16.100.event",
"title": "Event",
"description": "Minecraft behavior event 1.16.100",
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire" },
{
"type": "object",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": {
"type": "string",
"description": "The target of the event",
"title": "Target",
"enum": ["baby", "block", "damager", "other", "parent", "player", "self", "target"]
}
}
}
]
}
{ "$ref": "../../1.8.0/event.json" }

View File

@@ -1,9 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.range_number_type.1.16.100",
"title": "Range [a, B]",
"description": "A described range",
"items": [
{ "type": "number", "title": "Range: A", "description": "The first value of the range" },
{ "type": "number", "title": "Range: B", "description": "The second value of the range" }
]
}
{ "$ref": "../../1.8.0/range_number_type.json" }

View File

@@ -1,15 +1 @@
{
"$id": "blockception.minecraft.behavior.entities.type.trigger.1.16.100",
"title": "Trigger",
"type": "object",
"description": "Trigger to fire for 1.16.100",
"properties": {
"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"
},
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "The entity to target", "title": "Target" }
},
"additionalProperties": false
}
{ "$ref": "../../1.8.0/trigger.json" }

View File

@@ -2,6 +2,7 @@
"$id": "blockception.minecraft.entities.1.8.0.event",
"title": "Event",
"description": "Minecraft behavior event 1.8.0",
"examples": [{ "event": "example:foo", "target": "self" }],
"oneOf": [
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire" },
{

View File

@@ -1,9 +1,10 @@
{
"$id": "blockception.minecraft.behavior.entities.type.range_number_type.1.8.0",
"title": "Range [a, B]",
"title": "Range [A, B]",
"description": "A described range",
"examples": [[0.0, 1.0]],
"items": [
{ "type": "number", "title": "Range: A", "description": "The first value of the range" },
{ "type": "number", "title": "Range: B", "description": "The second value of the range" }
{ "type": "number", "title": "A", "description": "The first value of the range" },
{ "type": "number", "title": "B", "description": "The second value of the range" }
]
}

View File

@@ -4,6 +4,7 @@
"$ref": "#/definitions/groups_spec",
"definitions": {
"filters_spec": {
"examples": [{ "all_of": [{}] }, { "any_of": [{}] }, { "none_of": [{}] }, { "test": "is_variant", "subject": "self", "value": 0 }],
"oneOf": [
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },