execute store result storage pctf:angle input.x int 1 run random value 0..9
execute store result storage pctf:angle input.y int 1 run random value 0..9

scoreboard players set #temp block_pierce 0

tag @s add raycaster
execute anchored eyes run function pctf:logic/items/railgun/start_raycast with storage pctf:angle input
tag @s remove raycaster

playsound minecraft:entity.breeze.deflect player @a ~ ~ ~ 1.5 0
playsound minecraft:entity.iron_golem.repair player @a ~ ~ ~ 2.5 2
playsound minecraft:entity.breeze.wind_burst player @a ~ ~ ~ 1 0.75

function pctf:motion/push {power: "2", x: "^", y: "^", z: "^7.5"}

scoreboard players set @s item_cooldown 38