From 3ec5ae39e237bcdd8fcfefa16a0ad18be9e38bb5 Mon Sep 17 00:00:00 2001 From: Hiina Kuukan Date: Fri, 16 Aug 2024 11:53:28 -0600 Subject: [PATCH] Make global pack to start at lvl 1 I think the advancement thing will work, claude is a bit confused as am I. --- .../advancements/new_player.json | 10 ++++++++++ .../functions/give_xp.mcfunction | 1 + .../required_data/new_player_start_lvl1/pack.mcmeta | 6 ++++++ index.toml | 12 ++++++++++++ pack.toml | 2 +- 5 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 global_packs/required_data/new_player_start_lvl1/advancements/new_player.json create mode 100644 global_packs/required_data/new_player_start_lvl1/functions/give_xp.mcfunction create mode 100644 global_packs/required_data/new_player_start_lvl1/pack.mcmeta diff --git a/global_packs/required_data/new_player_start_lvl1/advancements/new_player.json b/global_packs/required_data/new_player_start_lvl1/advancements/new_player.json new file mode 100644 index 0000000..e4d7527 --- /dev/null +++ b/global_packs/required_data/new_player_start_lvl1/advancements/new_player.json @@ -0,0 +1,10 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:tick" + } + }, + "rewards": { + "function": "newplayerxp:give_xp" + } +} diff --git a/global_packs/required_data/new_player_start_lvl1/functions/give_xp.mcfunction b/global_packs/required_data/new_player_start_lvl1/functions/give_xp.mcfunction new file mode 100644 index 0000000..c4eebe4 --- /dev/null +++ b/global_packs/required_data/new_player_start_lvl1/functions/give_xp.mcfunction @@ -0,0 +1 @@ +xp add @s 7 points diff --git a/global_packs/required_data/new_player_start_lvl1/pack.mcmeta b/global_packs/required_data/new_player_start_lvl1/pack.mcmeta new file mode 100644 index 0000000..c79fef1 --- /dev/null +++ b/global_packs/required_data/new_player_start_lvl1/pack.mcmeta @@ -0,0 +1,6 @@ +{ + "pack": { + "pack_format": 10, + "description": "Gives new players enough XP to start at level 1" + } +} diff --git a/index.toml b/index.toml index ee24227..e1fbf55 100644 --- a/index.toml +++ b/index.toml @@ -1280,6 +1280,18 @@ hash = "bc68eaf04873d385c11b6e8dc894fa1a7fdbd656108483006d01c16eabf3f81f" file = "config/zenith_attributes.cfg" hash = "720285dfa0a1a937f0acbeb3fd524e459222cd299b0c9d72ffc73b94bbccbbc5" +[[files]] +file = "global_packs/required_data/new_player_start_lvl1/advancements/new_player.json" +hash = "1bba63971ba12a6bde7365c1108508eb49535808213d82cc63db75a95be45122" + +[[files]] +file = "global_packs/required_data/new_player_start_lvl1/functions/give_xp.mcfunction" +hash = "14eb18174bc9f41f3a16aa417ee64f20dcd327d5a0523b7366ab0be6dc36162a" + +[[files]] +file = "global_packs/required_data/new_player_start_lvl1/pack.mcmeta" +hash = "038733c8e02f1f0992322f1972742cfe2e659b512a27c3964f250466455c9f83" + [[files]] file = "mods/AmbientSounds_FABRIC_v6.0.3_mc1.20.1.pw.toml" hash = "d71ab403c5a95db8a9a886fa96afd3ec697bf48d4783fe2a48c3529f41a7f86b" diff --git a/pack.toml b/pack.toml index 23d4a98..3badaf9 100644 --- a/pack.toml +++ b/pack.toml @@ -5,7 +5,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "2708f2bfe4d62d977acd3a5c64c4abd89c60b716ea1aa432593f4c236432c373" +hash = "d69e60af9a0b23e0e7d1d0b864938c2b83619effcdcee687fc6a7a826e7b7216" [versions] fabric = "0.16.0"