Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
ef6037d
Add 1.21.5 packtest workflow
misode Mar 25, 2025
2937c22
Update wolf_variant files
misode Mar 25, 2025
cd0823b
Update biome extensions
misode Mar 25, 2025
787d1ee
Remove 1.21-1.21.4 support ans squash overlays
misode Mar 25, 2025
e40a143
Update version numbers to 1.21.5
misode Mar 25, 2025
e3b2fb8
Update pack format
misode Mar 25, 2025
675a4fa
generate new item model definitions
SpecialBuilder32 Jan 26, 2025
2276992
item-model merge policy
SpecialBuilder32 Jan 26, 2025
e3a270b
Generate 1.21.3 RP models into an overlay
SpecialBuilder32 Feb 11, 2025
4d2cb0c
Add CMD range padding into new item_def files
SpecialBuilder32 Feb 11, 2025
3069d03
Replace manual predicate-entry into model data config (for end fishin…
SpecialBuilder32 Mar 14, 2025
d000418
Manually provide end fishing elytra item model in overlay
SpecialBuilder32 Mar 14, 2025
a2b0f9a
Remove RP backports
misode Mar 25, 2025
444a136
Fix some more RP script issues
misode Mar 25, 2025
e51e8d8
Re-add standard crafting guidebook recipes
misode Mar 25, 2025
de758b1
Re-add biome extensions beet.yaml
misode Mar 25, 2025
5740b78
Remove upgrade paths and optional tag entries
misode Mar 25, 2025
484c1b0
Split potion entity type into splash_ and lingering_
misode Mar 25, 2025
f0d73a0
Item component changes
misode Mar 25, 2025
cb4415c
Update type_specific predicates
misode Mar 25, 2025
b0d2ab2
Delete beehive inspector module
misode Mar 25, 2025
b83910f
Add pale oak door sounds
misode Mar 25, 2025
d24d97e
Update hoverEvent and clickEvent
misode Mar 26, 2025
65ac447
Update some guidebook text components
misode Mar 26, 2025
081fe08
Update ArmorItems and HandItems to equipment + drop_chances
misode Mar 26, 2025
b6cdcee
Update text components in custom_name and CustomName
misode Mar 26, 2025
ab3a6b6
Use mecha dev dependency
misode Mar 29, 2025
e07fcc8
Update TranslationLinter to check SNBT
misode Mar 29, 2025
99b697e
Update more text components
misode Mar 29, 2025
4e80bce
Update body_armor_item to equipment.body
misode Mar 29, 2025
4db2821
Fix splash_potion entity type in mob curing tests
misode Mar 30, 2025
1d5d568
Fix potion swords tests with inventory predicates
EpyonProjects Apr 3, 2025
63cb12f
Test timing fix: Metallurgy and Infinitas failing smoosh test activat…
EpyonProjects Apr 3, 2025
d209a7e
increase delay to confirm sneaking
EpyonProjects Apr 3, 2025
bdb8c86
Test timing fix: Animi and Fulcio also failing smoosh test activating…
EpyonProjects Apr 3, 2025
a5000d9
Update to stable beet and mecha versions
misode Apr 15, 2025
560fad1
Update packtest version to v2.1
misode Apr 15, 2025
9fa08d6
Revert test timing commits
misode Apr 15, 2025
d3d3734
Rename FallDistance to fall_distance
misode Apr 15, 2025
62655aa
Fix advancement background texture
misode Apr 15, 2025
383bc96
Fix phantom field Size -> size
misode Apr 15, 2025
c46b0c6
Fix turtle field HasEgg -> has_egg
misode Apr 15, 2025
5424c58
Fix vex field LifeTicks -> life_ticks
misode Apr 15, 2025
26546d3
Fix pig Saddle -> equipment.saddle
misode Apr 15, 2025
fbd5969
Fix chairs lightning reviving
misode Apr 15, 2025
2f84180
Fix text components in gm4 reload logs
misode Apr 15, 2025
98a2bf8
More text component unstringifying
misode Apr 16, 2025
b62dd66
Replace reliance on AstNbt.evaluate
misode Apr 16, 2025
bac3a7a
Add 1.21.5 Plants to Blossoming Pots
runcows Apr 15, 2025
792e4c4
Fix balloon animals lead lore to entity name
misode Apr 16, 2025
880db2e
Pig tractors fix
misode Apr 16, 2025
8217f66
Fix phantom scarecrows rocket having a particle
misode Apr 16, 2025
645d242
Discontinue auto crafting module
misode Apr 20, 2025
e3ad0e2
Discontinue record crafting module
misode Apr 20, 2025
9505439
Make lumos and shapeless portals tests optional
misode Apr 20, 2025
f1ecc0a
Fix tunnel bores creation particle + orb of ankou AEC name
misode Apr 20, 2025
659da9a
Fix undead players drowned conversion copying player name
misode Apr 20, 2025
66a4d4f
Update Blossoming Pots Guidebook
runcows Apr 16, 2025
2d42541
Add new blocks to base tag lists
runcows Apr 17, 2025
aea6445
Add farm animal variants to Balloon Animals
runcows Apr 17, 2025
518f8a8
Fix guidebook code for text component changes
runcows Apr 18, 2025
9776112
Fix guidebook lecturn TOC
runcows Apr 18, 2025
7ba51b1
Recommended Changes from misode
runcows Apr 18, 2025
fd1fbe8
Fixes because I didn't pay enough attention to what I was doing
runcows Apr 18, 2025
b35c434
Discontinue tinkering compressors module
misode Apr 21, 2025
f0b57d8
Fix Block Compressors test, add additional BoO test checking against …
EpyonProjects Apr 22, 2025
fd8ac15
BAS aec's do not despawn, expected Duration:0 by default. 1.21.5 bro…
EpyonProjects Apr 22, 2025
36125ba
Run's misc 1.21.5 commits part 3 (#1115)
runcows Apr 28, 2025
29fc856
Merge branch 'master' of https://github.com/Gamemode4Dev/GM4_Datapack…
misode Apr 28, 2025
9bf3e40
Fix modules using `Inventory` for armor or offhand
misode May 5, 2025
e65e8b0
Fix wrong set_bees reference and bucket_entity_data component
misode May 5, 2025
7732038
Fix tinker shamir for offhand and armor slots
misode May 5, 2025
11d0c72
Change inventory.* to container.* in tinker predicates
misode May 8, 2025
a3ab8e2
Discontinue combat expanded module
misode May 8, 2025
4a95e49
Fix infinite AECs
misode May 8, 2025
69ca497
update predicate count to 64
runcows May 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 5 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
VERSION: '1.21'
VERSION: '1.21.5'
COMMIT_MSG: ${{ github.event.head_commit.message }}

jobs:
Expand Down Expand Up @@ -89,18 +89,10 @@ jobs:
# https://fabricmc.net/use/server/
# https://modrinth.com/mod/fabric-api/versions
# https://modrinth.com/mod/packtest/versions
- version: '1.21.1'
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.1/0.16.5/1.0.1/server/jar
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/WTaAx4ah/fabric-api-0.105.0%2B1.21.1.jar
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/x9txtivi/packtest-1.8-mc1.21.1.jar
- version: '1.21.3'
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.3/0.16.7/1.0.1/server/jar
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/dhD4I4lJ/fabric-api-0.106.1%2B1.21.3.jar
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/wjOUK14F/packtest-1.9-mc1.21.2.jar
- version: '1.21.4'
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.4-rc1/0.16.9/1.0.1/server/jar
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/X7o8njVT/fabric-api-0.110.2%2B1.21.4.jar
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/owHaqexZ/packtest-1.10-beta1-mc1.21.4.jar
- version: '1.21.5'
fabric_server_url: https://meta.fabricmc.net/v2/versions/loader/1.21.5/0.16.13/1.0.3/server/jar
fabric_api_url: https://cdn.modrinth.com/data/P7dR8mSH/versions/FZ4q3wQK/fabric-api-0.119.9%2B1.21.5.jar
packtest_url: https://cdn.modrinth.com/data/XsKUhp45/versions/Swh7th09/packtest-2.1-mc1.21.5.jar
name: 'test-${{ matrix.version }}'
runs-on: ubuntu-24.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion base/data/gm4/function/conflict_logs/traverse.mcfunction
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
execute store success score #not_match gm4_data run data modify storage gm4:log traverse_versions[0].id set from storage gm4:log log.require_id
execute if data storage gm4:log traverse_versions[0].from run data modify storage gm4:log temp set value '[{"text":" (packaged in ","color":"red"},{"nbt":"traverse_versions[0].from","storage":"gm4:log","color":"red"},{"text":")","color":"red"}]'
execute if data storage gm4:log traverse_versions[0].from run data modify storage gm4:log temp set value [{"text":" (packaged in ","color":"red"},{"nbt":"traverse_versions[0].from","storage":"gm4:log","color":"red"},{"text":")","color":"red"}]

execute if score #not_match gm4_data matches 0 run tellraw @a[tag=gm4_show_log] [{"nbt":"log.module","storage":"gm4:log","color":"red"},{"text":" is disabled. It requires ","color":"red"},{"nbt":"log.require","storage":"gm4:log","color":"red"},{"text":" v","color":"red"},{"nbt":"log.require_ver","storage":"gm4:log"},{"text":" but ","color":"red"},{"nbt":"traverse_versions[0].module","storage":"gm4:log"},{"text":" v"},{"nbt":"traverse_versions[0].version","storage":"gm4:log","color":"red"},{"text":" is installed instead","color":"red"},{"nbt":"temp","storage":"gm4:log","interpret":true}]

Expand Down
4 changes: 2 additions & 2 deletions base/data/gm4/function/load.mcfunction
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data merge storage gm4:log {queue:[],versions:[]}
data modify storage gm4:log queue append value {type:"text",message:'{"text":"[GM4]: Checking for updates...","color":"#4AA0C7"}'}
data modify storage gm4:log queue append value {type:"text",message:{"text":"[GM4]: Checking for updates...","color":"#4AA0C7"}}

scoreboard objectives add gm4_modules dummy
scoreboard objectives add gm4_data dummy
Expand All @@ -15,6 +15,6 @@ execute unless score $cooldown gm4_creative matches 0.. run scoreboard players s
# Setting this to 0 will always show logs to all players
execute unless score $global_cooldown gm4_creative matches 0.. run scoreboard players set $global_cooldown gm4_creative 10

execute unless score gm4 gm4_modules matches 1.. run data modify storage gm4:log queue append value {type:"text",message:'{"text":"[GM4]: Welcome to Gamemode 4. Initialising...","color":"green"}'}
execute unless score gm4 gm4_modules matches 1.. run data modify storage gm4:log queue append value {type:"text",message:{"text":"[GM4]: Welcome to Gamemode 4. Initialising...","color":"green"}}
execute unless score gm4 gm4_modules matches 1.. run schedule function gm4:intro_song/init 2s
execute unless score gm4 gm4_modules matches 1.. run scoreboard players set gm4 gm4_modules 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tellraw @a[tag=gm4_show_log] [{"text":"The following modules are outdated! Click here to download the latest versions.","color":"gold","clickEvent":{"action":"open_url","value":"https://www.gm4.co/modules"},"hoverEvent":{"action":"show_text","value":{"text":"Click to visit gm4.co/modules","color":"#4AA0C7"}}}]
tellraw @a[tag=gm4_show_log] [{"text":"The following modules are outdated! Click here to download the latest versions.","color":"gold","click_event":{"action":"open_url","url":"https://www.gm4.co/modules"},"hover_event":{"action":"show_text","value":{"text":"Click to visit gm4.co/modules","color":"#4AA0C7"}}}]

data modify storage gm4:log outdated_list set from storage gm4:log queue
data remove storage gm4:log outdated_list[{type:"text"}]
Expand Down
4 changes: 2 additions & 2 deletions base/data/gm4/function/post_load.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
execute unless data storage gm4:log queue[{type:"install"}] run data modify storage gm4:log queue append value {type:"text",message:'{"text":"[GM4]: No updates found.","color":"#4AA0C7"}'}
execute if data storage gm4:log queue[{type:"install"}] run data modify storage gm4:log queue append value {type:"text",message:'{"text":"[GM4]: Updates completed.","color":"#4AA0C7"}'}
execute unless data storage gm4:log queue[{type:"install"}] run data modify storage gm4:log queue append value {type:"text",message:{"text":"[GM4]: No updates found.","color":"#4AA0C7"}}
execute if data storage gm4:log queue[{type:"install"}] run data modify storage gm4:log queue append value {type:"text",message:{"text":"[GM4]: Updates completed.","color":"#4AA0C7"}}

function gm4:log_wait
13 changes: 10 additions & 3 deletions base/data/gm4/tags/block/foliage.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,40 @@
"minecraft:big_dripleaf",
"minecraft:big_dripleaf_stem",
"minecraft:brown_mushroom",
"minecraft:bush",
"minecraft:cactus_flower",
"minecraft:cave_vines",
"minecraft:cave_vines_plant",
"minecraft:crimson_fungus",
"minecraft:crimson_roots",
"minecraft:dead_bush",
"minecraft:fern",
"minecraft:firefly_bush",
"minecraft:glow_lichen",
"minecraft:short_dry_grass",
"minecraft:short_grass",
"minecraft:hanging_roots",
"minecraft:large_fern",
"minecraft:leaf_litter",
"minecraft:mangrove_propagule",
"minecraft:moss_carpet",
"minecraft:nether_sprouts",
{ "id": "minecraft:pale_hanging_moss", "required": false },
{ "id": "minecraft:pale_moss_carpet", "required": false },
"minecraft:pale_hanging_moss",
"minecraft:pale_moss_carpet",
"minecraft:pink_petals",
"minecraft:red_mushroom",
"minecraft:small_dripleaf",
"minecraft:spore_blossom",
"minecraft:sweet_berry_bush",
"minecraft:tall_dry_grass",
"minecraft:tall_grass",
"minecraft:twisting_vines",
"minecraft:twisting_vines_plant",
"minecraft:vine",
"minecraft:warped_fungus",
"minecraft:warped_roots",
"minecraft:weeping_vines",
"minecraft:weeping_vines_plant"
"minecraft:weeping_vines_plant",
"minecraft:wildflowers"
]
}
10 changes: 6 additions & 4 deletions base/data/gm4/tags/block/full_collision.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"minecraft:chiseled_polished_blackstone",
"minecraft:chiseled_quartz_block",
"minecraft:chiseled_red_sandstone",
{ "id": "minecraft:chiseled_resin_bricks", "required": false },
"minecraft:chiseled_resin_bricks",
"minecraft:chiseled_sandstone",
"minecraft:chiseled_stone_bricks",
"minecraft:chiseled_tuff",
Expand All @@ -75,7 +75,7 @@
"minecraft:cracked_stone_bricks",
"minecraft:crafter",
"minecraft:crafting_table",
{ "id": "minecraft:creaking_heart", "required": false },
"minecraft:creaking_heart",
"minecraft:crimson_nylium",
"minecraft:crying_obsidian",
"minecraft:cut_copper",
Expand Down Expand Up @@ -257,8 +257,8 @@
"minecraft:redstone_ore",
"minecraft:reinforced_deepslate",
"minecraft:repeating_command_block",
{ "id": "minecraft:resin_block", "required": false },
{ "id": "minecraft:resin_bricks", "required": false },
"minecraft:resin_block",
"minecraft:resin_bricks",
"minecraft:respawn_anchor",
"minecraft:sand",
"minecraft:sandstone",
Expand All @@ -285,6 +285,8 @@
"minecraft:suspicious_sand",
"minecraft:target",
"minecraft:terracotta",
"minecraft:test_block",
"minecraft:test_instance_block",
"minecraft:tinted_glass",
"minecraft:tnt",
"minecraft:trial_spawner",
Expand Down
25 changes: 16 additions & 9 deletions base/data/gm4/tags/block/no_collision.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"values": [
"#minecraft:air",
"#gm4:water",
"#minecraft:air",
"#minecraft:banners",
"#minecraft:buttons",
"#minecraft:ceiling_hanging_signs",
Expand All @@ -13,11 +13,6 @@
"#minecraft:rails",
"#minecraft:signs",
"#minecraft:small_flowers",
"minecraft:sunflower",
"minecraft:lilac",
"minecraft:peony",
"minecraft:rose_bush",
"minecraft:pitcher_plant",
"#minecraft:wall_corals",
"minecraft:acacia_sapling",
"minecraft:attached_melon_stem",
Expand All @@ -26,6 +21,8 @@
"minecraft:big_dripleaf_stem",
"minecraft:birch_sapling",
"minecraft:brown_mushroom",
"minecraft:bush",
"minecraft:cactus_flower",
"minecraft:cave_vines",
"minecraft:cave_vines_plant",
"minecraft:cherry_sapling",
Expand All @@ -50,28 +47,36 @@
"minecraft:dead_tube_coral_wall_fan",
"minecraft:dead_tube_coral",
"minecraft:fern",
"minecraft:firefly_bush",
"minecraft:frogspawn",
"minecraft:glow_lichen",
"minecraft:short_dry_grass",
"minecraft:short_grass",
"minecraft:sunflower",
"minecraft:hanging_roots",
"minecraft:jungle_sapling",
"minecraft:ladder",
"minecraft:large_fern",
"minecraft:lava",
"minecraft:leaf_litter",
"minecraft:lever",
"minecraft:light",
"minecraft:lilac",
"minecraft:mangrove_propagule",
"minecraft:nether_sprouts",
"minecraft:nether_wart",
"minecraft:oak_sapling",
{ "id": "minecraft:pale_hanging_moss", "required": false },
{ "id": "minecraft:pale_oak_sapling", "required": false },
"minecraft:pale_hanging_moss",
"minecraft:pale_oak_sapling",
"minecraft:peony",
"minecraft:pink_petals",
"minecraft:pitcher_plant",
"minecraft:powder_snow",
"minecraft:red_mushroom",
"minecraft:redstone_torch",
"minecraft:redstone_wall_torch",
"minecraft:redstone_wire",
"minecraft:rose_bush",
"minecraft:scaffolding",
"minecraft:sculk_vein",
"minecraft:small_dripleaf",
Expand All @@ -82,6 +87,7 @@
"minecraft:structure_void",
"minecraft:sugar_cane",
"minecraft:sweet_berry_bush",
"minecraft:tall_dry_grass",
"minecraft:tall_grass",
"minecraft:torch",
"minecraft:tripwire_hook",
Expand All @@ -93,6 +99,7 @@
"minecraft:warped_fungus",
"minecraft:warped_roots",
"minecraft:weeping_vines",
"minecraft:weeping_vines_plant"
"minecraft:weeping_vines_plant",
"minecraft:wildflowers"
]
}
6 changes: 5 additions & 1 deletion base/data/gm4/tags/block/replaceable.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,25 @@
"#minecraft:air",
"#minecraft:fire",
"minecraft:bubble_column",
"minecraft:bush",
"minecraft:crimson_roots",
"minecraft:dead_bush",
"minecraft:fern",
"minecraft:glow_lichen",
"minecraft:short_dry_grass",
"minecraft:short_grass",
"minecraft:hanging_roots",
"minecraft:large_fern",
"minecraft:lava",
"minecraft:leaf_litter",
"minecraft:light",
"minecraft:nether_sprouts",
{ "id": "minecraft:resin_clump", "required": false },
"minecraft:resin_clump",
"minecraft:sculk_vein",
"minecraft:seagrass",
"minecraft:snow",
"minecraft:structure_void",
"minecraft:tall_dry_grass",
"minecraft:tall_grass",
"minecraft:tall_seagrass",
"minecraft:vine",
Expand Down
2 changes: 1 addition & 1 deletion base/data/gm4/tags/block/waterloggable.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"minecraft:pointed_dripstone",
"minecraft:purple_stained_glass_pane",
"minecraft:red_stained_glass_pane",
{ "id": "minecraft:resin_clump", "required": false },
"minecraft:resin_clump",
"minecraft:scaffolding",
"minecraft:sculk_sensor",
"minecraft:sculk_vein",
Expand Down
3 changes: 1 addition & 2 deletions base/data/gm4/tags/entity_type/boats.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"values": [
{ "id": "minecraft:boat", "required": false },
{ "id": "#minecraft:boat", "required": false }
"#minecraft:boat"
]
}
21 changes: 10 additions & 11 deletions base/data/gm4/tags/entity_type/chest_boats.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"values": [
{ "id": "minecraft:chest_boat", "required": false },
{ "id": "minecraft:oak_chest_boat", "required": false },
{ "id": "minecraft:spruce_chest_boat", "required": false },
{ "id": "minecraft:birch_chest_boat", "required": false },
{ "id": "minecraft:jungle_chest_boat", "required": false },
{ "id": "minecraft:acacia_chest_boat", "required": false },
{ "id": "minecraft:cherry_chest_boat", "required": false },
{ "id": "minecraft:dark_oak_chest_boat", "required": false },
{ "id": "minecraft:mangrove_chest_boat", "required": false },
{ "id": "minecraft:bamboo_chest_raft", "required": false },
{ "id": "minecraft:pale_oak_chest_boat", "required": false }
"minecraft:oak_chest_boat",
"minecraft:spruce_chest_boat",
"minecraft:birch_chest_boat",
"minecraft:jungle_chest_boat",
"minecraft:acacia_chest_boat",
"minecraft:cherry_chest_boat",
"minecraft:dark_oak_chest_boat",
"minecraft:mangrove_chest_boat",
"minecraft:bamboo_chest_raft",
"minecraft:pale_oak_chest_boat"
]
}
2 changes: 1 addition & 1 deletion base/data/gm4/tags/entity_type/neutral_hostile.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"values": [
"minecraft:cave_spider",
{ "id": "minecraft:creaking", "required": false },
"minecraft:creaking",
"minecraft:drowned",
"minecraft:enderman",
"minecraft:piglin",
Expand Down
3 changes: 2 additions & 1 deletion base/data/gm4/tags/entity_type/non_living.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@
"minecraft:item_frame",
"minecraft:leash_knot",
"minecraft:lightning_bolt",
"minecraft:lingering_potion",
"minecraft:llama_spit",
"minecraft:marker",
"minecraft:minecart",
"minecraft:ominous_item_spawner",
"minecraft:painting",
"minecraft:potion",
"minecraft:shulker_bullet",
"minecraft:small_fireball",
"minecraft:snowball",
"minecraft:spawner_minecart",
"minecraft:spectral_arrow",
"minecraft:splash_potion",
"minecraft:text_display",
"minecraft:tnt",
"minecraft:tnt_minecart",
Expand Down
8 changes: 5 additions & 3 deletions base/mod.mcdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use ::java::util::text::Text

dispatch minecraft:storage[gm4:log] to struct Gm4Log {
versions?: [LogVersion],
traverse_versions?: [LogVersion],
Expand All @@ -6,7 +8,7 @@ dispatch minecraft:storage[gm4:log] to struct Gm4Log {
},
outdated_list?: [LogEntry],
queue?: [LogEntry],
temp?: #[text_component] string,
temp?: Text,
}

struct LogVersion {
Expand All @@ -23,7 +25,7 @@ struct LogEntry {

dispatch gm4:log_entry[text] to struct {
/// The text component message to display.
message: #[text_component] string,
message: Text,
}

dispatch gm4:log_entry[install] to struct {
Expand All @@ -34,7 +36,7 @@ dispatch gm4:log_entry[install] to struct {
dispatch gm4:log_entry[outdated] to struct {
module: string,
download: #[url] string,
render: #[text_component] string,
render: Text,
}

dispatch gm4:log_entry[missing] to struct MissingLog {
Expand Down
2 changes: 1 addition & 1 deletion beet-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pipeline:
directory: resource_pack
pipeline:
- resource_pack.dev_description
- gm4.plugins.resource_pack.pad_model_overrides
- gm4.plugins.resource_pack.pad_item_def_range_dispatch
- gm4.plugins.resource_pack.link_resource_pack
- gm4.plugins.output.resource_pack
- gm4.plugins.resource_pack.dump_registry
Expand Down
2 changes: 1 addition & 1 deletion beet-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pipeline:
- gm4.plugins.output.release_resource_pack
- gm4.plugins.write_mcmeta
- gm4.plugins.manifest.update_patch
- gm4.plugins.resource_pack.pad_model_overrides
- gm4.plugins.resource_pack.pad_item_def_range_dispatch
meta:
pack_scan: resource_pack

Expand Down
2 changes: 1 addition & 1 deletion docs/making-a-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ If all required dependencies are present, Lantern Load will call `init.mcfunctio
#### Logging
Messages can be logged during the load process. This can be done by appending to the `queue` field in the `gm4:log` storage. Here are a few examples:
```mcfunction
data modify storage gm4:log queue append value {type:"text",message:'{"text":"We've been attempting to contact you about your car's extended warranty"}'}
data modify storage gm4:log queue append value {type:"text",message:{text:"We've been attempting to contact you about your car's extended warranty"}}
data modify storage gm4:log queue append value {type:"install",module:"Bat Grenades"}
```

Expand Down
Loading
Loading