The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2013
Posts:
140
Location:
New Paltz, NY
Minecraft:
Evcam
Member Details
I want to have an invisible zombie with a name of "1" have a cow with the same name constantly teleported 20 blocks above it. Is this possible?? I think that
I would recommend naming the entities different names, I just get confused, not that I think it makes a difference.
You are teleporting the Cow ten blocks up, you never teleported it TO the zombie, so its just going to teleport it ten blocks up. So you have to first teleport it to the zombie, then 10 blocks up
The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2013
Posts:
140
Location:
New Paltz, NY
Minecraft:
Evcam
Member Details
I should've been clearer, what I want to achieve is to make the cow fly through the air using the zombie as a guide. The zombie is invisible, so that it isn't seen, and merely serves to guide the cow flying above. The zombie has an increased tracking distance, and is being used to pathfind to a villager marking a spot. The look I'm going for is a cow that flies through the air to a pre-determined spot. There's a renamed villager spawn egg that you use to mark a spot (All villagers named "Location Marker" instantly get very high slowness) and then you spawn a cow somewhere else, and the cow flies to the location you marked.
This can be done, but requires 2 command blocks and a 20hz clock. Also, the CustomName needs to have some letters in it, I think, as I've had problems targeting entities with just the name of "1" (ex. "name=Cow1, name=Zombie1, etc...)
CMD Block 1: "/tp @e[name=Cow1] @e[name=Zombie1]" ----- This will teleport the cow to the zombie.
CMD Block 2: "/tp @e[name=Cow1] ~ ~10 ~" ----- This will teleport the cow up 10 block spaces.
NOTE: Clock 1 & 2 CMD Blocks make the clock 'silent'...to where you don't here the sound of the block being destroyed. To start the clock, place a Block of Redstone in the center. To stop the clock, place a Block of Redstone on or next to the either one of the Clock CMD Blocks (the command will not execute again if it is always 'on').
Theses commands need to be executed in this exact order. This can be accomplished by setting up the blocks with CMD Block 1 North of CMD Block 2, because Minecraft executes code from the Player starting with the North, to East, to South, then to West. (I may be wrong about East and West, but North executes before South, nonetheless). When this is done correctly, the Cow will always appear 10 block above the Zombie. If not, re-position the command blocks and try again.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2013
Posts:
140
Location:
New Paltz, NY
Minecraft:
Evcam
Member Details
Thanks for all the help, I am using the suggestion of Dan_Shemp, with the tower of ArmorStands. I hadn't even considered Riding, but it makes perfect sense. I used the following command from this website to achieve the desired effect:
The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2013
Posts:
140
Location:
New Paltz, NY
Minecraft:
Evcam
Member Details
By the way, the item on the Zombie's head is there so it won't burn. I did't make it invulnerable, because it would still burn, just not take damage. You still see the fire when the zombie is invisible. The item I put on his head is a music disc. After finding that almost anything you put on its head will be visible (Including barriers which show the red X symbol) I found that music discs did not in any way show. I was very happy.
By the way, the item on the Zombie's head is there so it won't burn. I did't make it invulnerable, because it would still burn, just not take damage. You still see the fire when the zombie is invisible. The item I put on his head is a music disc. After finding that almost anything you put on its head will be visible (Including barriers which show the red X symbol) I found that music discs did not in any way show. I was very happy.
Off the topic but I like the music disc part...I didn't know that. I added "thanks" to your post.
will teleport the COW to its own coordinates. Can anyone help?
You are teleporting the Cow ten blocks up, you never teleported it TO the zombie, so its just going to teleport it ten blocks up. So you have to first teleport it to the zombie, then 10 blocks up
CMD Block 1: "/tp @e[name=Cow1] @e[name=Zombie1]" ----- This will teleport the cow to the zombie.
CMD Block 2: "/tp @e[name=Cow1] ~ ~10 ~" ----- This will teleport the cow up 10 block spaces.
Clock 1: "/setblock ~1 ~ ~ redstone_block 0 destroy"
Clock 2: "/setblock ~-1 ~ ~ air
NOTE: Clock 1 & 2 CMD Blocks make the clock 'silent'...to where you don't here the sound of the block being destroyed. To start the clock, place a Block of Redstone in the center. To stop the clock, place a Block of Redstone on or next to the either one of the Clock CMD Blocks (the command will not execute again if it is always 'on').
Theses commands need to be executed in this exact order. This can be accomplished by setting up the blocks with CMD Block 1 North of CMD Block 2, because Minecraft executes code from the Player starting with the North, to East, to South, then to West. (I may be wrong about East and West, but North executes before South, nonetheless). When this is done correctly, the Cow will always appear 10 block above the Zombie. If not, re-position the command blocks and try again.
2./tp @e[type=Cow,name=1] @e[type=ArmorStand,name=1]
3.kill @e[type=ArmorStand,name=1]
you probebly get that it all should run on a super fast clock in that order
Thanks for all your replies!
Off the topic but I like the music disc part...I didn't know that. I added "thanks" to your post.