Skip to content

Commit

Permalink
[v1.1.33] Merge pull request #39 from bridge-core/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelant05 authored May 22, 2021
2 parents a2475ee + 67b0d82 commit 8f75169
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/auto-completions.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/auto-completions.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bridge-data",
"version": "1.1.32",
"version": "1.1.33",
"description": "Provide data for the bridge. editor",
"main": "dist/auto-completions.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/auto_completions/block/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"damage": {
"amount": "$general.number",
"target": ["other", "self"],
"target": ["item", "other", "self"],
"type": "$general.damage_type"
},
"decrement_stack": {
Expand Down
63 changes: 62 additions & 1 deletion packages/auto_completions/entity/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,61 @@
"@import.value.refs": "$dynamic.entity.animation_references"
}
}
}
},
"$versioned_template.aliases": [
{
"$if": "$format_version >= 1.17.0",
"$data": {
"$placeholder": {
"$placeholder": {
"@meta": {
"is_value": true
}
}
}
}
}
],
"$versioned_template.properties": [
{
"$if": "$format_version >= 1.17.0",
"$data": {
"$placeholder": {
"values": {
"$dynamic.list.next_index": {
"@meta": {
"is_value": true
}
}
},
"min": "$general.number",
"max": "$general.number",
"default": {
"@meta": {
"is_value": true
}
},
"client_sync": "$general.boolean"
}
}
}
]
},
"component_groups": {
"$placeholder": "$entity.general.components"
},
"components": "$entity.general.components",
"$versioned_template.permutations": [
{
"$if": "$format_version >= 1.17.0",
"$data": {
"$dynamic.list.next_index": {
"condition": "$molang.embedded",
"components": "$entity.general.components"
}
}
}
],
"events": {
"$asObject": "$entity.general.built_in_event",
"$placeholder": {
Expand Down Expand Up @@ -196,6 +245,18 @@
}
}
}
],
"$versioned_template.set_actor_property": [
{
"$if": "$format_version >= 1.17.0",
"$data": {
"$placeholder": {
"@meta": {
"is_value": true
}
}
}
}
]
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/auto_completions/feature/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@
],
"$versioned_template.minecraft:vegetation_patch_feature": [
{
"$if": "$format_version >= 1.16.220",
"$if": "$format_version >= 1.17.0",
"$data": {
"replaceable_blocks": {
"$dynamic.list.next_index": "$feature.general.block_reference"
Expand Down Expand Up @@ -479,7 +479,7 @@
],
"$versioned_template.minecraft:geode_feature": [
{
"$if": "$format_version >= 1.16.220",
"$if": "$format_version >= 1.17.0",
"$data": {
"description": {
"identifier": "$general.file_identifier"
Expand Down Expand Up @@ -512,7 +512,7 @@
],
"$versioned_template.minecraft:multiface_feature": [
{
"$if": "$format_version >= 1.16.220",
"$if": "$format_version >= 1.17.0",
"$data": {
"description": {
"identifier": "$general.file_identifier"
Expand Down
2 changes: 1 addition & 1 deletion packages/auto_completions/item/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"repair_items": {
"$dynamic.list.next_index": {
"items": {
"$dynamic.list.next_index": "$general.item_identifier"
"$dynamic.list.next_index": "$general.block_identifier and $general.item_identifier"
},
"repair_amount": "$general.number and $molang.embedded"
}
Expand Down
14 changes: 13 additions & 1 deletion packages/auto_completions/item/main.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"format_version": "$general.format_version",
"format_version": {
"@import.value": "$general.format_version",
"@meta": {
"is_value": true,
"validate": {
"confirm": "Bridge.Version.compare(Bridge.Node.data, '1.16.100', '>')",
"then": {
"show": true,
"message": "Format version 1.16.200+ for items may produce unexpected results; use 1.16.100 instead"
}
}
}
},
"minecraft:item": {
"description": {
"identifier": "$general.file_identifier and $general.item_identifier",
Expand Down
4 changes: 2 additions & 2 deletions packages/auto_completions/loot_table/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"$dynamic_template": {
"$key": "$dynamic.children.type",
"item": {
"name": "$general.item_identifier",
"name": "$general.block_identifier and $general.item_identifier",
"weight": "$general.number",
"functions": "$loot_table.functions",
"pools": "$loot_table.main.pools"
Expand All @@ -58,4 +58,4 @@
}
}
}
}
}

0 comments on commit 8f75169

Please sign in to comment.