Minecraft – Multiple commands in a given sign doesn’t execute correctly…

minecraft-commandsminecraft-java-edition

Well, as you probably know, ArmorStand's with CustomName's are used to create holograms. I am trying to make a one command sign generator that creates a multiline hologram, multiple ArmorStand's under each other. The generator nearly works, as it returns a result. The command is quite long, so you can go read it on Pastebin by clicking here. The problem is that the ArmorStand's above the lowest one doesn't teleport.

To make it simpler

Let's say I have these commands:

/summon ArmorStand ~ ~ ~ {CustomName:bottom,NoGravity:1,Passengers:[{id:Zombie,Passengers:[{id:"ArmorStand",NoGravity:1,CustomName:top}]}]}

/kill @e[type=Zombie]

/execute @e[name=bottom] ~ ~ ~ /tp @e[name=top] ~ ~-3 ~

And I put it into a sign using this sign generator. The result won't be the same as when I execute the commands each by hand. For an example click here. What is the problem here?

Best Answer

First of all if you execute all of them from one sign in different lines, then you need to do it sign by sign. If you want them to execute from one line (all at once) I suggest you place a redstone block with a setblock that activates a command block chain.