1
Help with PvP Map redstone
Hey guys! So I recently had built this Capture the flag map of mine and am nearly done with it. The only thing holding me back is this weird bug or glitch in the redstone or something.
-When the player dies, they should be teleported back to a spawn. I set it up so they step on a pressure plate linked to a command block that sets the spawnpoint at the coordinate desired.
-The output from the command block states that the spawnpoint for that player has been set for that coordinate.
-Then I tested it out and to my surprise, when I die, I spawn in a random spot and a message shows up saying "looks like your home bed was missing or obstructed"
-I went into MCedit and deleted all the beds in the world (i didn't think I had any to begin with) but to no avail. It still popped up with the same message and I kept spawning in a random location even though the command block said I had set my spawnpoint to a specific coordinate.
Help would be much appreciated on this as this is the only thing holding me back on releasing my map to you guys.
Thanks
C_is_Creative
-When the player dies, they should be teleported back to a spawn. I set it up so they step on a pressure plate linked to a command block that sets the spawnpoint at the coordinate desired.
-The output from the command block states that the spawnpoint for that player has been set for that coordinate.
-Then I tested it out and to my surprise, when I die, I spawn in a random spot and a message shows up saying "looks like your home bed was missing or obstructed"
-I went into MCedit and deleted all the beds in the world (i didn't think I had any to begin with) but to no avail. It still popped up with the same message and I kept spawning in a random location even though the command block said I had set my spawnpoint to a specific coordinate.
Help would be much appreciated on this as this is the only thing holding me back on releasing my map to you guys.
Thanks
C_is_Creative
Create an account or sign in to comment.
7
1
The pressure plate might be interfering with the spawn point. Try to set the spawn point near to but not exactly on the pressure plate.
1
Well, /spawnpoint works like crap (it never worked well) in 1.7. But I seems to work good for me in 1.8 (the snapshots), so maybe try designing your map in there.
Anyway you can also work with scoreboards:
-Make a scoreboard objective: /scoreboard objective add Deaths deathCount Deaths
-(Hooked up to a clock) /tp @a[score_Death_min=1] x y z and after that /scoreboard players set @a[x=#,y#,z#,r=5,score_Death_min=1] Death 0
the x=, y= and z= needs to be the the coords where you teleport them.
Anyway you can also work with scoreboards:
-Make a scoreboard objective: /scoreboard objective add Deaths deathCount Deaths
-(Hooked up to a clock) /tp @a[score_Death_min=1] x y z and after that /scoreboard players set @a[x=#,y#,z#,r=5,score_Death_min=1] Death 0
the x=, y= and z= needs to be the the coords where you teleport them.
1
Thanks for the ideas. I'll give them a try...
1
Or simply check for anyone that is outside the boundaries of the map (everyone outside [insert coords here]) and teleport them to spawn.
1
Just make it so when a player dies they get teleported to the spawn.
I think it's something like creating a hidden scoreboard that monitors their death and when it goes up the player gets tp'ed.
I think it's something like creating a hidden scoreboard that monitors their death and when it goes up the player gets tp'ed.
1
I have this same issue with the /spawnpoint command in a minigame map I'm working on, so I guess... Let's wait and see what kind of responses we get XD
1
Anyone got ideas?