execute @a[c=1] ~ ~ ~ detect ~ ~-0.00001 ~ air 1 event entity @s start
execute @a[rx=90, rxm=89] ~ ~ ~ event entity @s stop_happy
execute @a[rx=-89, rxm=-90] ~ ~ ~ event entity @s start_happy
execute @a[rx=90, rxm=89] ~ ~ ~ event entity @s stopjump
execute @a[rx=90, rxm=89] ~ ~ ~ title @s actionbar §l§4OFF
execute @a[rx=-89, rxm=-90] ~ ~ ~ event entity @s powerjump
execute @a[rx=-89, rxm=-90] ~ ~ ~ title @s actionbar §l§aON
scoreboard objectives add dyna dummy dyna
scoreboard objectives add flip dummy flip
scoreboard objectives add tick dummy tick
scoreboard players random @a dyna 1 16
scoreboard players random @a flip 1 5
scoreboard players random @a tick 1 2
function wall
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ oak_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ spruce_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ birch_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ jungle_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ acacia_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ dark_oak_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ mangrove_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ cherry_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ bamboo_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ warped_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ crimson_fence -1 tag @s add vault
execute @a[scores={dyna=5..8}] ~ ~ ~ detect ~ ~-2.24 ~ nether_brick_fence -1 tag @s add vault
execute @a[scores={dyna=9..13, flip=4, tick=2}, hasitem={item=diamond, location=slot.weapon.mainhand}] ~ ~ ~ detect ~ ~-3 ~ air 0 execute @s ~ ~ ~ detect ~ ~-1 ~ air 0 execute @s ~ ~ ~ detect ~ ~-2 ~ air 0 execute @s ~ ~ ~ detect ~ ~-0.5 ~ air 0 execute @s ~ ~ ~ detect ~ ~-1 ~1 air 0 execute @s ~ ~ ~ detect ~ ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~ air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~ air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~1 air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~1 air 0 playanimation @s animation.player.frontflipx
execute @a[scores={dyna=9..13, flip=4, tick=2}, hasitem={item=redstone, location=slot.weapon.mainhand}] ~ ~ ~ detect ~ ~-3 ~ air 0 execute @s ~ ~ ~ detect ~ ~-1 ~ air 0 execute @s ~ ~ ~ detect ~ ~-2 ~ air 0 execute @s ~ ~ ~ detect ~ ~-0.5 ~ air 0 execute @s ~ ~ ~ detect ~ ~-1 ~1 air 0 execute @s ~ ~ ~ detect ~ ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~ air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~ air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~1 air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~1 air 0 playanimation @s animation.player.backflipx
execute @a[scores={dyna=9..13, flip=4, tick=2}, hasitem={item=lapis_lazuli, location=slot.weapon.mainhand}] ~ ~ ~ detect ~ ~-3 ~ air 0 execute @s ~ ~ ~ detect ~ ~-1 ~ air 0 execute @s ~ ~ ~ detect ~ ~-2 ~ air 0 execute @s ~ ~ ~ detect ~ ~0.5 ~ air 0 execute @s ~ ~ ~ detect ~ ~-1 ~1 air 0 execute @s ~ ~ ~ detect ~ ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~ air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~ air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~1 air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~1 ~-1 ~-1 air 0 execute @s ~ ~ ~ detect ~-1 ~-1 ~1 air 0 playanimation @s animation.player.sideflipx
effect @a[hasitem={item=diamond, location=slot.weapon.mainhand}, tag=sprint] jump_boost 2 2 true
effect @a[hasitem={item=redstone, location=slot.weapon.mainhand}, tag=sprint] jump_boost 2 2 true
effect @a[hasitem={item=lapis_lazuli, location=slot.weapon.mainhand}, tag=sprint] jump_boost 2 2 true
playanimation @a[tag=vault, tag=sprint, scores={flip=1, tick=1}] animation.player.backflipx
playanimation @a[tag=vault, tag=sprint, scores={flip=2, tick=1}] animation.player.frontflipx
playanimation @a[tag=vault, tag=sprint, scores={flip=3, tick=1}] animation.player.sideflipx
execute @a ~ ~ ~ detect ^ ^1 ^0.25 oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ oak_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ oak_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ oak_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 spruce_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 spruce_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 spruce_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 spruce_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 spruce_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ spruce_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ spruce_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ spruce_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 birch_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 birch_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 birch_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 birch_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 birch_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ birch_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ birch_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ birch_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 jungle_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 jungle_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 jungle_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 jungle_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 jungle_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ jungle_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ jungle_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ jungle_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 acacia_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 acacia_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 acacia_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 acacia_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 acacia_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ acacia_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ acacia_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ acacia_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 dark_oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 dark_oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 dark_oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 dark_oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 dark_oak_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ dark_oak_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ dark_oak_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ dark_oak_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 mangrove_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 mangrove_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 mangrove_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 mangrove_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 mangrove_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ mangrove_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ mangrove_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ mangrove_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 cherry_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 cherry_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 cherry_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 cherry_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 cherry_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ cherry_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ cherry_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ cherry_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 bamboo_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 bamboo_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 bamboo_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 bamboo_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 bamboo_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ bamboo_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ bamboo_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ bamboo_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 crimson_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 crimson_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 crimson_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 crimson_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 crimson_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ crimson_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ crimson_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ crimson_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 warped_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 warped_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 warped_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 warped_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 warped_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ warped_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ warped_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ warped_fence -1 playanimation @s animation.acro.land
execute @a ~ ~ ~ detect ^ ^1 ^0.25 nether_brick_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^0.5 nether_brick_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^1 nether_brick_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^2 nether_brick_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^1 ^3 nether_brick_fence -1 effect @s jump_boost 4 2 true
execute @a ~ ~ ~ detect ^ ^-1 ^ nether_brick_fence -1 effect @s jump_boost 4 2 true
execute @a[tag=sprint, scores={dyna=2}] ~ ~ ~ detect ~ ~-1.55 ~ nether_brick_fence -1 playanimation @s animation.acro.land
execute @a[tag=sprint, scores={dyna=4}] ~ ~ ~ detect ~ ~-1.55 ~ nether_brick_fence -1 playanimation @s animation.acro.land
execute @a[scores={dyna=16}, hasitem={item=iron_ingot, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dyna1
execute @a[scores={dyna=16}, hasitem={item=gold_ingot, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dyna2
execute @a[scores={dyna=16}, hasitem={item=copper_ingot, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dyna3
execute @a[scores={dyna=16}, hasitem={item=emerald, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dynar
execute @a[scores={dyna=8}, hasitem={item=iron_ingot, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dyna1
execute @a[scores={dyna=8}, hasitem={item=gold_ingot, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dyna2
execute @a[scores={dyna=8}, hasitem={item=copper_ingot, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dyna3
execute @a[scores={dyna=8}, hasitem={item=emerald, location=slot.weapon.mainhand}] ~ ~ ~ event entity @s dynar
function camera
tag @a[tag=vault, scores={tick=2}] remove vault