Files
random_resource_shop
Code
14 170
random_resource_shop/data/kodari_shop/function/open.mcfunction
scoreboard players set @s shop 0
tellraw @s {"text":"=== Random Resource Shop ===","color":"gold","bold":true}
tellraw @s [{"text":"[Trade 8 Iron Ingots]","color":"gray","clickEvent":{"action":"run_command","value":"/trigger buy_iron set 1"},"hoverEvent":{"action":"show_text","contents":"Pay 8 iron ingots for a random basic reward"}}]
tellraw @s [{"text":"[Trade 8 Gold Ingots]","color":"yellow","clickEvent":{"action":"run_command","value":"/trigger buy_gold set 1"},"hoverEvent":{"action":"show_text","contents":"Pay 8 gold ingots for a random uncommon reward"}}]
tellraw @s [{"text":"[Trade 4 Emeralds]","color":"green","clickEvent":{"action":"run_command","value":"/trigger buy_emerald set 1"},"hoverEvent":{"action":"show_text","contents":"Pay 4 emeralds for a random rare reward"}}]
tellraw @s [{"text":"[Trade 2 Diamonds]","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger buy_diamond set 1"},"hoverEvent":{"action":"show_text","contents":"Pay 2 diamonds for a random premium reward"}}]