#want to make a moving spawnpoint using beacons

1 messages · Page 1 of 1 (latest)

pastel tendon
#

when a player crouches on a beacon i want their spawn to be moved on top of it...
How would i go about this.

modern magnet
#

there's the on sneak toggle: event in skript

#

but this is called before the player actually starts sneaking so you'd have to wait 1 tick after that

#

then you should check if player is sneaking to only do it when they start sneaking and not when they stop sneaking

#

and then you set player's spawnpoint to whatever

#

if you ever find yourself not knowing syntax for something it's always a good idea to take a look at the docs first, if you still can't find something, feel free to ask

pastel tendon
#

no like

#

i know the first 3 lines

#

dont worry

#

its just the ''set players spawnpoint to whatever

#

oh

#

do i just put beacon there

#

okay

#

no that wont work

#

will it?

#

ima try

elder pelican
#

set player's spawnpoint to player's location ig

golden garnet
#

You also have to set the pitch and yaw to 0 again, or just set the spawn point to the location of the block above the beacon which will reset the pitch and yaw

pastel tendon
#

umm

#

i got a bit confused

#

can yaal explain again

dim venture
#

You just need to give the last line a location. The pitch and yaw they are talking about is where the player is looking. Usually you don't want to save that.

pastel tendon
#

well yes but how do i save the location

dim venture
#

well by setting a variable to said location

#

or wait nvm you just want the spawnpoint so yeah just set the spawnpoint to that location

dim venture
pastel tendon
#

wait really

#

its whatever?

dim venture
#

nooo ofc not

#

that's where you use the location

pastel tendon
#

im so confused

dim venture
#

player's location for example

pastel tendon
#

uhh

#

also

#

skjade

#

is 1.19

dim venture
#

Doesn't seem like it but it should still work