home Forumsplay_arrow Communities play_arrow Redstone

2

tp multiple entities to multiple players

2 emeralds4 replies167 views
created 07/08/2018 7:11 pm by TobyTapper
last reply 07/10/2018 12:13 am
Ok, I am working on a mini game that uses these two commands,

Repeating block: /Tp @e[type=minecart] TobyTapper
on top chain: /tp @e[type=minecart] ~ ~-50 ~

This works great for 1 player but now I have a problem, Every player needs a mine cart 50 blocks under him or it does not work. And every mine cart needs a zombie in it. "I got that part done, just to lazy to put it here."

If you have more questions, or i did not make myself clear, feel free to post below.


Posted by avatar
TobyTapper
Level 6 : Apprentice Engineer
13

comment Login or register to post a reply.

4 replies

1
07/09/2018 3:06 pm
Level 23 : Expert Engineer
AgentShield233
is it for a public server? and plz give more info about what the game does
2
07/09/2018 11:47 pm
Level 6 : Apprentice Engineer
TobyTapper
It's a map in 1.12, and i don't want to give out to much information before release but I'll tell you what I can.
50 blocks underground there is a square room (unknown to players), where the mine cart with the zombie in it is teleport-ed in perspective to the players above ground. The reason the zombie has to be in a minecraft is because a tp zombie alone does not scare the villagers away in the under ground room, which was the entity I was testing for in a previous forum. But my problem is that every player needs a zombie 50 under him, and I know some thing like /tp @e[type=zombie] @e[type=player] doesn't work, and the game has two teams, red and blue, so tp zombies by using teams for every player wont be possible. I almost think uuid's might work but I'm not that good with then...

That was a lot, If I messed up up there some where please tell me. And if you need anything else please ask.
1
07/10/2018 12:13 am
Level 23 : Expert Engineer
AgentShield233
plus do you have discord?
1
07/10/2018 12:12 am
Level 23 : Expert Engineer
AgentShield233
sry, I'll do as much s I can to help, you could using scoreboard.

start with making dummies for each team

/scoreboard objectives add blue dummy

/scoreboard objectives add red dummy

now depending on what you want the game to do this will not work

get a way to randomize the Teams by using these commands

/scoreboard objectives set @r[r=20] blue 1

/scoreboard objectives set @r[r=20] red 1

I don't get the reason you need the minecart, can't you do the DataTag
/summon minecraft:zombie ~ ~ ~ {NoAI:1} ,plus give the zombies custom names (like "red" and "blue")

to tp to that team

then you could use that to tp the zombie Named "blue" to a random player on blue team using this commands (in repeating command blocks)

/execute @e[type=Zombie,name=blue] ~ ~ ~ /tp @s @r[score_blue_min=1]

/execute @e[type=Zombie,name=red] ~ ~ ~ /tp @s @r[score_red_min=1]

make sure to have a reseting system for the scoreboard dummies, with these commands.

/scoreboard objectives set @a blue 0

/scoreboard objectives set @a red 0

sry if this is not what you need

and plz give me more information why the zombies need to be in minecarts



plz ask more question, if you need to.

https://www.planetminecraft.com/member/agentshield233/

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome