function pctf:cosmetics/kill_messages/page/return
execute unless entity @s[tag=c_km_origami] unless score @s credits matches 60.. run return run tellraw @s {"text":"You don't have enough Credits!","color":"red"}

execute if entity @s[tag=c_km_origami] run scoreboard players set @s km_num 7
function pctf:cosmetics/kill_messages/page/return
execute if entity @s[tag=c_km_origami] run return run tellraw @s {"text":"You selected Origami!","color":"aqua"}

scoreboard players remove @s credits 60
tag @s add c_km_origami
function pctf:cosmetics/kill_messages/page/return
tellraw @s {"text":"You purchased Origami!","color":"green"}
playsound minecraft:entity.player.levelup player @s ~ ~ ~ 1 1.25
function pctf:music/jingle/play
particle minecraft:happy_villager ~ ~ ~ 2 2 2 0 250 force @s