Files
Xterionix c9449c75d6 Updated for 1.21.70 along with other improvements (#337)
* Update vscode-settings.json

* - Updated map color

* - Added replaceable block component

* - Effect durations can be set to infinite now

* - Added support for entity sound variants

* - Fix description for renders_when_invisible entity component

* - Added is_collidable component

* - Updated entity_sensor

* - Added body_rotation_axis_aligned

* - Updated projectile > on_hit

* - Set min and max for collision_box

* - Added locator field to sounds in animation controllers and animations

* - Added new event response

* - Removed peak_factor from mountain_parameters component

* - Added isotropic field to material_instances

* - Added tint field to material_instances

* - Added input_air_controlled entity component

* - Added use_beta_features property to entity.json

* - Added missing match_tool property

* - Added use_home_position_restriction to float_wander goal

* - Added deferred client biome components

* - Added dry_foliage_color client biome component

* - Added destruction_particles

* - Marked biome tinting as experimental

* - Fix property_inheritance under breedable

* - Fix inconsistency with scatter feature

* - Update rideable description

* - Allowed event.add/remove to be strings

* - Added missing property in move_around_target behavior

* - Made features accept block references

* - Allowed repairable to use item descriptors

* - Fix typo
2025-03-03 08:44:05 +01:00

37 lines
1.2 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.attack",
"type": "object",
"additionalProperties": false,
"title": "Attack",
"description": "Defines an entity's melee attack and any additional effects on it.",
"required": [ "damage" ],
"properties": {
"damage": {
"title": "Damage",
"$ref": "../types/range_number_type.json",
"description": "Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it."
},
"effect_name": {
"type": "string",
"$ref": "../../../../general/vanilla/effect.json",
"description": "Identifier of the status ailment to apply to an entity attacked by this entity's melee attack.",
"title": "Effect Name"
},
"effect_duration": {
"anyOf": [
{
"type": "integer",
"default": 1,
"minimum": 0
},
{
"const": "infinite"
}
],
"description": "Duration in seconds of the status ailment applied to the damaged entity.",
"title": "Effect Duration"
}
},
"examples": [ { "damage": 1 }, { "damage": 1, "effect_name": "example", "effect_duration": 1 } ]
}