How it works:
To see what's inside of each command block just point your mouse over it.
How to read?
Don't worry that's simple.
Read before the chain on the left and after the one on the right. Start from the bottom to the top following the direction the arrow are pointing.
tp @e[type=ArmorStand,tag=platformT,name=backwards] ~-0.1 ~ ~
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
This command constantly teleport every armor stand named "backwards", towards the point "1" by 0.1 blocks per tick.
tp @e[type=ArmorStand,tag=platformT,name=forward] ~0.1 ~ ~
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
This command constantly teleport every armor stand named "forward", towards the point "2" by 0.1 blocks per tick.
execute @e[name=2,type=ArmorStand] ~ ~-2 ~ entitydata @e[type=ArmorStand,tag=platformT,r=0] {CustomName:backwards}
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
When the platform is in a radius of 0 blocks from the point "2" his name changes to "backwards"
execute @e[name=1,type=ArmorStand] ~ ~-2 ~ entitydata @e[type=ArmorStand,tag=platformT,r=0] {CustomName:forward}
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
When the platform is in a radius of 0 blocks from the point "1" his name changes to "forward"
entitydata @e[type=FallingSand,tag=platformT] {Time:1}
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
This little command, prevents the falling sand entity, aka the block that you see, to disappear. It constantly sets its "Time" to "1" so the value doesn't decrease.
Commands to run once:
/summon ArmorStand ~ ~ ~ {CustomName:"1",NoGravity:1,Invisible:1,Marker:1}
/summon ArmorStand ~ ~ ~ {Tags:[platformT],Invisible:1,NoGravity:1,Invulnerable:1,Passengers:[{id:Shulker,NoAI:1,Invulnerable:1,Silent:1,PersistenceRequired:1,Tags:[platformT],ActiveEffects:[{Id:14,Amplifier:0,Duration:1000000,Ambient:1,ShowParticles:0b}]},{id:FallingSand,Block:"minecraft:mossy_cobblestone",Time:1,Tags:[platformT],}]}
© Cimap. All Rights Reserved
This website is not endorsed, associated or affiliated with Mojang AB.