Skip to content

Commit

Permalink
Merge branch 'main' into upd
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio authored Sep 29, 2023
2 parents f4bbf5d + 7df51ed commit 70654c3
Show file tree
Hide file tree
Showing 16 changed files with 238 additions and 174 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Provides data such as schemas, file definitions or themes for bridge. v2
1. Create a .env file. Add `EDITOR_DIR=path/to/bridgev2/repo` to it. This path should point to the cloned [bridge-core/editor](https://github.com/bridge-core/editor) repo
2. Run `deno task dev`

**Note**
To view the local data packages ensure that `Force Data Download` is enabled inside of Bridge's developer settings

## Build for production

This repo hosts a GitHub action that automatically builds the packages folder and commits it to the `dev` branch of our [bridge-core/editor](https://github.com/bridge-core/editor) repo. You can manually trigger a build by running `deno task build`.
6 changes: 0 additions & 6 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/minecraftBedrock/preset/block/blank/block.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"format_version": "1.16.100",
"format_version": "1.20.0",
"minecraft:block": {
"description": {
"identifier": "{{PROJECT_PREFIX}}:{{IDENTIFIER}}"
},
"components": {}
}
}
}
54 changes: 44 additions & 10 deletions packages/minecraftBedrock/preset/block/blank/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
"category": "fileType.block",
"showIfDisabled": false,
"requires": {
"targetVersion": [">=", "1.16.100"],
"packTypes": ["behaviorPack", "resourcePack"]
"targetVersion": [
">=",
"1.20.0"
],
"packTypes": [
"behaviorPack",
"resourcePack"
]
},
"additionalModels": {
"DEFAULT_TEXTURE": "texture.png",
Expand All @@ -16,23 +22,44 @@
[
"Image (Optional)",
"TEXTURE",
{ "type": "fileInput", "accept": "image/png", "optional": true }
{
"type": "fileInput",
"accept": "image/png",
"optional": true
}
],
[
"Identifier",
"IDENTIFIER",
{ "validate": ["required", "alphanumeric", "lowercase"] }
{
"validate": [
"required",
"alphanumeric",
"lowercase"
]
}
],
["Display Name", "IDENTIFIER_NAME", { "validate": ["required"] }]
[
"Display Name",
"IDENTIFIER_NAME",
{
"validate": [
"required"
]
}
]
],

"createFiles": [
"presetScript/blockImages.js",
[
"block.json",
"blocks/{{PRESET_PATH}}{{IDENTIFIER}}.json",
{
"inject": ["IDENTIFIER", "PROJECT_PREFIX", "PRESET_PATH"],
"inject": [
"IDENTIFIER",
"PROJECT_PREFIX",
"PRESET_PATH"
],
"openFile": true,
"packPath": "behaviorPack"
}
Expand All @@ -43,17 +70,24 @@
"clientBlock.json",
"blocks.json",
{
"inject": ["IDENTIFIER", "PROJECT_PREFIX"],
"inject": [
"IDENTIFIER",
"PROJECT_PREFIX"
],
"packPath": "resourcePack"
}
],
[
"en_US.lang",
"texts/en_US.lang",
{
"inject": ["IDENTIFIER", "IDENTIFIER_NAME", "PROJECT_PREFIX"],
"inject": [
"IDENTIFIER",
"IDENTIFIER_NAME",
"PROJECT_PREFIX"
],
"packPath": "resourcePack"
}
]
]
}
}
53 changes: 43 additions & 10 deletions packages/minecraftBedrock/preset/block/customGeometry/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,45 @@
"description": "Creates a new, basic block with custom geometry.",
"category": "fileType.block",
"requires": {
"targetVersion": [">=", "1.16.100"],
"packTypes": ["behaviorPack", "resourcePack"]
"targetVersion": [
">=",
"1.19.50"
],
"packTypes": [
"behaviorPack",
"resourcePack"
]
},
"additionalModels": {
"DEFAULT_TEXTURE": "texture.png",
"MODEL_SAVE_PATH": ["resourcePack", "models/blocks/"],
"MODEL_SAVE_PATH": [
"resourcePack",
"models/blocks/"
],
"DEFAULT_MODEL": "geometry.json",
"PRESET_PATH": ""
},
"fields": [
[
"Identifier",
"IDENTIFIER",
{ "validate": ["required", "alphanumeric", "lowercase"] }
{
"validate": [
"required",
"alphanumeric",
"lowercase"
]
}
],
[
"Display Name",
"IDENTIFIER_NAME",
{
"validate": [
"required"
]
}
],
["Display Name", "IDENTIFIER_NAME", { "validate": ["required"] }],
[
"Block Model",
"MODEL",
Expand All @@ -41,13 +64,16 @@
}
]
],

"createFiles": [
[
"block.json",
"blocks/{{PRESET_PATH}}{{IDENTIFIER}}.json",
{
"inject": ["IDENTIFIER", "PROJECT_PREFIX", "PRESET_PATH"],
"inject": [
"IDENTIFIER",
"PROJECT_PREFIX",
"PRESET_PATH"
],
"openFile": true,
"packPath": "behaviorPack"
}
Expand All @@ -60,17 +86,24 @@
"clientBlock.json",
"blocks.json",
{
"inject": ["IDENTIFIER", "PROJECT_PREFIX"],
"inject": [
"IDENTIFIER",
"PROJECT_PREFIX"
],
"packPath": "resourcePack"
}
],
[
"en_US.lang",
"texts/en_US.lang",
{
"inject": ["IDENTIFIER", "IDENTIFIER_NAME", "PROJECT_PREFIX"],
"inject": [
"IDENTIFIER",
"IDENTIFIER_NAME",
"PROJECT_PREFIX"
],
"packPath": "resourcePack"
}
]
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"then": {
"type": "object",
"properties": {
"minecraft:transformation": {
"$ref": "/data/packages/minecraftBedrock/schema/block/v1.19.80/components/transformation.json"
},
"minecraft:queued_ticking": {
"$ref": "/data/packages/minecraftBedrock/schema/block/v1.19.10/components/queued_ticking.json"
},
Expand Down Expand Up @@ -49,6 +46,9 @@
{
"type": "object",
"properties": {
"minecraft:transformation": {
"$ref": "/data/packages/minecraftBedrock/schema/block/v1.19.80/components/transformation.json"
},
"minecraft:placement_filter": {
"$ref": "../../v1.16.100/components/placement_filter.json"
},
Expand Down Expand Up @@ -160,4 +160,4 @@
}
}
]
}
}
63 changes: 32 additions & 31 deletions packages/minecraftBedrock/schema/block/v1.19.80/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"properties": {
"minecraft:block": {
"title": "Block Definition",
"required": ["description"],
"required": [
"description"
],
"type": "object",
"allOf": [
{
Expand All @@ -14,7 +16,6 @@
"title": "Description",
"$ref": "./description.json"
},

"components": {
"title": "Components",
"allOf": [
Expand All @@ -25,6 +26,34 @@
"$ref": "./components/_main.json"
}
]
},
"permutations": {
"title": "Permutations",
"description": "List of block permutations based on MoLang queries",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"condition": {
"title": "Condition",
"description": "MoLang condition",
"$ref": "/data/packages/minecraftBedrock/schema/molang/embedded.json"
},
"components": {
"title": "Components",
"description": "Components to add when the condition evaluates to 'true'",
"allOf": [
{
"$ref": "/data/packages/minecraftBedrock/schema/block/dynamic/customComponents.json"
},
{
"$ref": "./components/_main.json"
}
]
}
}
}
}
}
},
Expand All @@ -33,34 +62,6 @@
"then": {
"type": "object",
"properties": {
"permutations": {
"title": "Permutations",
"description": "List of block permutations based on MoLang queries",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"condition": {
"title": "Condition",
"description": "MoLang condition",
"$ref": "/data/packages/minecraftBedrock/schema/molang/embedded.json"
},
"components": {
"title": "Components",
"description": "Components to add when the condition evaluates to 'true'",
"allOf": [
{
"$ref": "/data/packages/minecraftBedrock/schema/block/dynamic/customComponents.json"
},
{
"$ref": "./components/_main.json"
}
]
}
}
}
},
"events": {
"title": "Events",
"type": "object",
Expand All @@ -86,4 +87,4 @@
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"then": {
"type": "object",
"properties": {
"minecraft:transformation": {
"$ref": "../../v1.19.80/components/transformation.json"
},
"minecraft:queued_ticking": {
"$ref": "../../v1.19.10/components/queued_ticking.json"
},
Expand Down Expand Up @@ -49,6 +46,9 @@
{
"type": "object",
"properties": {
"minecraft:transformation": {
"$ref": "/data/packages/minecraftBedrock/schema/block/v1.19.80/components/transformation.json"
},
"minecraft:placement_filter": {
"$ref": "../../v1.16.100/components/placement_filter.json"
},
Expand Down Expand Up @@ -160,4 +160,4 @@
}
}
]
}
}
Loading

0 comments on commit 70654c3

Please sign in to comment.