player standing on block

  • 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!

AdenR84

Member
Sep 4, 2023
47
0
6
23
I need help i am trying to make a skript for setting your respawn point on glowstone when you crouch
and i did:
on sneak toggle:
if player is standing on glowstone:
broadcast "Hi" (for test)
ik how to do all the setspawn and stuff i just need help with if block below player is Calcite:
can i have some help
 
I need help i am trying to make a skript for setting your respawn point on glowstone when you crouch
and i did:
on sneak toggle:
if player is standing on glowstone:
broadcast "Hi" (for test)
ik how to do all the setspawn and stuff i just need help with if block below player is Calcite:
can i have some help
Code:
on sneak toggle:
   if block below player is glowstone:
      set {_s} to player's location
      send "&c[Placeholder] &aYour spawn was set to &2%{_s}%&a!" to player
      # Rest of code for setting Spawn here
An example code I wrote pretty quickly is above. The variable "s" is the player's location upon sneaking. It's up to you to set the player's spawn beyond what I wrote.
 
yes it works great but can you make it so when you do it once in the same location it sends and error msg and cancels event