Added entity types filter

This commit is contained in:
DaanV2
2022-08-15 19:22:15 +02:00
parent c514eb0f54
commit 823e6f1f1c
2 changed files with 51 additions and 6 deletions

View File

@@ -0,0 +1,44 @@
{
"$id": "blockception.minecraft.behavior.spawn_rules.minecraft.entity_types",
"title": "Entity Types",
"description": "entity_types is a specific type of JSON object used by Minecraft: Bedrock Edition in order to encapsulate entity data that can be used in certain behaviors and components..",
"additionalProperties": false,
"type": "object",
"properties": {
"filters": {
"title": "Filters",
"description": "Conditions that make this entry in the list valid.",
"$ref": "../../entities/filters/filters.json"
},
"max_dist": {
"title": "Maximum Distance",
"type": "number",
"default": 16,
"description": "Maximum distance this mob can be away to be a valid choice."
},
"must_see": {
"title": "Must See",
"type": "boolean",
"default": false,
"description": "If true, the mob has to be visible to be a valid choice."
},
"must_see_forget_duration": {
"title": "Must See Forget Duration",
"type": "boolean",
"default": 3.0,
"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."
},
"sprint_speed_multiplier": {
"title": "Sprint Speed Multiplier",
"type": "number",
"default": 1.0,
"description": "Multiplier for the running speed. A value of 1.0 means the speed is unchanged."
},
"walk_speed_multiplier": {
"title": "Walk Speed Multiplier",
"type": "number",
"default": 1.0,
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged."
}
}
}

View File

@@ -57,24 +57,25 @@
"properties": {
"minecraft:biome_filter": { "$ref": "./components/biome_filter.json" },
"minecraft:brightness_filter": { "$ref": "./components/brightness_filter.json" },
"minecraft:delay_filter": { "$ref": "./components/delay_filter.json" },
"minecraft:density_limit": { "$ref": "./components/density_limit.json" },
"minecraft:difficulty_filter": { "$ref": "./components/difficulty_filter.json" },
"minecraft:delay_filter": { "$ref": "./components/delay_filter.json" },
"minecraft:distance_filter": { "$ref": "./components/distance_filter.json" },
"minecraft:disallow_spawns_in_bubble": { "$ref": "./components/disallow_spawns_in_bubble.json" },
"minecraft:distance_filter": { "$ref": "./components/distance_filter.json" },
"minecraft:height_filter": { "$ref": "./components/height_filter.json" },
"minecraft:entity_types": { "$ref": "./components/entity_types.json" },
"minecraft:herd": { "$ref": "./components/herd.json" },
"minecraft:player_in_village_filter": { "$ref": "./components/player_in_village_filter.json" },
"minecraft:permute_type": { "$ref": "./components/permute_type.json" },
"minecraft:mob_event_filter": { "$ref": "./components/mob_event_filter.json" },
"minecraft:permute_type": { "$ref": "./components/permute_type.json" },
"minecraft:player_in_village_filter": { "$ref": "./components/player_in_village_filter.json" },
"minecraft:spawn_event": { "$ref": "./components/spawn_event.json" },
"minecraft:spawns_above_block_filter": { "$ref": "./components/spawns_above_block_filter.json" },
"minecraft:spawns_lava": { "$ref": "./components/spawns_lava.json" },
"minecraft:spawns_on_block_filter": { "$ref": "./components/spawns_on_block_filter.json" },
"minecraft:spawns_on_block_prevented_filter": { "$ref": "./components/spawns_on_block_prevented_filter.json" },
"minecraft:spawns_lava": { "$ref": "./components/spawns_lava.json" },
"minecraft:spawns_on_surface": { "$ref": "./components/spawns_on_surface.json" },
"minecraft:spawns_underground": { "$ref": "./components/spawns_underground.json" },
"minecraft:spawns_underwater": { "$ref": "./components/spawns_underwater.json" },
"minecraft:spawns_above_block_filter": { "$ref": "./components/spawns_above_block_filter.json" },
"minecraft:weight": { "$ref": "./components/weight.json" },
"minecraft:world_age_filter": { "$ref": "./components/world_age_filter.json" }
}