From 589e1795cc8e3883c526e91f70d83b32164d5f93 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Fri, 2 Jul 2021 13:10:31 +0200 Subject: [PATCH] Updated components documentation --- .../behavior/entities/1.16.0/components.json | 4 +- .../1.16.0/components/minecraft.angry.json | 89 ------------------- .../components/minecraft.area_attack.json | 29 ------ .../minecraft.navigation.climb.json | 8 +- .../minecraft.navigation.float.json | 8 +- .../components/minecraft.navigation.fly.json | 8 +- .../minecraft.navigation.generic.json | 8 +- .../minecraft.navigation.hover.json | 8 +- .../components/minecraft.navigation.swim.json | 8 +- .../components/minecraft.navigation.walk.json | 8 +- source/behavior/entities/1.16.0/entities.json | 6 +- .../entities/1.16.0/minecraft.entity.json | 1 + 12 files changed, 20 insertions(+), 165 deletions(-) delete mode 100644 source/behavior/entities/1.16.0/components/minecraft.angry.json delete mode 100644 source/behavior/entities/1.16.0/components/minecraft.area_attack.json diff --git a/source/behavior/entities/1.16.0/components.json b/source/behavior/entities/1.16.0/components.json index 0d556406..eca499e8 100644 --- a/source/behavior/entities/1.16.0/components.json +++ b/source/behavior/entities/1.16.0/components.json @@ -9,10 +9,10 @@ "minecraft:admire_item": { "$ref": "./components/minecraft.admire_item.json" }, "minecraft:ageable": { "$ref": "./components/minecraft.ageable.json" }, "minecraft:ambient_sound_interval": { "$ref": "./components/minecraft.ambient_sound_interval.json" }, - "minecraft:angry": { "$ref": "./components/minecraft.angry.json" }, + "minecraft:angry": { "$ref": "../1.8.0/components/minecraft.angry.json" }, "minecraft:annotation.break_door": { "$ref": "../1.8.0/components/minecraft.annotation.break_door.json" }, "minecraft:annotation.open_door": { "$ref": "../1.8.0/components/minecraft.annotation.open_door.json" }, - "minecraft:area_attack": { "$ref": "./components/minecraft.area_attack.json" }, + "minecraft:area_attack": { "$ref": "../1.8.0/components/minecraft.area_attack.json" }, "minecraft:attack": { "$ref": "../1.8.0/components/minecraft.attack.json" }, "minecraft:attack_cooldown": { "$ref": "./components/minecraft.attack_cooldown.json" }, "minecraft:attack_damage": { "$ref": "../1.8.0/components/minecraft.attack_damage.json" }, diff --git a/source/behavior/entities/1.16.0/components/minecraft.angry.json b/source/behavior/entities/1.16.0/components/minecraft.angry.json deleted file mode 100644 index 89b36e5c..00000000 --- a/source/behavior/entities/1.16.0/components/minecraft.angry.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.angry", - "type": "object", - "title": "Angry 1.16.0", - "description": "Adds a timer for the entity to grow up. It can be accelerated by giving the entity the items it likes as defined by feedItems.", - "additionalProperties": false, - "required": [], - "properties": { - "broadcast_anger": { - "type": "boolean", - "default": false, - "description": "If true, other entities of the same entity definition within the broadcastRange will also become angry", - "title": "Broadcast Anger" - }, - "broadcast_filters": { - "$ref": "../../filters/filters.json", - "description": "Conditions that make this entry in the list valid", - "title": "Broadcast Filters" - }, - "filters": { - "$ref": "../../filters/filters.json", - "description": "Filter out mob types that it should not attack while angry (other Piglins)" - }, - "broadcast_range": { - "type": "integer", - "default": 20, - "description": "Distance in blocks within which other entities of the same entity definition will become angry", - "title": "Broadcast Range" - }, - "broadcast_targets": { - "type": "array", - "description": "A list of entity families to broadcast anger to", - "items": { "type": "string", "description": "An entity family", "pattern": "^.+$", "title": "Broadcast Targets" }, - "title": "Broadcast Targets" - }, - "calm_event": { - "$ref": "../types/event.json", - "description": "Event to run after the number of seconds specified in duration expires (when the entity stops being `angry')", - "title": "Calm Event" - }, - "angry_sound": { "type": "string", "default": "", "description": "The sound event to play when the mob is angry", "title": "Angry Sound" }, - "broadcast_anger_on_attack": { - "type": "boolean", - "default": false, - "description": "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob attacks", - "title": "Broadcast Anger On Attack" - }, - "broadcast_anger_on_being_attacked": { - "type": "boolean", - "default": false, - "description": "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob is attacked", - "title": "Broadcast Anger On Being Attacked" - }, - "duration": { - "type": "integer", - "default": 25, - "description": "The amount of time in seconds that the entity will be angry", - "title": "Duration" - }, - "duration_delta": { - "type": "integer", - "default": 0, - "description": "Variance in seconds added to the duration [-delta, delta]", - "title": "Duration Delta" - }, - "sound_interval": { - "description": "The range of time in seconds to randomly wait before playing the sound again", - "title": "Sound Interval", - "oneOf": [ - { - "type": "array", - "default": [0, 0], - "items": [ - { "type": "integer", "minimum": 0, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Minimum" }, - { "type": "integer", "minimum": 0, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Maximum" } - ] - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "range_min": { "type": "number", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Range Minimum" }, - "range_max": { "type": "number", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Range Maximum" } - } - } - ] - } - } -} diff --git a/source/behavior/entities/1.16.0/components/minecraft.area_attack.json b/source/behavior/entities/1.16.0/components/minecraft.area_attack.json deleted file mode 100644 index c6b36f55..00000000 --- a/source/behavior/entities/1.16.0/components/minecraft.area_attack.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.area_attack", - "type": "object", - "title": "Area Attack 1.16.0", - "description": "A component that does damage to entities that get within range.", - "additionalProperties": false, - "properties": { - "damage_per_tick": { - "type": "integer", - "default": 2, - "description": "How much damage per tick is applied to entities that enter the damage range.", - "title": "Damage Per Tick" - }, - "damage_range": { - "type": "number", - "default": 0.2, - "description": "How close a hostile entity must be to have the damage applied.", - "title": "Damage Range" - }, - "entity_filter": { "$ref": "../../filters/filters.json", "description": "Entity_filter", "title": "Filter" }, - "cause": { - "type": "string", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "title": "Cause", - "$ref": "../../../../general/entity/damage_source.json" - } - } -} diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.climb.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.climb.json index ec30ce33..73a9577e 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.climb.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.climb.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.float.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.float.json index 8468383d..002c74e9 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.float.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.float.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.fly.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.fly.json index ff29e6de..14b390ba 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.fly.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.fly.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.generic.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.generic.json index d23b2ab6..1a848d81 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.generic.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.generic.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.hover.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.hover.json index c1e313f8..d5e721e2 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.hover.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.hover.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.swim.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.swim.json index f8c1df96..e9fcf2f9 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.swim.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.swim.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/components/minecraft.navigation.walk.json b/source/behavior/entities/1.16.0/components/minecraft.navigation.walk.json index d8451a04..272ad658 100644 --- a/source/behavior/entities/1.16.0/components/minecraft.navigation.walk.json +++ b/source/behavior/entities/1.16.0/components/minecraft.navigation.walk.json @@ -35,12 +35,8 @@ "title": "Blocks To Avoid", "items": { "title": "Block", - "description": "UNDOCUMENTED", - "$comment": "UNDOCUMENTED", - "oneOf": [ - { "type": "string", "$ref": "../../../../general/block/identifier.json" }, - { "type": "object", "properties": { "name": { "$ref": "../../../../general/block/identifier.json" } } } - ] + "description": "Tells the pathfinder which blocks to avoid when creating a path", + "$ref": "../../../../general/block/identifier.json" } }, "can_breach": { diff --git a/source/behavior/entities/1.16.0/entities.json b/source/behavior/entities/1.16.0/entities.json index 30abdeea..ed715032 100644 --- a/source/behavior/entities/1.16.0/entities.json +++ b/source/behavior/entities/1.16.0/entities.json @@ -2,9 +2,10 @@ "$id": "blockception.minecraft.behavior.entity1.16.0", "type": "object", "title": "Entity Behavior 1.16.0", - "description": "UNDOCUMENTED", + "description": "Entity behavior", "$comment": "UNDOCUMENTED", "required": ["format_version", "minecraft:entity"], + "additionalProperties": false, "properties": { "format_version": { "title": "1.16.0 Format Version", @@ -13,6 +14,5 @@ "description": "A version that tells minecraft what type of data format can be expected when reading this file." }, "minecraft:entity": { "$ref": "./minecraft.entity.json" } - }, - "additionalProperties": false + } } diff --git a/source/behavior/entities/1.16.0/minecraft.entity.json b/source/behavior/entities/1.16.0/minecraft.entity.json index 9a51d7ce..d3ec4593 100644 --- a/source/behavior/entities/1.16.0/minecraft.entity.json +++ b/source/behavior/entities/1.16.0/minecraft.entity.json @@ -4,6 +4,7 @@ "required": ["description"], "additionalProperties": false, "dependencies": { "component_groups": ["events"] }, + "type": "object", "properties": { "description": { "required": ["identifier"],