Checkpoints

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

evsoulx

Member
Jan 19, 2025
2
1
3
17
Hello, I run a parkour server and am currently trying to implement a checkpoint feature with skript. My intention is to make it so when you step on any emerald block, it sets your spawn to said emerald block. Using it this way makes making new checkpoints on new courses very easy, and this feature will become very versatile. This is my current (broken) skript:

on walk on emerald block:
make player execute command "/spawnpoint %player%" with permission "minecraft.command.spawnpoint"

I have also tried to make console execute the commands as that is what I use for all of my other skripts but because of the nature of the /spawnpoint command, and the fact that the checkpoints do not have set positions, it does not work.
 

Attachments

  • 2025-01-19_18.55.32.png
    2025-01-19_18.55.32.png
    20 KB · Views: 18
  • Like
Reactions: 6gatu6kaniUFOga
Code:
on walk on emerald block:
  set player's bed to player's location
Thank you, this worked perfectly. I just couldn't find it in Skript Hub due to it being called bed and not spawnpoint or something similar.
 
Last edited: