Updated behaviors and entities components

This commit is contained in:
DaanV2
2022-12-07 10:40:43 +01:00
parent 8cc3ef4bc6
commit 8e0228de15
9 changed files with 203 additions and 61 deletions

View File

@@ -5,6 +5,18 @@
"description": "A component that does damage to entities that get within range.",
"additionalProperties": false,
"properties": {
"cause": {
"title": "Cause",
"$ref": "../../../../general/entity/damage_source.json",
"type": "string",
"description": "The type of damage that is applied to entities that enter the damage range."
},
"damage_cooldown": {
"title": "damage cooldown",
"type": "number",
"default": 0,
"description": "Attack cooldown (in seconds) for how often this entity can attack a target."
},
"damage_per_tick": {
"type": "integer",
"default": 2,
@@ -19,14 +31,14 @@
},
"entity_filter": {
"$ref": "../../filters/filters.json",
"description": "Filter to see which entities can be affected by the attack.",
"description": "The set of entities that are valid to apply the damage to when within range.",
"title": "Entity Filter"
},
"cause": {
"type": "string",
"description": "what causes the attack to occur.",
"title": "Cause",
"$ref": "../../../../general/entity/damage_source.json"
"play_attack_sound": {
"title": "play attack sound",
"type": "boolean",
"default": 4.94066e-324,
"description": "If the entity should play their attack sound when attacking a target."
}
},
"examples": [

View File

@@ -0,0 +1,33 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.dash",
"type": "object",
"title": "Dash",
"additionalProperties": false,
"description": "Ability for a ridable entity to dash.",
"required": [],
"properties": {
"cooldown_time": {
"title": "cooldown time",
"type": "number",
"default": 1.0,
"description": "The dash cooldown in seconds."
},
"horizontal_momentum": {
"title": "horizoontal momentum",
"type": "number",
"default": 1.0,
"description": "Horizontal momentum of the dash."
},
"vertical_momentum": {
"title": "vertical momentum",
"type": "number",
"default": 1.0,
"description": "Vertical momentum of the dash."
}
},
"examples": [
{
"value": 0.0
}
]
}

View File

@@ -0,0 +1,27 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.variable_max_auto_step",
"type": "object",
"title": "Variable Max Auto Step",
"additionalProperties": false,
"description": "Entities with this component will have a maximum auto step height that is different depending on wether they are on a block that prevents jumping. Incompatible with \"runtime_identifier\": \"minecraft:horse\".",
"required": [],
"properties": {
"base_value": {
"title": "base value",
"type": "number",
"default": 0.5625,
"description": "The maximum auto step height when on any other block."
},
"jump_prevented_value": {
"title": "jump prevented value",
"type": "number",
"default": 0.5625,
"description": "The maximum auto step height when on a block that prevents jumping."
}
},
"examples": [
{
"value": 0.0
}
]
}