#want to make a moving spawnpoint using beacons
1 messages · Page 1 of 1 (latest)
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
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
set player's spawnpoint to player's location ig
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
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.
well yes but how do i save the location
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
they gave you the solution
im so confused
player's location for example
Doesn't seem like it but it should still work