1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need an easy Script!

Discussion in 'Requests' started by RowingLev, Jan 29, 2020.

  1. RowingLev

    RowingLev Member

    Joined:
    Jan 29, 2020
    Messages:
    2
    Likes Received:
    0
    Category: Block Event

    Suggested name: spawnpoint.sk

    Spigot/Skript Version: latest Skript

    What I want: Set Spawnpoint on Block like Checkpoint

    Ideas for commands: dont need it

    Ideas for perm: use.checkpoint

    Time: asap

    Greetings
     
    #1 RowingLev, Jan 29, 2020
    Last edited: Jan 29, 2020
  2. JaydenBee

    JaydenBee Member

    Joined:
    Nov 11, 2019
    Messages:
    36
    Likes Received:
    2
    Code (Text):
    1. on right click:
    2.    player has permission use.checkpoint
    3.    player's tool is cake named "spawn"
    4.    set world spawn to block above targeted block's location
     
  3. RowingLev

    RowingLev Member

    Joined:
    Jan 29, 2020
    Messages:
    2
    Likes Received:
    0
    Im not sure, but what mean "player's tool is cake named "spawn"?
     
  4. Zabrid

    Supporter

    Joined:
    Mar 2, 2019
    Messages:
    51
    Likes Received:
    1
    It's just allowing you to make it a specific item they have to have, if you don't want it just remove that line "player's tool" refers to the item the player is holding
     
    #4 Zabrid, Feb 3, 2020
    Last edited: Feb 3, 2020
  5. JaydenBee

    JaydenBee Member

    Joined:
    Nov 11, 2019
    Messages:
    36
    Likes Received:
    2
    basically means check if the player's tool is itemstack cake with customName "spawn"

    If he removes it then every time someone right clicks and they have that permission then they'll set the spawnpoint.
    Not recommended.

    Alternate code @RowingLev
    Code (Text):
    1. on right click with cake:
    2.    player has permission "setspawn"
    3.    player's tool is named "setspawn"
    4.    set world spawn to player's location
    Simply:
    when a player right clicks with a cake, check if they have permission "setspawn". If they do, check if their tool's name (which is a cake) is called "setspawn". If it is, set the spawnpoint to the player's location
     

Share This Page

Loading...