Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Undocumented #180

Merged
merged 3 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"properties": {
"attack_cooldown_complete_event": {
"$ref": "../types/trigger.json",
"description": "Event to be runned when the cooldown is complete.",
"description": "Event to be run when the cooldown is complete.",
"title": "Attack Cooldown Complete Event"
},
"attack_cooldown_time": {
Expand Down
8 changes: 4 additions & 4 deletions source/behavior/entities/format/components/attack_damage.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"required": ["value"],
"properties": {
"value": {
"type": "number",
"description": "UNDOCUMENTED: value.",
"type": "integer",
"description": "How much an attack should damage a target.",
"title": "Value"
}
},
"description": "UNDOCUMENTED.",
"description": "Specifies how much damage is dealt by the entity when it attacks.",
"examples": [
{
"value": 0.0
"value": 4
}
]
}
33 changes: 29 additions & 4 deletions source/behavior/entities/format/components/balloonable.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,43 @@
"additionalProperties": false,
"type": "object",
"title": "Balloonable",
"description": "allows the entity to have a balloon attached and defines the conditions and events for the entity when is ballooned.",
"required": [],
"properties": {
"soft_distance": {
"title": "Soft Distance",
"description": "Distance in blocks where the 'spring' effect lifts the entity.",
"type": "number",
"default": 2.0
},
"max_distance": {
"title": "Max Distance",
"description": "Distance in blocks where the balloon breaks.",
"type": "number",
"default": 10.0
},
"on_balloon": {
"title": "On Balloon",
"description": "Event to call when the entity is ballooned.",
"type": "string"
},
"on_unballoon": {
"title": "On Unballoon",
"description": "Event to call when the entity is unballooned.",
"type": "string"
},
"mass": {
"title": "Mass",
"description": "Mass that the entity has when computing balloon pull forces.",
"type": "number",
"description": "UNDOCUMENTED: mass.",
"title": "Mass"
"default": 1.0
}
},
"description": "UNDOCUMENTED.",
"examples": [
{
"mass": 0.0
"max_distance": 10.0,
"soft_distance": 2.0,
"mass": 0.5
}
]
}
8 changes: 1 addition & 7 deletions source/behavior/entities/format/components/boostable.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@
"default": 1,
"description": "This is the damage that the item will take each time it is used.",
"title": "Damage"
},
"item_damage": {
"type": "integer",
"default": 1,
"description": "UNDOCUMENTED.",
"title": "Item Damage"
},
},
"item": {
"$ref": "../../../../general/item/descriptor.json",
"default": "",
Expand Down
12 changes: 5 additions & 7 deletions source/behavior/entities/format/components/follow_range.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,25 @@
"$id": "blockception.minecraft.behavior.entities.minecraft.follow_range",
"type": "object",
"title": "Follow Range",
"description": "Defines the range of blocks that a mob will pursue a target.",
"additionalProperties": false,
"required": [],
"properties": {
"value": {
"type": "integer",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Range of the amount of damage the melee follow_range deals. A negative value can heal the entity instead of hurting it.",
"title": "Value"
},
"max": {
"type": "integer",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Duration, in seconds, of the status ailment applied to the damaged entity.",
"title": "Max"
}
},
"description": "UNDOCUMENTED.",
"examples": [
{
"value": 0,
"max": 0
"value": 16,
"max": 48
}
]
}
6 changes: 2 additions & 4 deletions source/behavior/entities/format/components/health.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
"range_min": {
"title": "Range Minimum",
"description": "The minimum amount of health this mob could have.",
"$comment": "UNDOCUMENTED",
"type": "number"
"type": "integer"
},
"range_max": {
"title": "Range Maximum",
"description": "The maximum amount of health this mob could have.",
"$comment": "UNDOCUMENTED",
"type": "number"
"type": "integer"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions source/behavior/entities/format/components/hide.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"$id": "blockception.minecraft.behavior.entities.minecraft.hide",
"type": "object",
"title": "Hide",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Compels an entity to move to and hide at their owned POI or the closest nearby.",
"additionalProperties": false,
"properties": {}
}
8 changes: 1 addition & 7 deletions source/behavior/entities/format/components/is_stackable.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
"type": "object",
"title": "Is Stackable",
"additionalProperties": false,
"properties": {
"value": {
"title": "Value",
"description": "UNDOCUMENTED.",
"type": "boolean"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do I just remove it, or do you? I am kinda new to this github thing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You removed in your code 🙂, So for this case you need to re-add it to the file 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I think this is where the reply goes... I deleted my changes for is_stackable.

"properties": {}
DaanV2 marked this conversation as resolved.
Show resolved Hide resolved
}
8 changes: 3 additions & 5 deletions source/behavior/entities/format/components/lava_movement.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.lava_movement",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Allows a custom movement speed across lava blocks.",
"type": "object",
"title": "Lava Movement",
"additionalProperties": false,
Expand All @@ -10,13 +9,12 @@
"value": {
"type": "number",
"title": "Value",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
"description": "The speed a strider moves over a lava block."
}
},
"examples": [
{
"value": 0.0
"value": 0.32
}
]
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.player.exhaustion",
"title": "Player.exhaustion",
"description": "Defines the player's need for food.",
"description": "Defines the player's exhaustion level.",
"additionalProperties": false,
"type": "object",
"required": [],
"properties": {
"value": {
"type": "number",
"type": "integer",
"title": "Value",
"description": "The maximum player saturation value."
"description": "The initial value of the player exhaustion."
},
"max": {
"type": "number",
"type": "integer",
"title": "Maximum",
"description": "The maximum player saturation value."
"description": "The maximum player exhaustion of this entity."
}
},
"examples": [{ "value": 10, "max": 20 }]
"examples": [{ "value": 0, "max": 20 }]
}
21 changes: 9 additions & 12 deletions source/behavior/entities/format/components/player.experience.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,26 @@
"additionalProperties": false,
"type": "object",
"title": "Player.experience",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Defines how much experience each player action should take.",
"required": [],
"properties": {
"value": {
"type": "number",
"default": true,
"type": "integer",
"default": 1,
"title": "Value",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
"description": "The initial value of the player experience."
},
"max": {
"type": "number",
"default": true,
"type": "integer",
"default": 5,
"title": "Maximum",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
"description": "The maximum player experience of this entity."
}
},
"examples": [
{
"value": true,
"max": true
"value": 0,
"max": 1
}
]
}
19 changes: 7 additions & 12 deletions source/behavior/entities/format/components/player.level.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,24 @@
"additionalProperties": false,
"type": "object",
"title": "Player.level",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Defines the player's level.",
"required": [],
"properties": {
"value": {
"type": "number",
"default": true,
"type": "integer",
"title": "Value",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
"description": "The initial value of the player level."
},
"max": {
"type": "number",
"default": true,
"type": "integer",
"title": "Maximum",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
"description": "The maximum player level value of the entity."
}
},
"examples": [
{
"value": true,
"max": true
"value": 0,
"max": 24791
}
]
}
17 changes: 10 additions & 7 deletions source/behavior/entities/format/components/player.saturation.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@
"additionalProperties": false,
"type": "object",
"title": "Player.saturation",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"description": "Defines the player's need for food.",
"required": [],
"properties": {
"value": {
"type": "number",
"default": true,
"type": "integer",
"title": "Value",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED"
"description": "The initial value of player saturation."
},
"max": {
"type": "integer",
"title": "Maximum",
"description": "The maximum player saturation value."
}
},
"examples": [
{
"value": true
"value": 5,
"max": 20
}
]
}
26 changes: 21 additions & 5 deletions source/behavior/entities/format/components/shooter.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$id": "blockception.minecraft.behavior.entities.minecraft.shooter",
"description": "Defines the entity's ranged attack behavior.",
"$comment": "As of 1.19.60 & out of exp 1.20.10",
"type": "object",
"title": "Shooter",
"additionalProperties": false,
Expand All @@ -17,12 +18,27 @@
"examples": ["minecraft:arrow", "minecraft:small_fireball", "minecraft:thrown_trident"],
"description": "Actor definition to use as projectile for the ranged attack. The actor definition must have the projectile component to be able to be shot as a projectile"
},
"type": {
"title": "Type",
"magic": {
"title": "Magic",
"type": "boolean",
"default": false,
"description": "Sets whether the projectiles being used are flagged as magic. If set, the ranged attack goal will not be used at the same time as other magic goals, such as minecraft:behavior.drink_potion." },
"power": {
"type": "number",
"title": "Power",
"default": 0.00,
"description": "Velocity in which the projectiles will be shot. A power of 0 will be overwritten by the default projectile throw power."
},
"projectiles": {
"title": "Projectiles",
"description": "List of projectiles that can be used by the shooter. Projectiles are evaluated in the order of the list; after a projectile is chosen, the rest of the list is ignored.",
"type": "array",
"items": { "type": "string", "description": "Projectiles that can be used by the shooter", "title": "Projectile"}
},
"sound": {
"title": "Sound",
"type": "string",
"description": "UNDOCUMENTED.",
"$comment": "UNDOCUMENTED",
"examples": ["dragonfireball"]
"description": "Sound that is played when the shooter shoots a projectile."
DaanV2 marked this conversation as resolved.
Show resolved Hide resolved
}
},
"examples": [{ "def": "minecraft:small_fireball" }]
Expand Down
8 changes: 5 additions & 3 deletions source/behavior/entities/format/components/teleport.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@
},
"target_distance": {
"type": "number",
"default": 16,
"default": 16.0,
"description": "Maximum distance the entity will teleport when chasing a target.",
"title": "Target Distance"
},
"target_teleport_chance": {
"type": "number",
"default": 1,
"default": 1.0,
"description": "The chance that the entity will teleport between 0.0 and 1.0. 1.0 means 100%",
"title": "Target Teleport Chance"
"title": "Target Teleport Chance",
"minimum": 0.0,
"maximum": 1.0
}
},
"examples": [
Expand Down
Loading
Loading