Processed new entity data
This commit is contained in:
@@ -44,10 +44,9 @@
|
|||||||
"description": "Distance in blocks that the target can be within to launch an attack."
|
"description": "Distance in blocks that the target can be within to launch an attack."
|
||||||
},
|
},
|
||||||
"entity_types": {
|
"entity_types": {
|
||||||
"title": "Entity Types",
|
"$ref": "../types/entity_types.json",
|
||||||
"type": "object",
|
"description": "List of entity types this mob will startle (cause to jump) when it sneezes.",
|
||||||
"description": "List of entity types that this mob considers valid targets.",
|
"title": "Entity Types"
|
||||||
"additionalProperties": false
|
|
||||||
},
|
},
|
||||||
"sound_chance": {
|
"sound_chance": {
|
||||||
"title": "Sound Chance",
|
"title": "Sound Chance",
|
||||||
|
|||||||
@@ -40,19 +40,9 @@
|
|||||||
"$ref": "./types/priority.json"
|
"$ref": "./types/priority.json"
|
||||||
},
|
},
|
||||||
"entity_types": {
|
"entity_types": {
|
||||||
"description": "Filters which types of targets are valid for this entity.",
|
"$ref": "../types/entity_types.json",
|
||||||
"title": "Entity Types",
|
"description": "List of entity types this mob will startle (cause to jump) when it sneezes.",
|
||||||
"oneOf": [
|
"title": "Entity Types"
|
||||||
{
|
|
||||||
"$ref": "#/definitions/entity_type"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/definitions/entity_type"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"attack_interval": {
|
"attack_interval": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
"$ref": "./types/priority.json"
|
"$ref": "./types/priority.json"
|
||||||
},
|
},
|
||||||
"entity_types": {
|
"entity_types": {
|
||||||
"description": "List of entity types that this mob considers valid targets.",
|
"$ref": "../types/entity_types.json",
|
||||||
"title": "Entity Types",
|
"description": "List of entity types this mob will startle (cause to jump) when it sneezes.",
|
||||||
"$ref": "../types/entity_types.json"
|
"title": "Entity Types"
|
||||||
},
|
},
|
||||||
"attack_interval": {
|
"attack_interval": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
@@ -49,6 +49,12 @@
|
|||||||
"description": "If true, the target will change to the current closest entity whenever a different entity is closer.",
|
"description": "If true, the target will change to the current closest entity whenever a different entity is closer.",
|
||||||
"title": "Reselect Targets"
|
"title": "Reselect Targets"
|
||||||
},
|
},
|
||||||
|
"reevaluate_description": {
|
||||||
|
"title": "Reevaluate Description",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"description": "If true, the mob will stop being targeted if it stops meeting any conditions."
|
||||||
|
},
|
||||||
"scan_interval": {
|
"scan_interval": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 10,
|
"default": 10,
|
||||||
|
|||||||
@@ -62,6 +62,7 @@
|
|||||||
"minecraft:flying_speed": { "$ref": "./components/flying_speed.json" },
|
"minecraft:flying_speed": { "$ref": "./components/flying_speed.json" },
|
||||||
"minecraft:follow_range": { "$ref": "./components/follow_range.json" },
|
"minecraft:follow_range": { "$ref": "./components/follow_range.json" },
|
||||||
"minecraft:friction_modifier": { "$ref": "./components/friction_modifier.json" },
|
"minecraft:friction_modifier": { "$ref": "./components/friction_modifier.json" },
|
||||||
|
"minecraft:game_event_movement_tracking": { "$ref": "./components/game_event_movement_tracking.json" },
|
||||||
"minecraft:genetics": { "$ref": "./components/genetics.json" },
|
"minecraft:genetics": { "$ref": "./components/genetics.json" },
|
||||||
"minecraft:giveable": { "$ref": "./components/giveable.json" },
|
"minecraft:giveable": { "$ref": "./components/giveable.json" },
|
||||||
"minecraft:ground_offset": { "$ref": "./components/ground_offset.json" },
|
"minecraft:ground_offset": { "$ref": "./components/ground_offset.json" },
|
||||||
@@ -269,13 +270,17 @@
|
|||||||
"minecraft:behavior.move_to_random_block": { "$ref": "./behaviors/move_to_random_block.json" },
|
"minecraft:behavior.move_to_random_block": { "$ref": "./behaviors/move_to_random_block.json" },
|
||||||
"minecraft:behavior.move_to_village": { "$ref": "./behaviors/move_to_village.json" },
|
"minecraft:behavior.move_to_village": { "$ref": "./behaviors/move_to_village.json" },
|
||||||
"minecraft:behavior.move_to_water": { "$ref": "./behaviors/move_to_water.json" },
|
"minecraft:behavior.move_to_water": { "$ref": "./behaviors/move_to_water.json" },
|
||||||
"minecraft:behavior.move_towards_dwelling_restriction": { "$ref": "./behaviors/move_towards_dwelling_restriction.json" },
|
"minecraft:behavior.move_towards_dwelling_restriction": {
|
||||||
|
"$ref": "./behaviors/move_towards_dwelling_restriction.json"
|
||||||
|
},
|
||||||
"minecraft:behavior.move_towards_home_restriction": { "$ref": "./behaviors/move_towards_home_restriction.json" },
|
"minecraft:behavior.move_towards_home_restriction": { "$ref": "./behaviors/move_towards_home_restriction.json" },
|
||||||
"minecraft:behavior.move_towards_restriction": { "$ref": "./behaviors/move_towards_restriction.json" },
|
"minecraft:behavior.move_towards_restriction": { "$ref": "./behaviors/move_towards_restriction.json" },
|
||||||
"minecraft:behavior.move_towards_target": { "$ref": "./behaviors/move_towards_target.json" },
|
"minecraft:behavior.move_towards_target": { "$ref": "./behaviors/move_towards_target.json" },
|
||||||
"minecraft:behavior.nap": { "$ref": "./behaviors/nap.json" },
|
"minecraft:behavior.nap": { "$ref": "./behaviors/nap.json" },
|
||||||
"minecraft:behavior.nearest_attackable_target": { "$ref": "./behaviors/nearest_attackable_target.json" },
|
"minecraft:behavior.nearest_attackable_target": { "$ref": "./behaviors/nearest_attackable_target.json" },
|
||||||
"minecraft:behavior.nearest_prioritized_attackable_target": { "$ref": "./behaviors/nearest_prioritized_attackable_target.json" },
|
"minecraft:behavior.nearest_prioritized_attackable_target": {
|
||||||
|
"$ref": "./behaviors/nearest_prioritized_attackable_target.json"
|
||||||
|
},
|
||||||
"minecraft:behavior.ocelot_sit_on_block": { "$ref": "./behaviors/ocelot_sit_on_block.json" },
|
"minecraft:behavior.ocelot_sit_on_block": { "$ref": "./behaviors/ocelot_sit_on_block.json" },
|
||||||
"minecraft:behavior.ocelotattack": { "$ref": "./behaviors/ocelotattack.json" },
|
"minecraft:behavior.ocelotattack": { "$ref": "./behaviors/ocelotattack.json" },
|
||||||
"minecraft:behavior.offer_flower": { "$ref": "./behaviors/offer_flower.json" },
|
"minecraft:behavior.offer_flower": { "$ref": "./behaviors/offer_flower.json" },
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"$id": "blockception.minecraft.behavior.entities.minecraft.game_event_movement_tracking",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"description": "Allows an entity to emit `entityMove`, `swim` and `flap` game events, depending on the block the entity is moving through. It is added by default to every mob. Add it again to override its behavior.",
|
||||||
|
"type": "object",
|
||||||
|
"title": "Game Event Movement Tracking",
|
||||||
|
"properties": {
|
||||||
|
"emit_flap": {
|
||||||
|
"title": "emit flap",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"description": "If true, the `flap` game event will be emitted when the entity moves through air."
|
||||||
|
},
|
||||||
|
"emit_move": {
|
||||||
|
"title": "emit move",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true,
|
||||||
|
"description": "If true, the `entityMove` game event will be emitted when the entity moves on ground or through a solid."
|
||||||
|
},
|
||||||
|
"emit_swim": {
|
||||||
|
"title": "emit swim",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true,
|
||||||
|
"description": "If true, the `swim` game event will be emitted when the entity moves through a liquid."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,18 +14,6 @@
|
|||||||
"default": 16,
|
"default": 16,
|
||||||
"title": "Maximum Dist"
|
"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": {
|
"must_see": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "If true, the mob has to be visible to be a valid choice.",
|
"description": "If true, the mob has to be visible to be a valid choice.",
|
||||||
@@ -37,9 +25,30 @@
|
|||||||
"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.",
|
"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,
|
"default": 3,
|
||||||
"title": "Must See Forget Duration"
|
"title": "Must See Forget Duration"
|
||||||
|
},
|
||||||
|
"reevaluate_description": {
|
||||||
|
"title": "Reevaluate Description",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"description": "If true, the mob will stop being targeted if it stops meeting any conditions."
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/entity_definition" } }, { "$ref": "#/definitions/entity_definition" }]
|
"oneOf": [
|
||||||
|
{ "type": "array", "items": { "$ref": "#/definitions/entity_definition" } },
|
||||||
|
{ "$ref": "#/definitions/entity_definition" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user