refactor: use submodules

This commit is contained in:
Dmitry Luk committed 2025-03-07 01:02:32 +04:00
1 parent 0a93b0fac3
commit 248eb174d8
10 files changed
+28 -217

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
[submodule "platforms/allay/src/main/resources/mappings"]
path = platforms/allay/src/main/resources/mappings
url = https://github.com/GeyserMC/mappings
[submodule "platforms/allay/src/main/resources/mappings-generator"]
path = platforms/allay/src/main/resources/mappings-generator
url = https://github.com/GeyserMC/mappings-generator
+1
View File
@@ -0,0 +1 @@
mapping/*.json
-18
View File
@@ -1,23 +1,5 @@
# Allay platform # Allay platform
## Use
```yaml
# world-settings.yml
worlds:
world:
enable: true
runtime-only: false
storage-type: LEVELDB
overworld:
generator-type: TERRA
generator-preset: pack=overworld;seed=<a number>
nether: null
the-end: null
default-world: world
```
## Resource files ## Resource files
Current mapping version: je 1.21.4 to be 1.21.50 Current mapping version: je 1.21.4 to be 1.21.50
+19
View File
@@ -5,3 +5,22 @@ dependencies {
compileOnly("org.allaymc.allay", "api", Versions.Allay.api) compileOnly("org.allaymc.allay", "api", Versions.Allay.api)
} }
tasks.register<Copy>("copyMappings") {
from("src/main/resources/mappings") {
include("biomes.json", "items.json")
}
from("src/main/resources/mappings-generator") {
include("generator_blocks.json")
rename("generator_blocks.json", "blocks.json")
}
into("src/main/resources/mapping")
}
tasks.processResources {
dependsOn("copyMappings")
exclude("mapping/.keep")
exclude("mappings/**")
exclude("mappings-generator/**")
}
Whitespace-only changes.
@@ -1,197 +0,0 @@
{
"minecraft:badlands": {
"bedrock_id": 37
},
"minecraft:bamboo_jungle": {
"bedrock_id": 48
},
"minecraft:basalt_deltas": {
"bedrock_id": 181
},
"minecraft:beach": {
"bedrock_id": 16
},
"minecraft:birch_forest": {
"bedrock_id": 27
},
"minecraft:cherry_grove": {
"bedrock_id": 192
},
"minecraft:cold_ocean": {
"bedrock_id": 44
},
"minecraft:crimson_forest": {
"bedrock_id": 179
},
"minecraft:dark_forest": {
"bedrock_id": 29
},
"minecraft:deep_cold_ocean": {
"bedrock_id": 45
},
"minecraft:deep_dark": {
"bedrock_id": 190
},
"minecraft:deep_frozen_ocean": {
"bedrock_id": 47
},
"minecraft:deep_lukewarm_ocean": {
"bedrock_id": 43
},
"minecraft:deep_ocean": {
"bedrock_id": 24
},
"minecraft:desert": {
"bedrock_id": 2
},
"minecraft:dripstone_caves": {
"bedrock_id": 188
},
"minecraft:end_barrens": {
"bedrock_id": 9
},
"minecraft:end_highlands": {
"bedrock_id": 9
},
"minecraft:end_midlands": {
"bedrock_id": 9
},
"minecraft:eroded_badlands": {
"bedrock_id": 165
},
"minecraft:flower_forest": {
"bedrock_id": 132
},
"minecraft:forest": {
"bedrock_id": 4
},
"minecraft:frozen_ocean": {
"bedrock_id": 46
},
"minecraft:frozen_peaks": {
"bedrock_id": 183
},
"minecraft:frozen_river": {
"bedrock_id": 11
},
"minecraft:grove": {
"bedrock_id": 185
},
"minecraft:ice_spikes": {
"bedrock_id": 140
},
"minecraft:jagged_peaks": {
"bedrock_id": 182
},
"minecraft:jungle": {
"bedrock_id": 21
},
"minecraft:lukewarm_ocean": {
"bedrock_id": 42
},
"minecraft:lush_caves": {
"bedrock_id": 187
},
"minecraft:mangrove_swamp": {
"bedrock_id": 191
},
"minecraft:meadow": {
"bedrock_id": 186
},
"minecraft:mushroom_fields": {
"bedrock_id": 14
},
"minecraft:nether_wastes": {
"bedrock_id": 8
},
"minecraft:ocean": {
"bedrock_id": 0
},
"minecraft:old_growth_birch_forest": {
"bedrock_id": 155
},
"minecraft:old_growth_pine_taiga": {
"bedrock_id": 32
},
"minecraft:old_growth_spruce_taiga": {
"bedrock_id": 160
},
"minecraft:pale_garden": {
"bedrock_id": 62
},
"minecraft:plains": {
"bedrock_id": 1
},
"minecraft:river": {
"bedrock_id": 7
},
"minecraft:savanna": {
"bedrock_id": 35
},
"minecraft:savanna_plateau": {
"bedrock_id": 36
},
"minecraft:small_end_islands": {
"bedrock_id": 9
},
"minecraft:snowy_beach": {
"bedrock_id": 26
},
"minecraft:snowy_plains": {
"bedrock_id": 12
},
"minecraft:snowy_slopes": {
"bedrock_id": 184
},
"minecraft:snowy_taiga": {
"bedrock_id": 30
},
"minecraft:soul_sand_valley": {
"bedrock_id": 178
},
"minecraft:sparse_jungle": {
"bedrock_id": 23
},
"minecraft:stony_peaks": {
"bedrock_id": 189
},
"minecraft:stony_shore": {
"bedrock_id": 25
},
"minecraft:sunflower_plains": {
"bedrock_id": 129
},
"minecraft:swamp": {
"bedrock_id": 6
},
"minecraft:taiga": {
"bedrock_id": 5
},
"minecraft:the_end": {
"bedrock_id": 9
},
"minecraft:the_void": {
"bedrock_id": 7
},
"minecraft:warm_ocean": {
"bedrock_id": 40
},
"minecraft:warped_forest": {
"bedrock_id": 180
},
"minecraft:windswept_forest": {
"bedrock_id": 34
},
"minecraft:windswept_gravelly_hills": {
"bedrock_id": 131
},
"minecraft:windswept_hills": {
"bedrock_id": 3
},
"minecraft:windswept_savanna": {
"bedrock_id": 163
},
"minecraft:wooded_badlands": {
"bedrock_id": 38
}
}
@@ -1 +0,0 @@
{"mappings":[{"java_state":{"Name":"minecraft:air"},"bedrock_state":{"bedrock_identifier":"air"}},{"java_state":{"Name":"minecraft:stone"},"bedrock_state":{"bedrock_identifier":"stone"}},{"java_state":{"Name":"minecraft:granite"},"bedrock_state":{"bedrock_identifier":"granite"}},{"java_state":{"Name":"minecraft:polished_granite"},"bedrock_state":{"bedrock_identifier":"polished_granite"}},{"java_state":{"Name":"minecraft:diorite"},"bedrock_state":{"bedrock_identifier":"diorite"}},{"java_state":{"Name":"minecraft:polished_diorite"},"bedrock_state":{"bedrock_identifier":"polished_diorite"}},{"java_state":{"Name":"minecraft:andesite"},"bedrock_state":{"bedrock_identifier":"andesite"}},{"java_state":{"Name":"minecraft:polished_andesite"},"bedrock_state":{"bedrock_identifier":"polished_andesite"}},{"java_state":{"Properties":{"snowy":"true"},"Name":"minecraft:grass_block"},"bedrock_state":{"bedrock_identifier":"grass_block"}},{"java_state":{"Properties":{"snowy":"false"},"Name":"minecraft:grass_block"},"bedrock_state":{"bedrock_identifier":"grass_block"}},{"java_state":{"Name":"minecraft:dirt"},"bedrock_state":{"bedrock_identifier":"dirt"}},{"java_state":{"Name":"minecraft:coarse_dirt"},"bedrock_state":{"bedrock_identifier":"coarse_dirt"}},{"java_state":{"Properties":{"snowy":"true"},"Name":"minecraft:podzol"},"bedrock_state":{"bedrock_identifier":"podzol"}},{"java_state":{"Properties":{"snowy":"false"},"Name":"minecraft:podzol"},"bedrock_state":{"bedrock_identifier":"podzol"}},{"java_state":{"Name":"minecraft:cobblestone"},"bedrock_state":{"bedrock_identifier":"cobblestone"}},{"java_state":{"Name":"minecraft:oak_planks"},"bedrock_state":{"bedrock_identifier":"oak_planks"}},{"java_state":{"Name":"minecraft:spruce_planks"},"bedrock_state":{"bedrock_identifier":"spruce_planks"}},{"java_state":{"Name":"minecraft:birch_planks"},"bedrock_state":{"bedrock_identifier":"birch_planks"}},{"java_state":{"Name":"minecraft:jungle_planks"},"bedrock_state":{"bedrock_identifier":"jungle_planks"}},{"java_state":{"Name":"minecraft:acacia_planks"},"bedrock_state":{"bedrock_identifier":"acacia_planks"}},{"java_state":{"Name":"minecraft:cherry_planks"},"bedrock_state":{"bedrock_identifier":"cherry_planks"}},{"java_state":{"Name":"minecraft:dark_oak_planks"},"bedrock_state":{"bedrock_identifier":"dark_oak_planks"}},{"java_state":{"Properties":{"axis":"x"},"Name":"minecraft:pale_oak_wood"},"bedrock_state":{"bedrock_identifier":"pale_oak_wood","state":{"pillar_axis":"x"}}},{"java_state":{"Properties":{"axis":"y"},"Name":"minecraft:pale_oak_wood"},"bedrock_state":{"bedrock_identifier":"pale_oak_wood","state":{"pillar_axis":"y"}}},{"java_state":{"Properties":{"axis":"z"},"Name":"minecraft:pale_oak_wood"},"bedrock_state":{"bedrock_identifier":"pale_oak_wood","state":{"pillar_axis":"z"}}},{"java_state":{"Name":"minecraft:pale_oak_planks"},"bedrock_state":{"bedrock_identifier":"pale_oak_planks"}},{"java_state":{"Name":"minecraft:mangrove_planks"},"bedrock_state":{"bedrock_identifier":"mangrove_planks"}},{"java_state":{"Name":"minecraft:bamboo_planks"},"bedrock_state":{"bedrock_identifier":"bamboo_planks"}},{"java_state":{"Name":"minecraft:bamboo_mosaic"},"bedrock_state":{"bedrock_identifier":"bamboo_mosaic"}},{"java_state":{"Properties":{"stage":"0"},"Name":"minecraft:oak_sapling"},"bedrock_state":{"bedrock_identifier":"oak_sapling","state":{"age_bit":false}}},{"java_state":{"Properties":{"stage":"1"},"Name":"minecraft:oak_sapling"},"bedrock_state":{"bedrock_identifier":"oak_sapling","state":{"age_bit":true}}},{"java_state":{"Properties":{"stage":"0"},"Name":"minecraft:spruce_sapling"},"bedrock_state":{"bedrock_identifier":"spruce_sapling","state":{"age_bit":false}}},{"java_state":{"Properties":{"stage":"1"},"Name":"minecraft:spruce_sapling"},"bedrock_state":{"bedrock_identifier":"spruce_sapling","state":{"age_bit":true}}},{"java_state":{"Properties":{"stage":"0"},"Name":"minecraft:birch_sapling"},"bedrock_state":{"bedrock_identifier":"birch_sapling","state":{"age_bit":false}}},{"java_state":{"Properties":{"stage":"1"},"Name":"minecraft:birch_sapling"},"bedrock_state":{"bedrock_identifier":"birch_sapling","state":{"age_bit":true}}},{"java_state":{"Properties":{"stage":"0"},"Name":"minecraft:jungle_sapling"},"bedrock_state":{"bedrock_identifier":"jungle_sapling","state":{"age_bit":false}}},{"java_state":{"Properties":{"stage":"1"},"Name":"minecraft:jungle_sapling"},"bedrock_state":{"bedrock_identifier":"jungle_sapling","state":{"age_bit":true}}},{"java_state":{"Properties":{"stage":"0"},"Name":"minecraft:acacia_sapling"},"bedrock_state":{"bedrock_identifier":"acacia_sapling","state":{"age_bit":false}}},{"java_state":{"Properties":{"stage":"1"},"Name":"minecraft:acacia_sapling"},"bedrock_state":{"bedrock_identifier":"acacia_sapling","state":{"age_bit":true}}},{"java_state":{"Properties":{"stage":"0"},"Name":"minecraft:cherry_sapling"},"bedrock_state":{"bedrock_identifier":"cherry_sapling","state":{"age_bit":false}}},{"java_state":{"PropertiesLine truncated
@@ -1 +0,0 @@
{"minecraft:air":{"bedrock_identifier":"minecraft:air","bedrock_data":0},"minecraft:stone":{"bedrock_identifier":"minecraft:stone","bedrock_data":0,"firstBlockRuntimeId":1},"minecraft:granite":{"bedrock_identifier":"minecraft:granite","bedrock_data":1,"firstBlockRuntimeId":2},"minecraft:polished_granite":{"bedrock_identifier":"minecraft:polished_granite","bedrock_data":2,"firstBlockRuntimeId":3},"minecraft:diorite":{"bedrock_identifier":"minecraft:diorite","bedrock_data":3,"firstBlockRuntimeId":4},"minecraft:polished_diorite":{"bedrock_identifier":"minecraft:polished_diorite","bedrock_data":4,"firstBlockRuntimeId":5},"minecraft:andesite":{"bedrock_identifier":"minecraft:andesite","bedrock_data":5,"firstBlockRuntimeId":6},"minecraft:polished_andesite":{"bedrock_identifier":"minecraft:polished_andesite","bedrock_data":6,"firstBlockRuntimeId":7},"minecraft:deepslate":{"bedrock_identifier":"minecraft:deepslate","bedrock_data":0,"firstBlockRuntimeId":25917,"lastBlockRuntimeId":25919},"minecraft:cobbled_deepslate":{"bedrock_identifier":"minecraft:cobbled_deepslate","bedrock_data":0,"firstBlockRuntimeId":25920},"minecraft:polished_deepslate":{"bedrock_identifier":"minecraft:polished_deepslate","bedrock_data":0,"firstBlockRuntimeId":26331},"minecraft:calcite":{"bedrock_identifier":"minecraft:calcite","bedrock_data":0,"firstBlockRuntimeId":23329},"minecraft:tuff":{"bedrock_identifier":"minecraft:tuff","bedrock_data":0,"firstBlockRuntimeId":22094},"minecraft:tuff_slab":{"bedrock_identifier":"minecraft:tuff_slab","bedrock_data":0,"firstBlockRuntimeId":22095,"lastBlockRuntimeId":22100},"minecraft:tuff_stairs":{"bedrock_identifier":"minecraft:tuff_stairs","bedrock_data":0,"firstBlockRuntimeId":22101,"lastBlockRuntimeId":22180},"minecraft:tuff_wall":{"bedrock_identifier":"minecraft:tuff_wall","bedrock_data":0,"firstBlockRuntimeId":22181,"lastBlockRuntimeId":22504},"minecraft:chiseled_tuff":{"bedrock_identifier":"minecraft:chiseled_tuff","bedrock_data":0,"firstBlockRuntimeId":22916},"minecraft:polished_tuff":{"bedrock_identifier":"minecraft:polished_tuff","bedrock_data":0,"firstBlockRuntimeId":22505},"minecraft:polished_tuff_slab":{"bedrock_identifier":"minecraft:polished_tuff_slab","bedrock_data":0,"firstBlockRuntimeId":22506,"lastBlockRuntimeId":22511},"minecraft:polished_tuff_stairs":{"bedrock_identifier":"minecraft:polished_tuff_stairs","bedrock_data":0,"firstBlockRuntimeId":22512,"lastBlockRuntimeId":22591},"minecraft:polished_tuff_wall":{"bedrock_identifier":"minecraft:polished_tuff_wall","bedrock_data":0,"firstBlockRuntimeId":22592,"lastBlockRuntimeId":22915},"minecraft:tuff_bricks":{"bedrock_identifier":"minecraft:tuff_bricks","bedrock_data":0,"firstBlockRuntimeId":22917},"minecraft:tuff_brick_slab":{"bedrock_identifier":"minecraft:tuff_brick_slab","bedrock_data":0,"firstBlockRuntimeId":22918,"lastBlockRuntimeId":22923},"minecraft:tuff_brick_stairs":{"bedrock_identifier":"minecraft:tuff_brick_stairs","bedrock_data":0,"firstBlockRuntimeId":22924,"lastBlockRuntimeId":23003},"minecraft:tuff_brick_wall":{"bedrock_identifier":"minecraft:tuff_brick_wall","bedrock_data":0,"firstBlockRuntimeId":23004,"lastBlockRuntimeId":23327},"minecraft:chiseled_tuff_bricks":{"bedrock_identifier":"minecraft:chiseled_tuff_bricks","bedrock_data":0,"firstBlockRuntimeId":23328},"minecraft:dripstone_block":{"bedrock_identifier":"minecraft:dripstone_block","bedrock_data":0,"firstBlockRuntimeId":25781},"minecraft:grass_block":{"bedrock_identifier":"minecraft:grass_block","bedrock_data":0,"firstBlockRuntimeId":8,"lastBlockRuntimeId":9},"minecraft:dirt":{"bedrock_identifier":"minecraft:dirt","bedrock_data":0,"firstBlockRuntimeId":10},"minecraft:coarse_dirt":{"bedrock_identifier":"minecraft:coarse_dirt","bedrock_data":0,"firstBlockRuntimeId":11},"minecraft:podzol":{"bedrock_identifier":"minecraft:podzol","bedrock_data":0,"firstBlockRuntimeId":12,"lastBlockRuntimeId":13},"minecraft:rooted_dirt":{"bedrock_identifier":"minecraft:dirt_with_roots","bedrock_data":0,"firstBlockRuntimeId":25915},"minecraft:mud":{"bedrock_identifier":"minecraft:mud","bedrock_data":0,"firstBlockRuntimeId":25916},"minecraft:crimson_nylium":{"bedrock_identifier":"minecraft:crimson_nylium","bedrock_data":0,"firstBlockRuntimeId":19621},"minecraft:warped_nylium":{"bedrock_identifier":"minecraft:warped_nylium","bedrock_data":0,"firstBlockRuntimeId":19604},"minecraft:cobblestone":{"bedrock_identifier":"minecraft:cobblestone","bedrock_data":0,"firstBlockRuntimeId":14},"minecraft:oak_planks":{"bedrock_identifier":"minecraft:oak_planks","bedrock_data":0,"firstBlockRuntimeId":15},"minecraft:spruce_planks":{"bedrock_identifier":"minecraft:spruce_planks","bedrock_data":1,"firstBlockRuntimeId":16},"minecraft:birch_planks":{"bedrock_identifier":"minecraft:birch_planks","bedrock_data":2,"firstBlockRuntimeId":17},"minecraft:jungle_planks":{"bedrock_identifier":"minecraft:jungle_planks","bedrock_data":3,"firstBlockRuntimeId":18},"minecraft:acacia_planks":{"bedrock_identifier":"minecraft:acLine truncated