#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

scoreboard players remove @s[scores={time=1..}] time 1

scoreboard players operation @s tick = @s time
scoreboard players operation @s tick *= @s time

scoreboard players set @s main -90
scoreboard players operation @s main += @s tick
execute store result entity @s Rotation[0] float 1 run scoreboard players get @s main
execute at @s run playsound minecraft:block.wood.hit master @a ~ ~ ~ 0.33 1.5