execute if block 149 -47 30 minecraft:stone_pressure_plate[powered=false] run fill 145 -56 31 147 -56 30 minecraft:stripped_mangrove_wood
execute if block 149 -47 30 minecraft:stone_pressure_plate[powered=true] run fill 145 -56 31 147 -56 30 minecraft:air





execute if score SNAKE_COOLDOWN timer matches 100 run summon minecraft:armor_stand 73 -52.74 101 {Invulnerable:1b,Passengers:[{id:"minecraft:shulker",NoAI:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:99999}],Silent:1b,Tags:[snakeblock_shulker,snakeblock_part]},{id:"minecraft:falling_block",BlockState:{Name:"minecraft:red_terracotta"},Time:-1s,NoGravity:1b,Tags:[snakeblock_visual,snakeblock_part]}],NoGravity:1b,Tags:[snakeblock,snakeblock_part],Small:1b,Invisible:1b,Rotation:[-90f,0f]}



execute as @a[scores={level=68},nbt={OnGround:1b},gamemode=!spectator,gamemode=!creative] at @s if block ~ ~-0.1 ~ tinted_glass run kill @s



execute if score SNAKE_COOLDOWN timer matches 180 run scoreboard players set SNAKE_COOLDOWN timer 0

execute as @e[tag=snakeblock] at @s run tp @s ^ ^ ^0.1
execute as @e[tag=snakeblock] at @s if entity @e[tag=snakeblock_rotator,distance=..1] rotated as @e[tag=snakeblock_rotator,distance=..1,limit=1,sort=nearest] run tp @s ~ ~ ~ ~ ~

execute as @e[tag=snakeblock_part] at @s if entity @e[tag=snakeblock_killer,distance=..1] run kill @s

execute as @a[scores={level=70}] at @s if block ~ ~2 ~ minecraft:slime_block run tag @s add on_slime_levitation
execute as @a[tag=on_slime_levitation] at @s if block ~ ~2 ~ minecraft:slime_block run effect give @s levitation 1 3 true
execute as @a[tag=on_slime_levitation] at @s unless block ~ ~2 ~ minecraft:slime_block run effect clear @s levitation
execute as @a[tag=on_slime_levitation] at @s unless block ~ ~2 ~ minecraft:slime_block run tag @s remove on_slime_levitation

execute if block 56 -45 117 minecraft:target[power=0] run fill 56 -46 117 56 -47 117 minecraft:quartz_block
execute unless block 56 -45 117 minecraft:target[power=0] run fill 56 -46 117 56 -47 117 minecraft:air

execute as @a[scores={level=86},gamemode=!creative,gamemode=!spectator] at @s if block ~ ~ ~ water run kill @s




execute as @a[scores={level=94}] at @s if score @s jump matches 1.. if block 90 -61 137 redstone_block run scoreboard players set LEVEL94 jump 1

execute as @a[scores={level=94}] at @s if score @s jump matches 1.. if block 90 -61 137 redstone_block run setblock 90 -62 137 redstone_block
execute as @a[scores={level=94}] at @s if score @s jump matches 1.. if block 90 -61 137 redstone_block run setblock 90 -61 137 air

execute as @a[scores={level=94}] at @s if score @s jump matches 1.. unless block 90 -61 137 redstone_block if score LEVEL94 jump matches 0 run setblock 90 -62 137 air
execute as @a[scores={level=94}] at @s if score @s jump matches 1.. unless block 90 -61 137 redstone_block if score LEVEL94 jump matches 0 run setblock 90 -61 137 redstone_block






scoreboard players reset @a jump
scoreboard players set LEVEL94 jump 0

function ps:hints

#-0.74	