I already tested it, the player won't spawn on a space around the bed that contains a preassure pad, so how else do I do a one-time only(per death) trigger for when a player dies and respawns? I'm making an adventure map and I need to be able to send a reset signal to the puzzle that the player died on.
I already thought of putting the bed in a room with a one-way door to leave the room, ie leaving the respawn room triggers the signal, but the player could jump on the preassure pad several times, or back away from it before leaving and trigger it more than once, ruining the puzzle.
Thanks for the ideas Magix, probably use them down the line, I did figure out a simple solution though, player respawns, and the only way out of the respawn room is a 1x1 hole in the floor, you drop onto a preassure pad and a piston pushes you over the edge and u fall 2 more spaces down. Preassure pads only triggered once, and the player can't get back up and trigger the pad again unless he dies and respawns.
Thanks for the ideas Magix, probably use them down the line, I did figure out a simple solution though, player respawns, and the only way out of the respawn room is a 1x1 hole in the floor, you drop onto a preassure pad and a piston pushes you over the edge and u fall 2 more spaces down. Preassure pads only triggered once, and the player can't get back up and trigger the pad again unless he dies and respawns.
Player can pillar up to the plate. Failign that (no blocks available)- Player can jump up and hit/remove the pressure plate.
Another way to do it would be to have spawn in a room with an iron door. Plate just before the door opens the door. It also sends a signal to a rsnor latch, setting it 'on'. Further down a hall, a second plate resets the rsnor latch to 'off', thus triggering a falling edge trigger.
triggering that second plate does nothing unless the first plate (inside spawn room) is triggered first. Of course, the player can still destroy/pickup that second plate....
Maybe replace that second plate with a BUD switch hooked to a piece of redstone ore in the floor? Player walks on it (corridor is only 2-high, no jumping), redstone ore activates*, setting off BUD. But a player could still mine/break the redstone ore.... Hmm.
I guess it depends on how cooperative the player is. If they are very cooperative, a pressure plate will do it. If they actively try to mess up your mechanism, only hiding it completely will work (ie proximity sensors inside bedrock cubes, redstone runs surrounded by bedrock, etc).
*Just in case no one knows- "If a player left or right clicks on, or an Entity moves or falls on Redstone ore, the block will emit level 9 light for 30 seconds."- minecraft wiki This effect will trigger a BUD switch.
how about a pressure pad that opens an iron door which also is the first input and then a button after the door that closes it and is the second input that resets the thing you need. it will only work if pressed in that order. that in a 2x1 hallway seems like it would work
You can make the bed in a small room surrounded by blocks so the only place the player can respawn is outside of the room . Make the corner floor where they will respawn with redstone ore. Then simply attach a BUD to the redstone ore and it will detect when the player respawns. There are other simpler ways to do this but I didn't see this suggested yet.
Best idea: XP orbs. 5 minute clock triggers a dispenser to shoot a bottle o' enchanting. XP orbs follow the player when they respawn, coming off the pressure plates and giving you a signal. Encase in bedrock and there is no cheap way out.
XP is better than proximity detectors because PD's take time. You can set it to spawn a mob instantly by waiting till it almost spawns one then saving and never going there again, but that would only work on the first player respawn. The second they may well leave before the PD triggers.
I already thought of putting the bed in a room with a one-way door to leave the room, ie leaving the respawn room triggers the signal, but the player could jump on the preassure pad several times, or back away from it before leaving and trigger it more than once, ruining the puzzle.
Player can pillar up to the plate. Failign that (no blocks available)- Player can jump up and hit/remove the pressure plate.
Another way to do it would be to have spawn in a room with an iron door. Plate just before the door opens the door. It also sends a signal to a rsnor latch, setting it 'on'. Further down a hall, a second plate resets the rsnor latch to 'off', thus triggering a falling edge trigger.
triggering that second plate does nothing unless the first plate (inside spawn room) is triggered first. Of course, the player can still destroy/pickup that second plate....
Maybe replace that second plate with a BUD switch hooked to a piece of redstone ore in the floor? Player walks on it (corridor is only 2-high, no jumping), redstone ore activates*, setting off BUD. But a player could still mine/break the redstone ore.... Hmm.
I guess it depends on how cooperative the player is. If they are very cooperative, a pressure plate will do it. If they actively try to mess up your mechanism, only hiding it completely will work (ie proximity sensors inside bedrock cubes, redstone runs surrounded by bedrock, etc).
*Just in case no one knows- "If a player left or right clicks on, or an Entity moves or falls on Redstone ore, the block will emit level 9 light for 30 seconds."- minecraft wiki
This effect will trigger a BUD switch.
Best idea: XP orbs. 5 minute clock triggers a dispenser to shoot a bottle o' enchanting. XP orbs follow the player when they respawn, coming off the pressure plates and giving you a signal. Encase in bedrock and there is no cheap way out.
XP is better than proximity detectors because PD's take time. You can set it to spawn a mob instantly by waiting till it almost spawns one then saving and never going there again, but that would only work on the first player respawn. The second they may well leave before the PD triggers.