1
I need halp
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.
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.
Create an account or sign in to comment.
8
1
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:
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.
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
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
or?
Just make a Barrier Walls round the lane for Each.
SO ITS easyer
if u dont want to Redstone
Just make a Barrier Walls round the lane for Each.
SO ITS easyer
if u dont want to Redstone
1
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
I have scoreboard values named p1 p2 p3 p4 Could I just replace the 1, 2 ,3 ,4 with p1-p4?
1
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
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
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
Wait I have an idea so I'll sort it out in just a min