
scoreboard players operation money_check b = money_count b

execute if score money_check b matches ..197 run scoreboard players set buy_1 b 3
execute if score money_check b matches 198.. run scoreboard players set buy_1 b 2

execute if score buy_1 b matches 2 run replaceitem entity @a[hasitem={item=c:tate_s,quantity=0}] slot.hotbar 2 c:tate_s 1 0 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}
execute if score buy_1 b matches 2 run playsound c.money @a
execute if score buy_1 b matches 2 run scoreboard players remove money_count b 198