diff --git a/source/behavior/spawn_rules/components/entity_types.json b/source/behavior/spawn_rules/components/entity_types.json new file mode 100644 index 00000000..787c02f0 --- /dev/null +++ b/source/behavior/spawn_rules/components/entity_types.json @@ -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." + } + } +} diff --git a/source/behavior/spawn_rules/spawn_rules.json b/source/behavior/spawn_rules/spawn_rules.json index f89e57d1..f3b188b6 100644 --- a/source/behavior/spawn_rules/spawn_rules.json +++ b/source/behavior/spawn_rules/spawn_rules.json @@ -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" } }