1

I need halp

Davekillerish's Avatar Davekillerish4/21/15 12:49 pm
1 emeralds 306 8
4/23/2015 12:43 pm
Davekillerish's Avatar Davekillerish
Hello, I hope you can help fix my problemo.
I am making a racing game, and I need a system were at the push of a button 4 players are assigned a lane and forced to go to it.
There is a lobby were they can manually go to the lane but I cant trust people not to be stupid and choose the wrong lane and win for someone else.
Posted by Davekillerish's Avatar
Davekillerish
Level 23 : Expert Nerd
22

Create an account or sign in to comment.

8

1
04/22/2015 4:28 pm
Level 55 : Grandmaster Dragon
Skitto493
Skitto493's Avatar
You could do what the guys said above, but if you don't want to deal with scoreboard objectives you can use this method:

Have a separated lobby where your players will be when they push the button. Now, when they push the button, have 4 command blocks separated by repeaters (any delay is fine). All 4 command blocks can have the same command:
/tp @p[r=20] x y z

Simply change the radius, if you want, and change x y z to the coordinates of the destination. In your situation, you want different coordinates on each command block.
1
04/23/2015 12:43 pm
Level 23 : Expert Nerd
Davekillerish
Davekillerish's Avatar
That design is simple, but I need to tie this system in with the finish line system that will also deal with scoreboards as it will assign points to use in the shop.
1
04/21/2015 4:22 pm
Level 22 : Expert Network
YTCereal
YTCereal's Avatar
or?

Just make a Barrier Walls round the lane for Each.
SO ITS easyer
if u dont want to Redstone
1
04/21/2015 4:02 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
I'd do pretty much what Dudamesh said, but with one little change. If you want to just give 4 people scores when they hit the button, you could do it with the random player selector instead of just doing @p:scoreboard players set @r[score_a=0] a [1, 2, 3, or 4]That way it's 4 random people all on one button press, regardless of their location.
1
04/22/2015 3:23 pm
Level 23 : Expert Nerd
Davekillerish
Davekillerish's Avatar
I have scoreboard values named p1 p2 p3 p4 Could I just replace the 1, 2 ,3 ,4 with p1-p4?
1
04/22/2015 3:27 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
Do you mean objectives named p1-4? If that's the case, you'll want to change the objective name in my command from 'a' to whatever the objective for that specific player is. Then you can just give them a score of 1 on the objective for whatever player they are.
1
04/21/2015 1:16 pm
Level 62 : High Grandmaster Senpai
Dudamesh
Dudamesh's Avatar
You need command blocks for this one

now make an objective using this:

/scoreboard objectives add 'a' dummy

a is the objective's name (No Apostrophes)

now make 4 seperate buttons with this command in it

/scoreboard players set @p 'a' 'b'

a is the name while b is the count which determines which is who (No Apostrophes)

Example:
1st Player is equal to 1
while 2nd player is equal to 2

now the single button:

make 4 commandblocks with this in it:

/tp @p[score_'a'='b'] c d e

a is the name, b is the count, c is the X coordinates, d is Y, and e is Z

Example:
a=Team
b=1st player=1, 2nd player=2
c=64 for first player, 32 for 2nd player
d=64 for first player, 32 for 2nd player
e=64 for first player, 32 for 2nd player

/tp @p[score_Team=1] 64 64 64 (this is for the First player Command)
/tp @p[score_Team=2] 32 32 32 (this is for the Second player command)

(Now don't just Copy paste this, that won't work)
Now those commands will tp the First player to the Coordinates
and the 2nd player to the other
1
04/21/2015 1:08 pm
Level 62 : High Grandmaster Senpai
Dudamesh
Dudamesh's Avatar
Wait I have an idea so I'll sort it out in just a min
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome