Skip to content

Commit 631c015

Browse files
authored
Update beet & mecha to 26.1 (#1286)
* update beet and mecha * replace `26.1-rc3` with `26.1` * remove temp raw and bolt requires
1 parent 1f798cb commit 631c015

16 files changed

Lines changed: 220 additions & 240 deletions

File tree

gm4/plugins/resource_pack.py

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

4444
JsonType = dict[str,Any]
4545

46-
MINECRAFT_REFERENCE_VERSION = "26.1-rc-3"
46+
MINECRAFT_REFERENCE_VERSION = "26.1"
4747

4848
parent_logger = logging.getLogger("gm4.resource_pack")
4949

gm4_calling_bell/beet.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ data_pack:
88
pipeline:
99
- gm4.plugins.extend.module
1010

11-
require:
12-
- bolt
13-
1411
meta:
1512
gm4:
1613
versioning:

gm4_calling_bell/data/gm4_calling_bell/function/on_bell_interact.mcfunction

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
advancement revoke @s only gm4_calling_bell:ring_bell
66

7-
# TODO: remove raw and bolt require later
87
# fail if player already used today
9-
raw execute store result score $day gm4_calling_bell run time query day repetition
8+
execute store result score $day gm4_calling_bell run time query day repetition
109
execute if score @s gm4_calling_bell = $day gm4_calling_bell run return run playsound entity.wandering_trader.no neutral @a[distance=..16] ~ ~ ~ 1 1 0.6
1110

1211
execute store result score $ray gm4_calling_bell run attribute @s minecraft:block_interaction_range get 10

gm4_disassemblers/generate_disassembly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
def beet_default(ctx: Context):
6767
"""Creates a loot table for dropping the 9 result items when disassembling an item."""
6868
vanilla = ctx.inject(Vanilla)
69-
vanilla.minecraft_version = '26.1-rc-3'
69+
vanilla.minecraft_version = '26.1'
7070
recipes = vanilla.data.recipes
7171

7272
for item, durability in ITEMS.items():

gm4_double_doors/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def beet_default(ctx: Context):
6363
# prepare list of door materials
6464
door_materials = [
6565
door.removeprefix("minecraft:").removesuffix("_door")
66-
for door in resolve_blocktag(ctx, "26.1-rc-3", "minecraft:mob_interactable_doors")
66+
for door in resolve_blocktag(ctx, "26.1", "minecraft:mob_interactable_doors")
6767
]
6868
# make list of wood types accessible for bolt
6969
ctx.meta['door_materials'] = door_materials

gm4_guidebook/generate_guidebooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def generate_lectern_header(book: Book) -> list[dict[Any, Any]|str]:
789789
"""
790790
def item_to_display(item: str, components: dict[str, Any] | None, ctx: Context) -> tuple[TextComponent, TextComponent]:
791791
vanilla = ctx.inject(Vanilla)
792-
vanilla.minecraft_version = '26.1-rc-3'
792+
vanilla.minecraft_version = '26.1'
793793
if item == "air":
794794
# show empty slot
795795
slot = {
@@ -947,7 +947,7 @@ def generate_recipe_display(recipe: str, ctx: Context) -> list[TextComponent]:
947947
ingr = ingr[0]
948948
elif ingr.startswith("#"):
949949
vanilla = ctx.inject(Vanilla)
950-
vanilla.minecraft_version = '26.1-rc-3'
950+
vanilla.minecraft_version = '26.1'
951951
ingr = get_item_from_tag(ctx, ingr, vanilla)
952952
ingredients.append(ingr)
953953

@@ -980,7 +980,7 @@ def generate_recipe_display(recipe: str, ctx: Context) -> list[TextComponent]:
980980
ingr = ingr[0]
981981
elif ingr.startswith("#"):
982982
vanilla = ctx.inject(Vanilla)
983-
vanilla.minecraft_version = '26.1-rc-3'
983+
vanilla.minecraft_version = '26.1'
984984
ingr = get_item_from_tag(ctx, ingr, vanilla)
985985
ingredients.append(ingr)
986986
while len(ingredients) < 9:

gm4_liquid_tanks/data/gm4_liquid_tanks/modules/liquid_wrappers.bolt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from bolt.contrib.defer import Defer
99
from gm4.utils import add_namespace
1010

1111
from gm4_liquid_tanks.mcmeta_stacksize import retrieve_stacksizes
12-
unstackables, stackable_16, _ = retrieve_stacksizes(ctx.cache, "26.1-rc-3")
12+
unstackables, stackable_16, _ = retrieve_stacksizes(ctx.cache, "26.1")
1313

1414
# function that generates no mcfunction
1515
def emptyfunc():

gm4_metallurgy/shamir_model_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def beet_default(ctx: Context):
221221
# bind context object to a ClassVar so it can be accessed later during template processing
222222
ShamirTemplate.bound_ctx = ctx
223223
vanilla = ctx.inject(Vanilla)
224-
vanilla.minecraft_version = '26.1-rc-3'
224+
vanilla.minecraft_version = '26.1'
225225
ShamirTemplate.vanilla_models_jar = vanilla.mount("assets/minecraft/items")
226226
merge_policy(ctx)
227227

gm4_mysterious_midnights/beet.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ pipeline:
99
- gm4.plugins.extend.module
1010
- gm4.plugins.include.lib_forceload
1111

12-
require:
13-
- bolt
14-
1512
meta:
1613
gm4:
1714
versioning:

gm4_mysterious_midnights/data/gm4_mysterious_midnights/function/calculate_difficulty.mcfunction

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# at 29999998 1 7134 (forceloaded chunk)
33
# run from gm4_mysterious_midnights:start_midnight
44

5-
# TODO: remove raw and bolt require later
65
# generate random number from 0 to 15
7-
raw execute store result storage gm4_mysterious_midnights:temp day int 1 run time query day repetition
6+
execute store result storage gm4_mysterious_midnights:temp day int 1 run time query day repetition
87
function gm4_mysterious_midnights:roll_difficulty with storage gm4_mysterious_midnights:temp
98
scoreboard players set 16 gm4_mm_data 16
109
scoreboard players operation difficulty gm4_mm_data %= 16 gm4_mm_data

0 commit comments

Comments
 (0)