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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Getting the center of a chunk?

Discussion in 'Skript' started by BryHunter, Jan 14, 2020.

Thread Status:
Not open for further replies.
  1. BryHunter

    BryHunter Member

    Joined:
    Jan 10, 2018
    Messages:
    32
    Likes Received:
    1
    Is there a way in which I can get the center of a chunk that I am in?
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,173
    Likes Received:
    199
    you can do something like
    Code (Skript):
    1. set {_x} to (x coord of chunk of player * 16) + 1
    2. set {_z} to (z coord of chunk of player * 16) + 1
    3. set {_center} to location({_x}, 128, {_z}, world "world")
    4.  
     
Thread Status:
Not open for further replies.
Loading...