Skip to content

Commit 057ef36

Browse files
misoderuncowsSpecialBuilder32TheThanathor
authored
Update to 1.21.9 (#1164)
* Update beet and pack format * Update flash particle * Update chain -> icon_chain * Update noise router * Try to fix backwards plugin * Add min_format and max_format to overlays * runcows misc 1.21.9 commits (#1165) * Add copper weapons and armor to SR * Add copper golem to Reeling Rods * Disassembler copper tools and armor - untested overlay because beet is still broken * Update base tag lists * Add copper horse armor to Standard Crafting - overlay may be broken due to beet not being fully updated * Add mannequin to Reeling Rods steal_equipment * Lively Lily Pads 1.21.9 Feature Update (#1181) * Lively Lily Pads 1.21.9 * comments lie * Micro optimization * Metallurgy, desire lines, crossbow cartridges (#1168) * Remove deprecated `CanDuplicate` nbt from Gemini Shamir breed allay - This data field was removed in 1.21.5 * Add copper torch to Crossbow Cartridges * Metallurgy Copper Tools (not RP) * Replace `#gm4:boots` with `#minecraft:foot_armor` * Update `shamir_model_template.py` with copper * Adjust gold max damage + remove redundancy (#1167) * Update overlays with gold arborenda PR changes * Swap most overlays to `backport_81` - Disassemblers was left as `since_88` as the contents are generated - Standard Crafting was left as `since_88` because inverting it is not easy without errors in prior versions * More resource pack stuff? * Update `modeldata_registry` with copper Metallurgy Expansions - Update `modeldata_registry` with copper * Lightning in a Bottle 1.21.9 (#1188) * logic updating * attempt at connector textures + auto skin cache * Collapse overlay with block tags * Fix format fields for `beet dev` resource pack * [1.21.9] Fix overlay validation & beet (#1205) * Fix overlay validation by adding empty overlays * Update beet to 0.112.0 - Dev still broken * Readd empty space * Add 1.21.10 to supported (#1203) * Fix waterloggable tag order (#1202) * Fix (#1201) * Revert "Merge branch 'update-1.21.9' of https://github.com/Gamemode4Dev/GM4_Datapacks into update-1.21.9" This reverts commit 58097ab, reversing changes made to 6c297d2. * Revert "Merge remote-tracking branch 'upstream/master' into update-1.21.9" This reverts commit 6c297d2, reversing changes made to ccc5926. * Reapply "Merge remote-tracking branch 'upstream/master' into update-1.21.9" This reverts commit 93f767d. * Reapply "Merge branch 'update-1.21.9' of https://github.com/Gamemode4Dev/GM4_Datapacks into update-1.21.9" This reverts commit c790085. * Soul Glass - change recipe to normal furnace (#1211) * change recipe to use normal furnace * up module minor version * runcows comments * reduce desire line chance (#1212) * Vibro Shamir - use attributes (#1209) * let vibro use attributes note: this does not apply the safe fall distance from jump boost effect, but that is normally gone on landing anyway * add function header * Update packtest * Update beet to edayot's PR * Hex numbers are not supported by mecha yet * Update beet to fix worldgen in overlays * Fix metallurgy and lively lily pads overlays * Switch back to edayot's PR * Update beet to v0.112.1 * Make some failing tests optional --------- Co-authored-by: runcows <124551271+runcows@users.noreply.github.com> Co-authored-by: SpecialBuilder <specialbuilder32@gmail.com> Co-authored-by: Thanathor <73304324+TheThanathor@users.noreply.github.com>
1 parent 82b5b37 commit 057ef36

File tree

159 files changed

+4160
-220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+4160
-220
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ jobs:
9393
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.5/0.16.13/1.0.3/server/jar
9494
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/FZ4q3wQK/fabric-api-0.119.9%2B1.21.5.jar
9595
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/Swh7th09/packtest-2.1-mc1.21.5.jar
96-
- version: '1.21.7'
97-
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.7/0.16.14/1.0.3/server/jar
98-
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/sLmbxWpX/fabric-api-0.128.1%2B1.21.7.jar
99-
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/PAYctH3X/packtest-2.2-mc1.21.7.jar
100-
- version: '1.21.8'
96+
- version: '1.21.7'
10197
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.7/0.16.14/1.0.3/server/jar
10298
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/sLmbxWpX/fabric-api-0.128.1%2B1.21.7.jar
10399
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/PAYctH3X/packtest-2.2-mc1.21.7.jar
100+
- version: '1.21.10'
101+
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.10/0.18.1/1.1.0/server/jar
102+
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/dQ3p80zK/fabric-api-0.138.3%2B1.21.10.jar
103+
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/11yGLsYO/packtest-2.3-beta1-mc1.21.10.jar
104104
name: 'test-${{ matrix.version }}'
105105
runs-on: ubuntu-24.04
106106
steps:

base/data/gm4/tags/block/no_collision.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"minecraft:cave_vines_plant",
2828
"minecraft:cherry_sapling",
2929
"minecraft:cobweb",
30+
{"id": "minecraft:copper_torch", "required": false},
3031
"minecraft:crimson_fungus",
3132
"minecraft:crimson_roots",
3233
"minecraft:dark_oak_sapling",

base/data/gm4/tags/block/waterloggable.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
11
{
22
"values": [
3-
"#minecraft:rails",
3+
"#minecraft:all_signs",
4+
{"id": "#minecraft:bars", "required": false},
45
"#minecraft:campfires",
56
"#minecraft:candles",
7+
{"id": "#minecraft:chains", "required": false},
8+
{"id": "#minecraft:copper_chests", "required": false},
9+
{"id": "#minecraft:copper_golem_statues", "required": false},
10+
"#minecraft:corals",
611
"#minecraft:fences",
12+
{"id": "#minecraft:lanterns", "required": false},
713
"#minecraft:leaves",
8-
"#minecraft:all_signs",
14+
{"id": "#minecraft:lightning_rods", "required": false},
15+
"#minecraft:rails",
916
"#minecraft:slabs",
1017
"#minecraft:stairs",
1118
"#minecraft:trapdoors",
12-
"#minecraft:corals",
1319
"#minecraft:wall_corals",
1420
"#minecraft:wall_signs",
1521
"#minecraft:walls",
22+
{"id": "#minecraft:wooden_shelves", "required": false},
1623
"minecraft:amethyst_cluster",
1724
"minecraft:big_dripleaf",
1825
"minecraft:big_dripleaf_stem",
1926
"minecraft:black_stained_glass_pane",
2027
"minecraft:blue_stained_glass_pane",
2128
"minecraft:brown_stained_glass_pane",
2229
"minecraft:calibrated_sculk_sensor",
23-
"minecraft:chain",
30+
{ "id": "minecraft:chain", "required": false },
2431
"minecraft:chest",
2532
"minecraft:conduit",
2633
"minecraft:cyan_stained_glass_pane",

base/data/gm4/tags/entity_type/passive.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"minecraft:cat",
99
"minecraft:chicken",
1010
"minecraft:cod",
11+
{"id": "minecraft:copper_golem", "required": false},
1112
"minecraft:cow",
1213
"minecraft:donkey",
1314
"minecraft:frog",
1415
"minecraft:glow_squid",
16+
{"id": "minecraft:happy_ghast", "required": false},
1517
"minecraft:horse",
1618
"minecraft:mooshroom",
1719
"minecraft:mule",

gm4/modeldata_registry.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,77 @@
240240
"gm4_fulcio_shamir:shamir/fulcio": 115,
241241
"gm4_animi_shamir:shamir/animi": 124
242242
},
243+
"copper_axe": {
244+
"gm4_metallurgy:shamir/hypexperia": 110,
245+
"gm4_metallurgy:shamir/arborenda": 112,
246+
"gm4_metallurgy:shamir/moneo": 113,
247+
"gm4_percurro_shamir:shamir/percurro": 117,
248+
"gm4_audere_shamir:shamir/audere": 120,
249+
"gm4_animi_shamir:shamir/animi": 124
250+
},
243251
"copper_block": {
244252
"gm4_auto_crafting:guidebook_icon/auto_crafting": 1
245253
},
254+
"copper_boots": {
255+
"gm4_weighted_armour:shamir/helious": 103,
256+
"gm4_metallurgy:shamir/defuse": 106,
257+
"gm4_desire_lines:shamir/celaro": 118,
258+
"gm4_vecto_shamir:shamir/vecto": 121,
259+
"gm4_metallurgy:shamir/vibro": 123,
260+
"gm4_animi_shamir:shamir/animi": 124
261+
},
262+
"copper_chestplate": {
263+
"gm4_weighted_armour:shamir/helious": 103,
264+
"gm4_metallurgy:shamir/defuse": 106,
265+
"gm4_iacio_shamir:shamir/iacio": 122,
266+
"gm4_animi_shamir:shamir/animi": 124
267+
},
268+
"copper_helmet": {
269+
"gm4_weighted_armour:shamir/helious": 103,
270+
"gm4_metallurgy:shamir/defuse": 106,
271+
"gm4_animi_shamir:shamir/animi": 124
272+
},
273+
"copper_hoe": {
274+
"gm4_metallurgy:shamir/gemini": 109,
275+
"gm4_metallurgy:shamir/tinker": 111,
276+
"gm4_metallurgy:shamir/moneo": 113,
277+
"gm4_audere_shamir:shamir/audere": 120,
278+
"gm4_animi_shamir:shamir/animi": 124
279+
},
280+
"copper_leggings": {
281+
"gm4_weighted_armour:shamir/helious": 103,
282+
"gm4_metallurgy:shamir/defuse": 106,
283+
"gm4_animi_shamir:shamir/animi": 124
284+
},
246285
"copper_ore": {
247286
"gm4_smelteries:block/ore_display/copper_ore": 2
248287
},
288+
"copper_pickaxe": {
289+
"gm4_metallurgy:shamir/forterra": 107,
290+
"gm4_metallurgy:shamir/hypexperia": 110,
291+
"gm4_metallurgy:shamir/tinker": 111,
292+
"gm4_metallurgy:shamir/moneo": 113,
293+
"gm4_lumos_shamir:shamir/lumos": 114,
294+
"gm4_audere_shamir:shamir/audere": 120,
295+
"gm4_animi_shamir:shamir/animi": 124
296+
},
297+
"copper_shovel": {
298+
"gm4_metallurgy:shamir/hypexperia": 110,
299+
"gm4_metallurgy:shamir/tinker": 111,
300+
"gm4_metallurgy:shamir/moneo": 113,
301+
"gm4_lumos_shamir:shamir/lumos": 114,
302+
"gm4_audere_shamir:shamir/audere": 120,
303+
"gm4_animi_shamir:shamir/animi": 124
304+
},
305+
"copper_sword": {
306+
"gm4_metallurgy:shamir/ender_bolt": 105,
307+
"gm4_metallurgy:shamir/musical": 108,
308+
"gm4_metallurgy:shamir/hypexperia": 110,
309+
"gm4_metallurgy:shamir/tinker": 111,
310+
"gm4_orb_of_ankou:shamir/corripio": 116,
311+
"gm4_percurro_shamir:shamir/percurro": 117,
312+
"gm4_animi_shamir:shamir/animi": 124
313+
},
249314
"crafting_table": {
250315
"gm4_custom_crafters:block/custom_crafter": 1,
251316
"gm4_standard_crafting:guidebook_icon/standard_crafting": 2,

gm4/plugins/backwards.py

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
from typing import Any, Tuple, Callable
33
from beet import Context, Pack, NamespaceFile, ItemModel
4-
from beet.core.utils import SupportedFormats
54

65
logger = logging.getLogger("gm4.backwards")
76

@@ -55,8 +54,7 @@ def backport(pack: Pack[Any], format: int, run: Callable[[str, NamespaceFile], N
5554
resources[(file_type, path)] = proxy[path]
5655

5756
for overlay in pack.overlays.values():
58-
overlay_formats = overlay.supported_formats or overlay.pack_format
59-
if check_formats(overlay_formats, format):
57+
if check_formats(overlay, format):
6058
for file_type in overlay.resolve_scope_map().values():
6159
proxy = overlay[file_type]
6260
for path in proxy.keys():
@@ -70,17 +68,29 @@ def backport(pack: Pack[Any], format: int, run: Callable[[str, NamespaceFile], N
7068
raise e
7169
if new_resource:
7270
overlay = pack.overlays[f"backport_{format}"]
73-
overlay.supported_formats = { "min_inclusive": 0, "max_inclusive": format }
71+
overlay.supported_formats = { "min_inclusive": 1, "max_inclusive": format }
72+
overlay.min_format = 1
73+
overlay.max_format = format
7474
overlay[path] = new_resource
7575

7676

77-
def check_formats(supported: SupportedFormats, format: int):
78-
match supported:
79-
case int(value):
80-
return value == format
81-
case [min, max]:
82-
return min <= format <= max
83-
case { "min_inclusive": min, "max_inclusive": max }:
84-
return min <= format <= max
85-
case _:
86-
raise ValueError(f"Unknown supported_formats structure {supported}")
77+
def check_formats(overlay: Pack[Any], format: int):
78+
if overlay.min_format and overlay.max_format:
79+
return get_major(overlay.min_format) <= format <= get_major(overlay.max_format)
80+
if overlay.supported_formats:
81+
match overlay.supported_formats:
82+
case int(value):
83+
return value == format
84+
case [min, max]:
85+
return min <= format <= max
86+
case { "min_inclusive": min, "max_inclusive": max }:
87+
return min <= format <= max
88+
case _:
89+
raise ValueError(f"Unknown supported_formats structure {overlay.supported_formats}")
90+
if overlay.pack_format:
91+
return overlay.pack_format == format
92+
return False
93+
94+
95+
def get_major(format: int | tuple[int] | tuple[int, int]):
96+
return format if isinstance(format, int) else format[0]

gm4/plugins/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
parent_logger = logging.getLogger("gm4.manifest")
2323

24-
SUPPORTED_GAME_VERSIONS = ["1.21.5", "1.21.6", "1.21.7", "1.21.8"]
24+
SUPPORTED_GAME_VERSIONS = ["1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10"]
2525

2626
# config models for beet.yaml metas
2727
CreditsModel = dict[str, list[str]]

gm4/plugins/resource_pack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
JsonType = dict[str,Any]
6969

7070
CUSTOM_MODEL_PREFIX = 3420000
71-
MINECRAFT_REFERENECE_VERSION = "1.21.6"
71+
MINECRAFT_REFERENECE_VERSION = "1.21.9"
7272

7373
parent_logger = logging.getLogger("gm4.resource_pack")
7474

gm4/plugins/write_mcmeta.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ def beet_default(ctx: Context):
1010
manifest_entry = {v.id:v for v in (manifest.modules|manifest.libraries).values()}.get(ctx.project_id, NoneAttribute())
1111

1212
ctx.data.pack_format = 71
13-
ctx.data.supported_formats = {"min_inclusive": 71, "max_inclusive": 81}
13+
ctx.data.supported_formats = {"min_inclusive": 71, "max_inclusive": 88}
14+
ctx.data.min_format = 71
15+
ctx.data.max_format = (88, 0)
16+
1417
ctx.assets.pack_format = 55
15-
ctx.assets.supported_formats = {"min_inclusive": 55, "max_inclusive": 64}
18+
ctx.assets.supported_formats = {"min_inclusive": 55, "max_inclusive": 69}
19+
ctx.assets.min_format = 55
20+
ctx.assets.max_format = (69, 0)
1621

1722
for pack in ctx.packs:
1823
pack.description = [
1924
ctx.project_name,
2025
"\n",
2126
{
22-
"text": f"Gamemode 4 (1.21.5 - 1.21.8)",
27+
"text": f"Gamemode 4 (1.21.5 - 1.21.9)",
2328
"color": "#4AA0C7"
2429
}
2530
]

gm4/skin_cache.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,39 @@
956956
"value": "eyd0ZXh0dXJlcyc6IHsnU0tJTic6IHsndXJsJzogJ2h0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzA1YTY0N2YzYmY2YzMzZGQwNWI5M2JkZTJiNzRlYzViOWE5YTMxODQxM2FlZWRkZGE3ZDFhYjk3NDVkZmE5OCd9fX0=",
957957
"hash": "b1173eacf6e07f062e2301d25669acc1a3a0ac20",
958958
"parent_module": "gm4_metallurgy"
959+
},
960+
"gm4_lightning_in_a_bottle:texture_connector_exposed": {
961+
"uuid": [
962+
1105086427,
963+
-2014818885,
964+
-2050456398,
965+
1819890536
966+
],
967+
"value": "eyd0ZXh0dXJlcyc6IHsnU0tJTic6IHsndXJsJzogJ2h0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjU0ZTFmZmZlNzNiMjljMGU1NzVhOTg2OTI3OTJhZTIxYzQwNDUzZmMxNDRiYjYxZjE4ZDBmZjhmMjY3N2IxMSd9fX0=",
968+
"hash": "3ba0bc3626c0acf3c8c19ecd9801db477e5f4ef4",
969+
"parent_module": "gm4_lightning_in_a_bottle"
970+
},
971+
"gm4_lightning_in_a_bottle:texture_connector_weathered": {
972+
"uuid": [
973+
-53579126,
974+
-1276100194,
975+
-1254675310,
976+
1810892024
977+
],
978+
"value": "eyd0ZXh0dXJlcyc6IHsnU0tJTic6IHsndXJsJzogJ2h0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTExYjlhYjJlZmY4ZDMzYzU3ZWUyMjVjYWQ5ZmNkMTFmN2JmN2I4MzI2YWJlMTVhOWQ1MzUwNjNmOTZkOGZjMCd9fX0=",
979+
"hash": "4ae3138c18bcb10d5074aa45c403f7a2192a79b8",
980+
"parent_module": "gm4_lightning_in_a_bottle"
981+
},
982+
"gm4_lightning_in_a_bottle:texture_connector_oxidized": {
983+
"uuid": [
984+
-1160792602,
985+
948128354,
986+
-1355641425,
987+
1430620480
988+
],
989+
"value": "eyd0ZXh0dXJlcyc6IHsnU0tJTic6IHsndXJsJzogJ2h0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY1ZGQ5Njg5MzIyNDZjZjgwODA3Y2E2NmY4M2Y0MThjNjc5YTIzMjI5MDdiYmNkMWYxN2I4ZTQ3NWUwYzE4J319fQ==",
990+
"hash": "0ec19a60309722db4e5d57cba06c29bc62d5051f",
991+
"parent_module": "gm4_lightning_in_a_bottle"
959992
}
960993
},
961994
"nonnative_references": {

0 commit comments

Comments
 (0)