Tape Measure

summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:setblock ~2 ~-1 ~0 command_block 5 replace {Command:"scoreboard objectives add mesTP1 dummy"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~0 repeating_command_block 5 replace {Command:"execute @e[tag=MSTp1] ~ ~ ~ kill @e[tag=MSTp11]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~0 chain_command_block 5 replace {Command:"kill @e[tag=MSTpG]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~2 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp1] ~ ~ ~ summon ArmorStand ~ ~0.5 ~ {Tags:[MSTp11,MSTpG],NoGravity:1,Marker:1,CustomName:A,CustomNameVisible:1,Invisible:1}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~0 chain_command_block 5 replace {Command:"/give @p minecraft:spawn_egg 1 1 {display:{Name:Point A},HideFlags:1,ench:[{id:1,lvl:1}],EntityTag:{id:\\\"Bat\\\",Tags:[MSTp1]}}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~3 ~-3 ~0 chain_command_block 5 replace {Command:"kill @e[tag=MSTp1]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~0 chain_command_block 5 replace {Command:"/give @p minecraft:spawn_egg 1 1 {display:{Name:Point B},HideFlags:1,ench:[{id:1,lvl:1}],EntityTag:{id:\\\"Bat\\\",Tags:[MSTp2]}}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~4 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp2] ~ ~ ~ kill @e[tag=MSTp22]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~5 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp2] ~ ~ ~ summon ArmorStand ~ ~0.5 ~ {Tags:[MSTp22,MSTpG],NoGravity:1,Marker:1,CustomName:B,CustomNameVisible:1,Invisible:1}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~6 ~-3 ~0 chain_command_block 5 replace {Command:"kill @e[tag=MSTp2]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~7 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ particle reddust ~ ~ ~ -1 1 0 1 0",auto:1}},{id:MinecartCommandBlock,Command:setblock ~8 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp22] ~ ~ ~ particle reddust ~ ~ ~ 0 0 0 1 0",auto:1}},{id:MinecartCommandBlock,Command:setblock ~9 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ execute @e[type=Item,r=1] ~ ~ ~ execute @e[tag=MSTp11,c=1] ~ ~ ~ summon AreaEffectCloud ~ ~ ~ {Tags:[MSTp33,MSTp33PX],Radius:0.5f,Duration:1555,Particle:take}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~10 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ execute @e[type=Item,r=1] ~ ~ ~ execute @e[tag=MSTp11,c=1] ~ ~ ~ summon AreaEffectCloud ~ ~ ~ {Tags:[MSTp33,MSTp33NX],Radius:0.5f,Duration:1555,Particle:take}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~11 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ execute @e[type=Item,r=1] ~ ~ ~ execute @e[tag=MSTp11,c=1] ~ ~ ~ summon AreaEffectCloud ~ ~ ~ {Tags:[MSTp33,MSTp33PZ],Radius:0.5f,Duration:1555,Particle:take}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~12 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ execute @e[type=Item,r=1] ~ ~ ~ execute @e[tag=MSTp11,c=1] ~ ~ ~ summon AreaEffectCloud ~ ~ ~ {Tags:[MSTp33,MSTp33NZ],Radius:0.5f,Duration:1555,Particle:take}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~13 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ execute @e[type=Item,r=1] ~ ~ ~ execute @e[tag=MSTp11,c=1] ~ ~ ~ summon AreaEffectCloud ~ ~ ~ {Tags:[MSTp33,MSTp33PY],Radius:0.5f,Duration:1555,Particle:take}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~14 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ execute @e[type=Item,r=1] ~ ~ ~ execute @e[tag=MSTp11,c=1] ~ ~ ~ summon AreaEffectCloud ~ ~ ~ {Tags:[MSTp33,MSTp33NY],Radius:0.5f,Duration:1555,Particle:take}",auto:1}},{id:MinecartCommandBlock,Command:setblock ~15 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp11] ~ ~ ~ kill @e[type=Item,r=1]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~16 ~-3 ~0 chain_command_block 5 replace {Command:"tp @e[tag=MSTp33PX] ~1 ~ ~",auto:1}},{id:MinecartCommandBlock,Command:setblock ~17 ~-3 ~0 chain_command_block 5 replace {Command:"tp @e[tag=MSTp33NX] ~-1 ~ ~",auto:1}},{id:MinecartCommandBlock,Command:setblock ~18 ~-3 ~0 chain_command_block 5 replace {Command:"tp @e[tag=MSTp33PZ] ~ ~ ~1",auto:1}},{id:MinecartCommandBlock,Command:setblock ~19 ~-3 ~0 chain_command_block 5 replace {Command:"tp @e[tag=MSTp33NZ] ~ ~ ~-1",auto:1}},{id:MinecartCommandBlock,Command:setblock ~20 ~-3 ~0 chain_command_block 5 replace {Command:"tp @e[tag=MSTp33PY] ~ ~1 ~",auto:1}},{id:MinecartCommandBlock,Command:setblock ~21 ~-3 ~0 chain_command_block 5 replace {Command:"tp @e[tag=MSTp33NY] ~ ~-1 ~",auto:1}},{id:MinecartCommandBlock,Command:setblock ~22 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[score_mesTP1_min=149,c=1] ~ ~ ~ tellraw @a [\\\"\\\",{\\\"text\\\":\\\"<MEASURING TAPE> \\\"},{\\\"text\\\":\\\"Something went wrong. \\\",\\\"color\\\":\\\"red\\\"},{\\\"text\\\":\\\"The system couldn't be able to find point B. Make sure that both points have 2 coordinates in common. [X,Y,Z] And remember that the maximum distance between point A and point B is 150 blocks.\\\",\\\"color\\\":\\\"none\\\"}]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~23 ~-3 ~0 chain_command_block 5 replace {Command:"kill @e[score_mesTP1_min=149]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~24 ~-3 ~0 chain_command_block 5 replace {Command:"scoreboard players add @e[tag=MSTp33] mesTP1 1",auto:1}},{id:MinecartCommandBlock,Command:setblock ~25 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp33] ~ ~ ~ execute @e[tag=MSTp22,dy=0] ~ ~ ~ scoreboard players add @e[tag=MSTp33,c=1] mesTP1 1",auto:1}},{id:MinecartCommandBlock,Command:setblock ~26 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp33] ~ ~ ~ execute @e[tag=MSTp22,dy=0] ~ ~ ~ tellraw @a [\\\"\\\",{\\\"text\\\":\\\"<MEASURING TAPE> \\\"},{\\\"text\\\":\\\"The distance between point \\\"},{\\\"text\\\":\\\"A \\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"and point \\\"},{\\\"text\\\":\\\"B \\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\"is \\\"},{\\\"score\\\":{\\\"name\\\":\\\"@e[tag=MSTp33,c=1]\\\",\\\"objective\\\":\\\"mesTP1\\\"},\\\"color\\\":\\\"gold\\\",\\\"bold\\\":\\\"true\\\"},{\\\"text\\\":\\\" blocks.\\\"}]",auto:1}},{id:MinecartCommandBlock,Command:setblock ~27 ~-3 ~0 chain_command_block 5 replace {Command:"execute @e[tag=MSTp33] ~ ~ ~ execute @e[tag=MSTp22,dy=0] ~ ~ ~ kill @e[tag=MSTp33]",auto:1}},{id:MinecartCommandBlock,Command:fill ~1 ~-2 ~0 ~6 ~-2 ~0 carpet 2},{id:MinecartCommandBlock,Command:fill ~7 ~-2 ~0 ~8 ~-2 ~0 carpet 5},{id:MinecartCommandBlock,Command:fill ~9 ~-2 ~0 ~14 ~-2 ~0 carpet 0},{id:MinecartCommandBlock,Command:fill ~16 ~-2 ~0 ~21 ~-2 ~0 carpet 11},{id:MinecartCommandBlock,Command:fill ~22 ~-2 ~0 ~23 ~-2 ~0 carpet 1},{id:MinecartCommandBlock,Command:fill ~24 ~-2 ~0 ~27 ~-2 ~0 carpet 14},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~0 stone_button 2},{id:MinecartCommandBlock,Command:kill @e[type=ArmorStand,name=STRCMD]},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-2 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}

COPYRIGHT © CIMAP. ALL RIGHTS RESERVED.

This website is not endorsed, associated or affiliated with Mojang AB.

Contact me for business enquiries.