2

Tp multiple entities to multiple players

TobyTapper's Avatar TobyTapper7/8/18 7:11 pm
2 emeralds 334 4
7/10/2018 12:13 am
AgentShieldjj's Avatar AgentShieldjj
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 TobyTapper's Avatar
TobyTapper
Level 6 : Apprentice Engineer
12

Create an account or sign in to comment.

4

1
07/09/2018 3:06 pm
Level 33 : Artisan Creeper Hugger
AgentShieldjj
AgentShieldjj's Avatar
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
TobyTapper's Avatar
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 33 : Artisan Creeper Hugger
AgentShieldjj
AgentShieldjj's Avatar
plus do you have discord?
1
07/10/2018 12:12 am
Level 33 : Artisan Creeper Hugger
AgentShieldjj
AgentShieldjj's Avatar
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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome