Skip to content
Open

Fixes #103

Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion dist/minecraftBedrock/fileDefinitions.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"icon": "mdi-cube-unfolded",
"detect": {
"packType": "resourcePack",
"scope": "water/",
"scope": "cubemaps/",
"matcher": [
"cubemaps/**/*",
"cubemaps/*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"type": "boolean",
"default": false
},
"can_spread_on_fire": {
"title": "Can Spread On Fire",
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hit.",
"type": "boolean",
"default": false
},
"require_complete_path": {
"title": "Require Complete Path",
"description": "Toggles (on/off) the need to have a full path from the entity to the target when using this melee attack behavior.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,18 @@
"on_home": {
"title": "Event: On Home",
"description": "Event to run when this mob gets home.",
"anyOf": [
{
"$ref": "../../general/v1.16.0/eventDefinition.json"
},
{
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
}
]
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
},
"on_failed": {
"title": "Event: On Failed",
"description": "Event to run if this entity fails to get home.",
"anyOf": [
{
"$ref": "../../general/v1.16.0/eventDefinition.json"
},
{
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
}
]
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"additionalProperties": false,
"description": "Sets that this entity doesn't take damage from fire.",
"title": "Fire Immune",
"type": ["boolean", "object"]
"type": "object"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,18 @@
"on_home": {
"title": "Event: On Home",
"description": "Event to run when this mob gets home.",
"anyOf": [
{
"$ref": "../../general/v1.16.0/eventDefinition.json"
},
{
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
}
]
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
},
"on_failed": {
"title": "Event: On Failed",
"description": "Event to run if this entity fails to get home.",
"anyOf": [
{
"$ref": "../../general/v1.16.0/eventDefinition.json"
},
{
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
}
]
"type": "array",
"items": {
"$ref": "../../general/v1.16.0/eventDefinition.json"
}
},
"calculate_new_path_radius": {
"title": "Calculate New Path Radius",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"type": "boolean",
"default": false
},
"can_spread_on_fire": {
"title": "Can Spread On Fire",
"description": "If the entity is on fire, this allows the entity's target to catch on fire after being hit.",
"type": "boolean",
"default": false
},
"require_complete_path": {
"title": "Require Complete Path",
"description": "Toggles (on/off) the need to have a full path from the entity to the target when using this melee attack behavior.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
"minecraft:free_camera_controlled": {
"$ref": "../../v1.21.110/components/free_camera_controlled.json"
},
"mincraft:vertical_movement_action": {
"minecraft:vertical_movement_action": {
"$ref": "../../v1.21.110/components/vertical_movement_action.json"
},
"minecraft:dash_action": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
"minecraft:free_camera_controlled": {
"$ref": "../../v1.21.110/components/free_camera_controlled.json"
},
"mincraft:vertical_movement_action": {
"minecraft:vertical_movement_action": {
"$ref": "../../v1.21.110/components/vertical_movement_action.json"
},
"minecraft:dash_action": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "http://json-schema.org/draft-07/schema",
"type": "string",
"description": "The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.",
"enum": ["nature", "construction", "items", "equipment", "none", "commands"]
"enum": ["nature", "construction", "items", "equipment", "none"]
}
19 changes: 18 additions & 1 deletion packages/minecraftBedrock/schema/itemTexture/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@
"type": "string",
"$ref": "../general/reference/paths.json#/definitions/texture_paths"
},
{
"type": "object",
"properties": {
"path": {
"title": "Path",
"$ref": "../general/reference/paths.json#/definitions/texture_paths"
},
"tint_color": {
"title": "Tint Color",
"$ref": "../general/hexColor.json"
},
"overlay_color": {
"title": "Overlay Color",
"$ref": "../general/hexColor.json"
}
}
},
{
"type": "array",
"items": {
Expand Down Expand Up @@ -60,4 +77,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"properties": {
"minecraft:recipe_brewing_container": {
"title": "Brewing Container Recipe",
"description": "Represents a recipe that for use with a potion brewing station.",
"description": "Represents a Potion Brewing Container Recipe.",
"type": "object",
"additionalProperties": false,
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"minecraft:recipe_brewing_container_mix": {
"title": "Brewing Container Mix Recipe",
"description": "Represents a recipe that for use with a Potion Brewing station.",
"minecraft:recipe_brewing_mix": {
"title": "Brewing Mix Recipe",
"description": "Represents a Potion Brewing Mix.",
"type": "object",
"additionalProperties": false,
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"properties": {
"minecraft:recipe_brewing_container": {
"title": "Brewing Container Recipe",
"description": "Represents a recipe that for use with a potion brewing station.",
"description": "Represents a Potion Brewing Container Recipe.",
"type": "object",
"additionalProperties": false,
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"minecraft:recipe_brewing_container_mix": {
"title": "Brewing Container Mix Recipe",
"description": "Represents a recipe that for use with a Potion Brewing station.",
"minecraft:recipe_brewing_mix": {
"title": "Brewing Mix Recipe",
"description": "Represents a Potion Brewing Mix.",
"type": "object",
"additionalProperties": false,
"properties": {
Expand Down
73 changes: 20 additions & 53 deletions packages/minecraftBedrock/schema/textureSet/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,15 @@
},
"minecraft:texture_set": {
"additionalProperties": false,
"required": ["color"],
"type": "object",
"properties": {
"color": {
"$ref": "./color.json"
},
"color_unlit": {
"$ref": "./color.json"
},
"normal": {
"$ref": "./color.json"
},
"metalness": {
"anyOf": [
{
"$ref": "../general/hexColor.json"
},
{
"type": "string",
"$ref": "../general/reference/terrainTexture.json"
},
{
"type": "integer",
"minimum": 0,
"maximum": 256
}
]
},
"emissive": {
"anyOf": [
{
"$ref": "../general/hexColor.json"
},
{
"type": "string",
"$ref": "../general/reference/terrainTexture.json"
},
{
"type": "integer",
"minimum": 0,
"maximum": 256
}
]
},
"roughness": {
"heightmap": {
"anyOf": [
{
"$ref": "../general/hexColor.json"
Expand All @@ -73,23 +37,26 @@
"metalness_emissive_roughness": {
"$ref": "./color.json"
},
"heightmap": {
"anyOf": [
{
"$ref": "../general/hexColor.json"
},
{
"type": "string",
"$ref": "../general/reference/terrainTexture.json"
},
{
"type": "integer",
"minimum": 0,
"maximum": 256
}
]
"metalness_emissive_roughness_subsurface": {
"$ref": "./color.json"
}
},
"required": ["color"],
"allOf": [
{
"not": {
"required": ["normal", "heightmap"]
}
},
{
"not": {
"required": [
"metalness_emissive_roughness",
"metalness_emissive_roughness_subsurface"
]
}
}
}
]
}
}
}