Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run once to setup the scoreboard
- scoreboard objectives add x dummy
- scoreboard objectives add y dummy
- scoreboard objectives add z dummy
- scoreboard objectives add res dummy
- scoreboard objectives add tmp dummy
- give @p minecraft:armor_stand 1 0 {EntityTag:{NoGravity:1b,Tags:[PL,PL_SOURCE,PL_SPX,PL_SNX,PL_SPY,PL_SNY,PL_SPZ,PL_SNZ]}}
- # Main-Loop
- scoreboard players tag @e[type=ArmorStand,tag=PL] add PL_OLD
- scoreboard players add @e[type=ArmorStand,tag=PL] x 0
- execute @e[type=ArmorStand,score_x_min=-2147483648,tag=PL_SPX] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Tags:[PL,PL_TPX,PL_SPY,PL_SNY,PL_SPZ,PL_SNZ]}
- execute @e[type=ArmorStand,score_x_min=-2147483648,tag=PL_SNX] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Tags:[PL,PL_TNX,PL_SPY,PL_SNY,PL_SPZ,PL_SNZ]}
- execute @e[type=ArmorStand,score_x_min=-2147483648,tag=PL_SPY] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Tags:[PL,PL_TPY]}
- execute @e[type=ArmorStand,score_x_min=-2147483648,tag=PL_SNY] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Tags:[PL,PL_TNY]}
- execute @e[type=ArmorStand,score_x_min=-2147483648,tag=PL_SPZ] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Tags:[PL,PL_TPZ,PL_SPY,PL_SNY]}
- execute @e[type=ArmorStand,score_x_min=-2147483648,tag=PL_SNZ] ~ ~ ~ summon ArmorStand ~ ~ ~ {NoGravity:1b,Tags:[PL,PL_TNZ,PL_SPY,PL_SNY]}
- execute @e[type=ArmorStand,tag=PL_OLD] ~ ~ ~ scoreboard players operation @e[r=0,tag=!PL_OLD] x = @e[r=0,tag=PL_OLD] x
- execute @e[type=ArmorStand,tag=PL_OLD] ~ ~ ~ scoreboard players operation @e[r=0,tag=!PL_OLD] y = @e[r=0,tag=PL_OLD] y
- execute @e[type=ArmorStand,tag=PL_OLD] ~ ~ ~ scoreboard players operation @e[r=0,tag=!PL_OLD] z = @e[r=0,tag=PL_OLD] z
- tp @e[type=ArmorStand,tag=PL_TPX] ~1 ~ ~
- tp @e[type=ArmorStand,tag=PL_TNX] ~-1 ~ ~
- tp @e[type=ArmorStand,tag=PL_TPY] ~ ~1 ~
- tp @e[type=ArmorStand,tag=PL_TNY] ~ ~-1 ~
- tp @e[type=ArmorStand,tag=PL_TPZ] ~ ~ ~1
- tp @e[type=ArmorStand,tag=PL_TNZ] ~ ~ ~-1
- scoreboard players add @e[type=ArmorStand,tag=PL_TPX] x 1
- scoreboard players remove @e[type=ArmorStand,tag=PL_TNX] x 1
- scoreboard players add @e[type=ArmorStand,tag=PL_TPY] y 1
- scoreboard players remove @e[type=ArmorStand,tag=PL_TNY] y 1
- scoreboard players add @e[type=ArmorStand,tag=PL_TPZ] z 1
- scoreboard players remove @e[type=ArmorStand,tag=PL_TNZ] z 1
- kill @e[tag=PL_SOURCE]
- # Circle
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res = @e[r=0,tag=PL] x
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res *= @e[r=0,tag=PL] x
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp = @e[r=0,tag=PL] y
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp *= @e[r=0,tag=PL] y
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res += @e[r=0,tag=PL] tmp
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp = @e[r=0,tag=PL] z
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp *= @e[r=0,tag=PL] z
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res += @e[r=0,tag=PL] tmp
- execute @e[type=ArmorStand,tag=PL,score_res_min=100,score_res=120] ~ ~ ~ setblock ~ ~ ~ stained_glass 15 keep
- kill @e[type=ArmorStand,tag=PL,score_res_min=130]
- # Pyramid
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res = @e[r=0,tag=PL] x
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res *= @e[r=0,tag=PL] y
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res *= @e[r=0,tag=PL] z
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res *= @e[r=0,tag=PL] res
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res *= @e[r=0,tag=PL] res
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ setblock ~ ~ ~ stained_hardened_clay 13 keep
- kill @e[type=ArmorStand,tag=PL,score_res_min=1000]
- # Golden Eye
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res = @e[r=0,tag=PL] x
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res *= @e[r=0,tag=PL] x
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp = @e[r=0,tag=PL] y
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp *= @e[r=0,tag=PL] y
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res += @e[r=0,tag=PL] tmp
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp = @e[r=0,tag=PL] z
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp *= @e[r=0,tag=PL] z
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] res += @e[r=0,tag=PL] tmp
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp += @e[r=0,tag=PL] res
- execute @e[type=ArmorStand,tag=PL] ~ ~ ~ scoreboard players operation @e[r=0,tag=PL] tmp *= @e[r=0,tag=PL] x
- execute @e[type=ArmorStand,tag=PL,score_res_min=100,score_tmp=1000] ~ ~ ~ setblock ~ ~ ~ gold_block 15 keep
- kill @e[type=ArmorStand,tag=PL,score_tmp_min=2000]
Advertisement
Add Comment
Please, Sign In to add comment