Skip to content

Commit

Permalink
[v1.1.30] Merge pull request #34 from bridge-core/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelant05 authored Apr 30, 2021
2 parents 820568d + f9fd1eb commit d7d2b33
Show file tree
Hide file tree
Showing 13 changed files with 482 additions and 305 deletions.
14 changes: 7 additions & 7 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"trailingComma": "es5",
"useTabs": true,
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"printWidth": 80
}
"trailingComma": "es5",
"useTabs": true,
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"printWidth": 80
}
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.

69 changes: 48 additions & 21 deletions package-lock.json

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

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.29",
"version": "1.1.30",
"description": "Provide data for the bridge. editor",
"main": "dist/auto-completions.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion packages/auto_completions/biome/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@
"steep_material_adjustment": {
"material": "$general.block_identifier",
"north_slopes": "$general.boolean",
"east_slopes": "$general.boolean"
"east_slopes": "$general.boolean",
"south_slopes": "$general.boolean",
"west_slopes": "$general.boolean"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/auto_completions/block/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"sequence": {
"$dynamic.list.next_index": {
"condition": "$molang.embedded",
"$load": "$block.event"
}
},
Expand Down
12 changes: 12 additions & 0 deletions packages/auto_completions/entity/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,18 @@
"min_range_inactivity_timer": "$general.number",
"min_range_random_chance": "$general.number"
},
"$versioned_template.minecraft:drying_out_timer": [
{
"$if": "$format_version >= 1.17.0",
"$data": {
"dried_out_event": "$entity.general.event_definition",
"recover_after_dried_out_event": "$entity.general.event_definition",
"stopped_drying_out_event": "$entity.general.event_definition",
"total_time": "$general.number",
"water_bottle_refill_time": "$general.number"
}
}
],
"minecraft:dweller": {
"dwelling_type": ["village"],
"dweller_role": ["hostile", "inhabitant", "defender"],
Expand Down
258 changes: 120 additions & 138 deletions packages/auto_completions/entity/filters.json
Original file line number Diff line number Diff line change
@@ -1,139 +1,121 @@
{
"@meta": { "validate": "entity/filterStructure.js" },

"all_of": {
"$dynamic.list.next_index": "$entity.filters"
},
"any_of": {
"$dynamic.list.next_index": "$entity.filters"
},
"none_of": {
"$dynamic.list.next_index": "$entity.filters"
},
"$versioned_template": [
{
"$if": "$format_version >= 1.16.0",
"$data": {
"test": "$entity.general.filters and $entity.general.filters_beta"
}
},
{
"$data": {
"test": "$entity.general.filters"
}
}
],
"subject": "$entity.general.filter_targets",
"operator": "$entity.general.filter_operators",
"$dynamic_template.domain": {
"$key": "$dynamic.siblings.test",
"has_equipment": "$general.has_equipment_slot",
"is_game_rule": "$general.gamerule"
},
"$dynamic_template.value": {
"$key": "$dynamic.siblings.test",
"$fallback": {
"@meta": {
"is_value": true
}
},
"$default": {
"@meta": {
"is_value": true
}
},
"is_daytime": "$general.boolean",
"is_game_rule": "$general.boolean",
"is_underwater": "$general.boolean",
"in_nether": "$general.boolean",
"in_water": "$general.boolean",
"in_water_or_rain": "$general.boolean",
"is_humid": "$general.boolean",
"in_lava": "$general.boolean",
"in_clouds": "$general.boolean",
"in_caravan": "$general.boolean",
"is_underground": "$general.boolean",
"is_in_village": "$general.boolean",
"on_ground": "$general.boolean",
"on_ladder": "$general.boolean",
"is_climbing": "$general.boolean",
"is_sneaking": "$general.boolean",
"is_moving": "$general.boolean",
"is_riding": "$general.boolean",
"is_owner": "$general.boolean",
"is_target": "$general.boolean",
"is_leashed_to": "$general.boolean",
"is_leashed": "$general.boolean",
"is_immobile": "$general.boolean",
"is_avoiding_mobs": "$general.boolean",
"is_visible": "$general.boolean",
"is_snow_covered": "$general.boolean",
"is_persistent": "$general.boolean",
"has_trade_supply": "$general.boolean",
"trusts": "$general.boolean",
"has_container_open": "$general.boolean",
"has_ranged_weapon": "$general.boolean",
"has_target": "$general.boolean",
"surface_mob": "$general.boolean",
"has_equipment": "$general.item_identifier and $general.block_identifier",
"has_component": "('minecraft:effect.' + $general.effect_name) and asValue($entity.general.components)",
"has_ability": "$general.ability",
"is_family": "$entity.general.family",
"has_mob_effect": "$general.effect_name",
"has_biome_tag": "$general.biome_tag and $dynamic.cache.biome.tags",
"has_damage": "$general.damage_type",
"is_color": "$general.color_palette",
"is_biome": "$general.biome_name",
"is_block": "$general.block_identifier",
"is_difficulty": "$general.game_difficulty",
"is_temperature_type": [
"ocean",
"cold",
"mild",
"warm"
],
"moon_phase": [
0,
1,
2,
3,
4,
5,
6,
7
],
"weather": [
"clear",
"rain",
"thunderstorm",
"precipitation"
],
"weather_at_position": [
"clear",
"rain",
"thunderstorm",
"precipitation"
],
"hourly_clock_time": "$general.hourly_clock_time",
"clock_time": "$general.decimal",
"moon_intensity": "$general.decimal",
"distance_to_nearest_player": "$general.number",
"is_mark_variant": "$general.number",
"is_variant": "$general.number",
"is_skin_id": "$general.number",
"is_altitude": "$general.number",
"is_brightness": "$general.decimal",
"is_temperature_value": "$general.decimal",
"rider_count": "$general.number",
"inactivity_timer": "$general.number",
"random_chance": "$general.number",
"light_level": "$general.number0_15",
"is_sleeping": "$general.boolean",
"has_tag": {
"@meta": {
"is_value": true
},
"@import.value.tag": "$dynamic.cache.function.tags"
}
}
}
"@meta": { "validate": "entity/filterStructure.js" },

"all_of": {
"$dynamic.list.next_index": "$entity.filters"
},
"any_of": {
"$dynamic.list.next_index": "$entity.filters"
},
"none_of": {
"$dynamic.list.next_index": "$entity.filters"
},
"$versioned_template": [
{
"$if": "$format_version >= 1.17.0",
"$data": {
"test": "$entity.general.filters and $entity.general.filters_beta"
}
},
{
"$data": {
"test": "$entity.general.filters"
}
}
],
"subject": "$entity.general.filter_targets",
"operator": "$entity.general.filter_operators",
"$dynamic_template.domain": {
"$key": "$dynamic.siblings.test",
"has_equipment": "$general.has_equipment_slot",
"is_game_rule": "$general.gamerule"
},
"$dynamic_template.value": {
"$key": "$dynamic.siblings.test",
"$fallback": {
"@meta": {
"is_value": true
}
},
"$default": {
"@meta": {
"is_value": true
}
},
"is_daytime": "$general.boolean",
"is_game_rule": "$general.boolean",
"is_underwater": "$general.boolean",
"in_nether": "$general.boolean",
"in_water": "$general.boolean",
"in_water_or_rain": "$general.boolean",
"is_humid": "$general.boolean",
"in_lava": "$general.boolean",
"in_clouds": "$general.boolean",
"in_caravan": "$general.boolean",
"is_underground": "$general.boolean",
"is_in_village": "$general.boolean",
"on_ground": "$general.boolean",
"on_ladder": "$general.boolean",
"is_climbing": "$general.boolean",
"is_sneaking": "$general.boolean",
"is_moving": "$general.boolean",
"is_riding": "$general.boolean",
"is_owner": "$general.boolean",
"is_target": "$general.boolean",
"is_leashed_to": "$general.boolean",
"is_leashed": "$general.boolean",
"is_immobile": "$general.boolean",
"is_avoiding_mobs": "$general.boolean",
"is_visible": "$general.boolean",
"is_snow_covered": "$general.boolean",
"is_persistent": "$general.boolean",
"has_trade_supply": "$general.boolean",
"trusts": "$general.boolean",
"has_container_open": "$general.boolean",
"has_ranged_weapon": "$general.boolean",
"has_target": "$general.boolean",
"surface_mob": "$general.boolean",
"has_equipment": "$general.item_identifier and $general.block_identifier",
"has_component": "('minecraft:effect.' + $general.effect_name) and asValue($entity.general.components)",
"has_ability": "$general.ability",
"is_family": "$entity.general.family",
"has_mob_effect": "$general.effect_name",
"has_biome_tag": "$general.biome_tag and $dynamic.cache.biome.tags",
"has_damage": "$general.damage_type",
"is_color": "$general.color_palette",
"is_biome": "$general.biome_name",
"is_block": "$general.block_identifier",
"is_difficulty": "$general.game_difficulty",
"is_temperature_type": ["ocean", "cold", "mild", "warm"],
"moon_phase": [0, 1, 2, 3, 4, 5, 6, 7],
"weather": ["clear", "rain", "thunderstorm", "precipitation"],
"weather_at_position": [
"clear",
"rain",
"thunderstorm",
"precipitation"
],
"hourly_clock_time": "$general.hourly_clock_time",
"clock_time": "$general.decimal",
"moon_intensity": "$general.decimal",
"distance_to_nearest_player": "$general.number",
"is_mark_variant": "$general.number",
"is_variant": "$general.number",
"is_skin_id": "$general.number",
"is_altitude": "$general.number",
"is_brightness": "$general.decimal",
"is_temperature_value": "$general.decimal",
"rider_count": "$general.number",
"inactivity_timer": "$general.number",
"random_chance": "$general.number",
"light_level": "$general.number0_15",
"is_sleeping": "$general.boolean",
"has_tag": {
"@meta": {
"is_value": true
},
"@import.value.tag": "$dynamic.cache.function.tags"
},
"in_contact_with_water": "$general.boolean"
}
}
Loading

0 comments on commit d7d2b33

Please sign in to comment.