Skip to content

Commit

Permalink
- Attribute components (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix authored Mar 28, 2024
1 parent fb034c6 commit 0fe1582
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 223 deletions.
16 changes: 9 additions & 7 deletions source/behavior/entities/format/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "A collection of components.",
"required": [],
"properties": {
"minecraftabsorption:": {"$ref": "./components/attribute.json"},
"minecraft:addrider": { "$ref": "./components/addrider.json" },
"minecraft:admire_item": { "$ref": "./components/admire_item.json" },
"minecraft:ageable": { "$ref": "./components/ageable.json" },
Expand All @@ -16,7 +17,7 @@
"minecraft:annotation.open_door": { "$ref": "./components/annotation.open_door.json" },
"minecraft:area_attack": { "$ref": "./components/area_attack.json" },
"minecraft:attack_cooldown": { "$ref": "./components/attack_cooldown.json" },
"minecraft:attack_damage": { "$ref": "./components/attack_damage.json" },
"minecraft:attack_damage": { "$ref": "./components/attribute.json" },
"minecraft:attack": { "$ref": "./components/attack.json" },
"minecraft:balloonable": { "$ref": "./components/balloonable.json" },
"minecraft:barter": { "$ref": "./components/barter.json" },
Expand Down Expand Up @@ -62,7 +63,7 @@
"minecraft:floats_in_liquid": { "$ref": "./components/floats_in_liquid.json" },
"minecraft:flocking": { "$ref": "./components/flocking.json" },
"minecraft:flying_speed": { "$ref": "./components/flying_speed.json" },
"minecraft:follow_range": { "$ref": "./components/follow_range.json" },
"minecraft:follow_range": { "$ref": "./components/attribute.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" },
Expand All @@ -71,7 +72,7 @@
"minecraft:group_size": { "$ref": "./components/group_size.json" },
"minecraft:grows_crop": { "$ref": "./components/grows_crop.json" },
"minecraft:healable": { "$ref": "./components/healable.json" },
"minecraft:health": { "$ref": "./components/health.json" },
"minecraft:health": { "$ref": "./components/attribute.json" },
"minecraft:heartbeat": { "$ref": "./components/heartbeat.json" },
"minecraft:hide": { "$ref": "./components/hide.json" },
"minecraft:home": { "$ref": "./components/home.json" },
Expand Down Expand Up @@ -102,11 +103,12 @@
"minecraft:item_hopper": { "$ref": "./components/item_hopper.json" },
"minecraft:jump.dynamic": { "$ref": "./components/jump.dynamic.json" },
"minecraft:jump.static": { "$ref": "./components/jump.static.json" },
"minecraft:knockback_resistance": { "$ref": "./components/knockback_resistance.json" },
"minecraft:lava_movement": { "$ref": "./components/lava_movement.json" },
"minecraft:knockback_resistance": { "$ref": "./components/attribute.json" },
"minecraft:lava_movement": { "$ref": "./components/attribute.json" },
"minecraft:leashable": { "$ref": "./components/leashable.json" },
"minecraft:lookat": { "$ref": "./components/lookat.json" },
"minecraft:loot": { "$ref": "./components/loot.json" },
"minecraft:luck": {"$ref": "./components/attribute.json"},
"minecraft:managed_wandering_trader": { "$ref": "./components/managed_wandering_trader.json" },
"minecraft:mark_variant": { "$ref": "./components/mark_variant.json" },
"minecraft:mob_effect": { "$ref": "./components/mob_effect.json" },
Expand All @@ -120,7 +122,7 @@
"minecraft:movement.jump": { "$ref": "./components/movement.jump.json" },
"minecraft:movement.skip": { "$ref": "./components/movement.skip.json" },
"minecraft:movement.sway": { "$ref": "./components/movement.sway.json" },
"minecraft:movement": { "$ref": "./components/movement.json" },
"minecraft:movement": { "$ref": "./components/attribute.json" },
"minecraft:nameable": { "$ref": "./components/nameable.json" },
"minecraft:navigation.climb": { "$ref": "./components/navigation.climb.json" },
"minecraft:navigation.float": { "$ref": "./components/navigation.float.json" },
Expand Down Expand Up @@ -182,7 +184,7 @@
"minecraft:trust": { "$ref": "./components/trust.json" },
"minecraft:trusting": { "$ref": "./components/trusting.json" },
"minecraft:type_family": { "$ref": "./components/type_family.json" },
"minecraft:underwater_movement": { "$ref": "./components/underwater_movement.json" },
"minecraft:underwater_movement": { "$ref": "./components/attribute.json" },
"minecraft:variable_max_auto_step": { "$ref": "./components/variable_max_auto_step.json" },
"minecraft:variant": { "$ref": "./components/variant.json" },
"minecraft:vibration_damper": { "$ref": "./components/vibration_damper.json" },
Expand Down
20 changes: 0 additions & 20 deletions source/behavior/entities/format/components/attack_damage.json

This file was deleted.

27 changes: 27 additions & 0 deletions source/behavior/entities/format/components/attribute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.attribute",
"description": "Specifies the initial value of a specific attribute for an entity when spawned.",
"type": "object",
"title": "Attribute",
"additionalProperties": false,
"required": [],
"properties": {
"min": {
"type": "number",
"description": "The minimum starting health an entity has.",
"title": "Minimum",
"minimum": 0
},
"max": {
"type": "number",
"description": "The maximum starting health an entity has.",
"title": "Maximum"
},
"value": {
"description": "The amount of health an entity to start with by default.",
"title": "Value",
"$ref": "../types/range_number_type.json"
}
},
"examples": [{ "value": 1, "max": 1 }]
}
26 changes: 0 additions & 26 deletions source/behavior/entities/format/components/follow_range.json

This file was deleted.

45 changes: 0 additions & 45 deletions source/behavior/entities/format/components/health.json

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions source/behavior/entities/format/components/lava_movement.json

This file was deleted.

54 changes: 0 additions & 54 deletions source/behavior/entities/format/components/movement.json

This file was deleted.

This file was deleted.

0 comments on commit 0fe1582

Please sign in to comment.