scoreboard players set inmine_zhs:server_data inmine_zhs:clock 0

execute as @e[type=inmine_zhs:titanium_stand,tag=inmine_zhs.titanium_stand_color_preview.helmet] run scriptevent inmine_zhs:titanium_stand reset_preview/helmet
execute as @e[type=inmine_zhs:titanium_stand,tag=inmine_zhs.titanium_stand_color_preview.chestplate] run scriptevent inmine_zhs:titanium_stand reset_preview/chestplate
execute as @e[type=inmine_zhs:titanium_stand,tag=inmine_zhs.titanium_stand_color_preview.leggings] run scriptevent inmine_zhs:titanium_stand reset_preview/leggings
execute as @e[type=inmine_zhs:titanium_stand,tag=inmine_zhs.titanium_stand_color_preview.boots] run scriptevent inmine_zhs:titanium_stand reset_preview/boots
execute as @e[type=inmine_zhs:titanium_stand,tag=inmine_zhs.titanium_stand_color_preview.mainHand] run scriptevent inmine_zhs:titanium_stand reset_preview/mainHand
execute as @e[type=inmine_zhs:titanium_stand,tag=inmine_zhs.titanium_stand_color_preview.offHand] run scriptevent inmine_zhs:titanium_stand reset_preview/offHand


tag @a remove inmine_zhs.could_spray
execute as @a[hasitem={item=inmine_zhs:spray}] at @s if entity @e[type=inmine_zhs:titanium_stand,r=3] run tag @s add inmine_zhs.could_spray
