auto: Formatted documents

This commit is contained in:
DaanV2
2021-05-18 23:32:44 +02:00
parent 6963d4eaab
commit 5b784a9cfc
400 changed files with 6276 additions and 1125 deletions

View File

@@ -243,12 +243,16 @@
"minecraft:behavior.move_to_random_block": { "$ref": "../1.8.0/behaviors/minecraft.behavior.move_to_random_block.json" },
"minecraft:behavior.move_to_village": { "$ref": "../1.8.0/behaviors/minecraft.behavior.move_to_village.json" },
"minecraft:behavior.move_to_water": { "$ref": "../1.8.0/behaviors/minecraft.behavior.move_to_water.json" },
"minecraft:behavior.move_towards_dwelling_restriction": { "$ref": "../1.8.0/behaviors/minecraft.behavior.move_towards_dwelling_restriction.json" },
"minecraft:behavior.move_towards_dwelling_restriction": {
"$ref": "../1.8.0/behaviors/minecraft.behavior.move_towards_dwelling_restriction.json"
},
"minecraft:behavior.move_towards_restriction": { "$ref": "../1.8.0/behaviors/minecraft.behavior.move_towards_restriction.json" },
"minecraft:behavior.move_towards_target": { "$ref": "../1.8.0/behaviors/minecraft.behavior.move_towards_target.json" },
"minecraft:behavior.nap": { "$ref": "../1.8.0/behaviors/minecraft.behavior.nap.json" },
"minecraft:behavior.nearest_attackable_target": { "$ref": "../1.8.0/behaviors/minecraft.behavior.nearest_attackable_target.json" },
"minecraft:behavior.nearest_prioritized_attackable_target": { "$ref": "../1.8.0/behaviors/minecraft.behavior.nearest_prioritized_attackable_target.json" },
"minecraft:behavior.nearest_prioritized_attackable_target": {
"$ref": "../1.8.0/behaviors/minecraft.behavior.nearest_prioritized_attackable_target.json"
},
"minecraft:behavior.ocelot_sit_on_block": { "$ref": "../1.8.0/behaviors/minecraft.behavior.ocelot_sit_on_block.json" },
"minecraft:behavior.ocelotattack": { "$ref": "../1.8.0/behaviors/minecraft.behavior.ocelotattack.json" },
"minecraft:behavior.offer_flower": { "$ref": "../1.8.0/behaviors/minecraft.behavior.offer_flower.json" },

View File

@@ -8,7 +8,12 @@
"required": [],
"properties": {
"anchor": { "type": "integer", "description": "UNDOCUMENTATED", "title": "UNDOCUMENTATED" },
"angle_offset": { "type": "number", "default": 0, "description": "Determines the angle at which the projectile is thrown", "title": "Angle Offset" },
"angle_offset": {
"type": "number",
"default": 0,
"description": "Determines the angle at which the projectile is thrown",
"title": "Angle Offset"
},
"catch_fire": { "type": "boolean", "default": false, "description": "If true, the entity hit will be set on fire", "title": "Catch Fire" },
"crit_particle_on_hurt": {
"type": "boolean",
@@ -16,9 +21,24 @@
"description": "If true, the projectile will produce additional particles when a critical hit happens",
"title": "Crit Particle On Hurt"
},
"destroy_on_hurt": { "type": "boolean", "default": false, "description": "If true, this entity will be destroyed when hit", "title": "Destroy On Hurt" },
"destroyOnHurt": { "type": "boolean", "default": false, "description": "If true, this entity will be destroyed when hit", "title": "Destroy On Hurt" },
"filter": { "type": "string", "default": "", "description": "Entity Definitions defined here can't be hurt by the projectile", "title": "Filter" },
"destroy_on_hurt": {
"type": "boolean",
"default": false,
"description": "If true, this entity will be destroyed when hit",
"title": "Destroy On Hurt"
},
"destroyOnHurt": {
"type": "boolean",
"default": false,
"description": "If true, this entity will be destroyed when hit",
"title": "Destroy On Hurt"
},
"filter": {
"type": "string",
"default": "",
"description": "Entity Definitions defined here can't be hurt by the projectile",
"title": "Filter"
},
"fire_affected_by_griefing": {
"type": "boolean",
"default": false,
@@ -33,9 +53,24 @@
},
"hit_sound": { "type": "string", "default": "", "description": "The sound that plays when the projectile hits something", "title": "Hit Sound" },
"homing": { "type": "boolean", "default": false, "description": "If true, the projectile homes in to the nearest entity", "title": "Homing" },
"inertia": { "type": "number", "default": 0.99, "description": "The fraction of the projectile's speed maintained every frame while traveling in air", "title": "Inertia" },
"is_dangerous": { "type": "boolean", "default": false, "description": "If true, the projectile will be treated as dangerous to the players", "title": "Is Dangerous" },
"knockback": { "type": "boolean", "default": true, "description": "If true, the projectile will knock back the entity it hits", "title": "Knockback" },
"inertia": {
"type": "number",
"default": 0.99,
"description": "The fraction of the projectile's speed maintained every frame while traveling in air",
"title": "Inertia"
},
"is_dangerous": {
"type": "boolean",
"default": false,
"description": "If true, the projectile will be treated as dangerous to the players",
"title": "Is Dangerous"
},
"knockback": {
"type": "boolean",
"default": true,
"description": "If true, the projectile will knock back the entity it hits",
"title": "Knockback"
},
"lightning": { "type": "boolean", "default": false, "description": "If true, the entity hit will be struck by lightning", "title": "Lightning" },
"liquid_inertia": {
"type": "number",
@@ -43,7 +78,12 @@
"description": "The fraction of the projectile's speed maintained every frame while traveling in water",
"title": "Liquid Inertia"
},
"multiple_targets": { "type": "boolean", "default": true, "description": "If true, the projectile can hit multiple entities per flight", "title": "Multiple Targets" },
"multiple_targets": {
"type": "boolean",
"default": true,
"description": "If true, the projectile can hit multiple entities per flight",
"title": "Multiple Targets"
},
"offset": {
"type": "array",
"default": [0, 0.5, 0],
@@ -67,7 +107,12 @@
}
]
},
"on_fire_time": { "type": "number", "default": 5, "description": "Time in seconds that the entity hit will be on fire for", "title": "On Fire Time" },
"on_fire_time": {
"type": "number",
"default": 5,
"description": "Time in seconds that the entity hit will be on fire for",
"title": "On Fire Time"
},
"on_hit": {
"additionalProperties": false,
"type": "object",
@@ -320,9 +365,19 @@
}
},
"particle": { "type": "string", "default": "iconcrack", "description": "Particle to use upon collision", "title": "Particle" },
"potion_effect": { "type": "integer", "default": -1, "description": "Defines the effect the arrow will apply to the entity it hits", "title": "Potion Effect" },
"potion_effect": {
"type": "integer",
"default": -1,
"description": "Defines the effect the arrow will apply to the entity it hits",
"title": "Potion Effect"
},
"power": { "type": "number", "default": 1.3, "description": "Determines the velocity of the projectile", "title": "Power" },
"reflect_on_hurt": { "type": "boolean", "default": false, "description": "If true, this entity will be reflected back when hit", "title": "Reflect On Hurt" },
"reflect_on_hurt": {
"type": "boolean",
"default": false,
"description": "If true, this entity will be reflected back when hit",
"title": "Reflect On Hurt"
},
"semi_random_diff_damage": {
"type": "boolean",
"default": false,
@@ -337,7 +392,12 @@
"title": "Shoot Target"
},
"should_bounce": { "type": "boolean", "default": false, "description": "If true, the projectile will bounce upon hit", "title": "Should Bounce" },
"splash_potion": { "type": "boolean", "default": false, "description": "If true, the projectile will be treated like a splash potion", "title": "Splash Potion" },
"splash_potion": {
"type": "boolean",
"default": false,
"description": "If true, the projectile will be treated like a splash potion",
"title": "Splash Potion"
},
"splash_range": { "type": "number", "default": 4, "description": "Radius in blocks of the 'splash' effect", "title": "Splash Range" },
"uncertainty_base": {
"type": "number",

View File

@@ -72,8 +72,16 @@
"$ref": "#/definitions/event_base",
"title": "Entity Born"
},
"minecraft:entity_spawned": { "description": "Event called on an entity that is placed in the level.", "$ref": "#/definitions/event_base", "title": "Entity Spawned" },
"minecraft:on_prime": { "description": "Event called on an entity whose fuse is lit and is ready to explode.", "$ref": "#/definitions/event_base", "title": "On Prime" }
"minecraft:entity_spawned": {
"description": "Event called on an entity that is placed in the level.",
"$ref": "#/definitions/event_base",
"title": "Entity Spawned"
},
"minecraft:on_prime": {
"description": "Event called on an entity whose fuse is lit and is ready to explode.",
"$ref": "#/definitions/event_base",
"title": "On Prime"
}
},
"additionalProperties": { "$ref": "#/definitions/event_base" }
}

View File

@@ -8,21 +8,48 @@
{
"propertyNames": { "enum": ["all_of", "any_of", "none_of"] },
"properties": {
"all_of": { "title": "All Of", "description": "All tests in an 'all_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"any_of": { "title": "Any Of", "description": "One or more tests in an 'any_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"none_of": { "title": "None Of", "description": "All tests in a 'none_of' group must fail in order for the group to pass.", "$ref": "#/definitions/groups_spec" }
"all_of": {
"title": "All Of",
"description": "All tests in an 'all_of' group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an 'any_of' group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a 'none_of' group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
}
},
{
"required": ["test"],
"properties": {
"all_of": { "title": "All Of", "description": "All tests in an 'all_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"any_of": { "title": "Any Of", "description": "One or more tests in an 'any_of' group must pass in order for the group to pass.", "$ref": "#/definitions/groups_spec" },
"none_of": { "title": "None Of", "description": "All tests in a 'none_of' group must fail in order for the group to pass.", "$ref": "#/definitions/groups_spec" }
"all_of": {
"title": "All Of",
"description": "All tests in an 'all_of' group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"any_of": {
"title": "Any Of",
"description": "One or more tests in an 'any_of' group must pass in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
},
"none_of": {
"title": "None Of",
"description": "All tests in a 'none_of' group must fail in order for the group to pass.",
"$ref": "#/definitions/groups_spec"
}
},
"allOf": [
{ "if": { "properties": { "test": { "const": "clock_time" } } }, "then": { "$ref": "../1.8.0/filters/clock_time.json" } },
{ "if": { "properties": { "test": { "const": "distance_to_nearest_player" } } }, "then": { "$ref": "../1.8.0/filters/distance_to_nearest_player.json" } },
{
"if": { "properties": { "test": { "const": "distance_to_nearest_player" } } },
"then": { "$ref": "../1.8.0/filters/distance_to_nearest_player.json" }
},
{ "if": { "properties": { "test": { "const": "has_ability" } } }, "then": { "$ref": "../1.8.0/filters/has_ability.json" } },
{ "if": { "properties": { "test": { "const": "has_biome_tag" } } }, "then": { "$ref": "../1.8.0/filters/has_biome_tag.json" } },
{ "if": { "properties": { "test": { "const": "has_component" } } }, "then": { "$ref": "../1.8.0/filters/has_component.json" } },
@@ -59,8 +86,14 @@
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "../1.8.0/filters/is_sneaking.json" } },
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "../1.8.0/filters/is_snow_covered.json" } },
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "../1.8.0/filters/is_target.json" } },
{ "if": { "properties": { "test": { "const": "is_temperature_type" } } }, "then": { "$ref": "../1.8.0/filters/is_temperature_type.json" } },
{ "if": { "properties": { "test": { "const": "is_temperature_value" } } }, "then": { "$ref": "../1.8.0/filters/is_temperature_value.json" } },
{
"if": { "properties": { "test": { "const": "is_temperature_type" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_type.json" }
},
{
"if": { "properties": { "test": { "const": "is_temperature_value" } } },
"then": { "$ref": "../1.8.0/filters/is_temperature_value.json" }
},
{ "if": { "properties": { "test": { "const": "is_underground" } } }, "then": { "$ref": "../1.8.0/filters/is_underground.json" } },
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "../1.8.0/filters/is_underwater.json" } },
{ "if": { "properties": { "test": { "const": "is_variant" } } }, "then": { "$ref": "../1.8.0/filters/is_variant.json" } },

View File

@@ -14,10 +14,22 @@
"title": "Animations",
"description": "Sets the mapping of internal animation / animation controllers references to actual animations. This is a JSON Object of name/animation pairs",
"type": "object",
"additionalProperties": { "title": "Animation (controller)", "description": "The name of the animation controller / animation", "type": "string" }
"additionalProperties": {
"title": "Animation (controller)",
"description": "The name of the animation controller / animation",
"type": "string"
}
},
"identifier": {
"$ref": "../../../general/entity/identifier.json",
"description": "Sets the identifier for this entity's description.",
"title": "Identifier"
},
"is_spawnable": {
"type": "boolean",
"title": "Is Spawnable",
"description": "Sets whether or not this entity has a spawn egg in the creative ui."
},
"identifier": { "$ref": "../../../general/entity/identifier.json", "description": "Sets the identifier for this entity's description.", "title": "Identifier" },
"is_spawnable": { "type": "boolean", "title": "Is Spawnable", "description": "Sets whether or not this entity has a spawn egg in the creative ui." },
"is_summonable": {
"type": "boolean",
"title": "Is Summonable Property",
@@ -45,7 +57,12 @@
"items": {
"oneOf": [
{ "type": "string", "title": "Animation", "description": "The name of an animation controller referenced in animations" },
{ "type": "object", "title": "Conditional Animation", "description": "TODO", "additionalProperties": { "type": "string", "title": "Animation" } }
{
"type": "object",
"title": "Conditional Animation",
"description": "TODO",
"additionalProperties": { "type": "string", "title": "Animation" }
}
]
}
}

View File

@@ -10,7 +10,12 @@
"additionalProperties": false,
"properties": {
"filters": { "type": "object", "$ref": "../filters.json" },
"max_dist": { "type": "number", "description": "Maximum distance this mob can be away to be a valid choice", "default": 16, "title": "Max Dist" },
"max_dist": {
"type": "number",
"description": "Maximum distance this mob can be away to be a valid choice",
"default": 16,
"title": "Max Dist"
},
"walk_speed_multiplier": {
"type": "number",
"description": "Multiplier for the walking speed. A value of 1.0 means the speed is unchanged",
@@ -23,7 +28,12 @@
"default": 16,
"title": "Sprint Speed Multiplier"
},
"must_see": { "type": "boolean", "description": "If true, the mob has to be visible to be a valid choice", "default": false, "title": "Must See" },
"must_see": {
"type": "boolean",
"description": "If true, the mob has to be visible to be a valid choice",
"default": false,
"title": "Must See"
},
"must_see_forget_duration": {
"type": "number",
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",

View File

@@ -9,7 +9,11 @@
"type": "object",
"properties": {
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
"target": { "type": "string", "description": "The target of the event", "enum": ["block", "damager", "other", "parent", "player", "self", "target"] }
"target": {
"type": "string",
"description": "The target of the event",
"enum": ["block", "damager", "other", "parent", "player", "self", "target"]
}
}
}
]