Files
sissim_mod
Code
85 790
sissim_mod/data/sissim/function/shop/menu.mcfunction
scoreboard players set @s sp_menu 0
scoreboard players get @s sp_money
scoreboard players get @s sp_level
scoreboard players get @s sp_xp
tellraw @s {"text":"Boutique sissim_mod — utilisez un bouton pour acheter :","color":"gold"}
tellraw @s {"text":"Payer : /trigger sp_pay set <montant> — joueur le plus proche à 5 blocs, de 1 à 1 000 000 Palladium.","color":"gold"}
tellraw @s {"text":"[Téléporter au spawn — délai de 5 secondes]","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger sp_spawn set 1"}}
tellraw @s {"text":"[1] 16 pains — ","color":"yellow","extra":[{"score":{"name":"#price_bread","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 1"}},{"text":" Palladium"}]}
tellraw @s {"text":"[2] 16 flèches — ","color":"yellow","extra":[{"score":{"name":"#price_arrows","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 2"}},{"text":" Palladium"}]}
tellraw @s {"text":"[3] Épée en fer — ","color":"yellow","extra":[{"score":{"name":"#price_sword","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 3"}},{"text":" Palladium"}]}
tellraw @s {"text":"[4] Armure Aurore (commun) — ","color":"white","extra":[{"score":{"name":"#price_aurora","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 4"}},{"text":" Palladium"}]}
tellraw @s {"text":"[5] Armure Cryovèr (rare, niveau 3) — ","color":"aqua","extra":[{"score":{"name":"#price_cryover","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 5"}},{"text":" Palladium"}]}
tellraw @s {"text":"[6] Armure Zoliom (épique, niveau 5) — ","color":"light_purple","extra":[{"score":{"name":"#price_zoliom","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 6"}},{"text":" Palladium"}]}
tellraw @s {"text":"[7] Armure Ombre (légendaire, niveau 8) — ","color":"gold","extra":[{"score":{"name":"#price_ombre","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 7"}},{"text":" Palladium"}]}
tellraw @s {"text":"[8] Pioche en fer — ","color":"yellow","extra":[{"score":{"name":"#price_iron_pickaxe","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 8"}},{"text":" Palladium"}]}
tellraw @s {"text":"[9] Épée en diamant — ","color":"aqua","extra":[{"score":{"name":"#price_diamond_sword","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 9"}},{"text":" Palladium"}]}
tellraw @s {"text":"[10] Plastron en fer — ","color":"yellow","extra":[{"score":{"name":"#price_iron_chestplate","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 10"}},{"text":" Palladium"}]}
tellraw @s {"text":"[11] Diamant — ","color":"aqua","extra":[{"score":{"name":"#price_diamond","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 11"}},{"text":" Palladium"}]}
tellraw @s {"text":"[12] 2 émeraudes — ","color":"green","extra":[{"score":{"name":"#price_emerald","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 12"}},{"text":" Palladium"}]}
tellraw @s {"text":"[13] 4 obsidiennes — ","color":"dark_purple","extra":[{"score":{"name":"#price_obsidian","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 13"}},{"text":" Palladium"}]}
tellraw @s {"text":"[14] Pomme dorée — ","color":"gold","extra":[{"score":{"name":"#price_golden_apple","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 14"}},{"text":" Palladium"}]}
tellraw @s {"text":"[15] Épée de Palladium (niveau 8) — ","color":"light_purple","extra":[{"score":{"name":"#price_palladium_sword","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 15"}},{"text":" Palladium"}]}
tellraw @s {"text":"[16] Pioche des Mines (niveau 3) — ","color":"gold","extra":[{"score":{"name":"#price_miner_pick","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 16"}},{"text":" Palladium"}]}
tellraw @s {"text":"[17] Arc Cryovèr (niveau 5) — ","color":"aqua","extra":[{"score":{"name":"#price_cryover_bow","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 17"}},{"text":" Palladium"}]}
tellraw @s {"text":"[18] Arbalète Ombre (niveau 8) — ","color":"dark_purple","extra":[{"score":{"name":"#price_ombre_crossbow","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_shop set 18"}},{"text":" Palladium"}]}
tellraw @s {"text":"Vendre une unité — récompenses configurables :","color":"green"}
tellraw @s {"text":"[1 Fer — ","color":"green","extra":[{"score":{"name":"#sell_iron","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 1"}},{"text":" Palladium]"}]}
tellraw @s {"text":"[2 Or — ","color":"green","extra":[{"score":{"name":"#sell_gold","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 2"}},{"text":" Palladium]"}]}
tellraw @s {"text":"[3 Diamant — ","color":"green","extra":[{"score":{"name":"#sell_diamond","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 3"}},{"text":" Palladium]"}]}
tellraw @s {"text":"[4 Émeraude — ","color":"green","extra":[{"score":{"name":"#sell_emerald","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 4"}},{"text":" Palladium]"}]}
tellraw @s {"text":"[5 Lapis — ","color":"green","extra":[{"score":{"name":"#sell_lapis","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 5"}},{"text":" Palladium]"}]}
tellraw @s {"text":"[6 Redstone — ","color":"green","extra":[{"score":{"name":"#sell_redstone","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 6"}},{"text":" Palladium]"}]}
tellraw @s {"text":"[7 Charbon — ","color":"green","extra":[{"score":{"name":"#sell_coal","objective":"sp_cfg"},"clickEvent":{"action":"run_command","value":"/trigger sp_sell set 7"}},{"text":" Palladium]"}]}