Solved On chunk change event

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

Status
Not open for further replies.

sandor_1234

Active Member
Jan 26, 2017
165
5
0
21
There is already a "on chunk change" event: https://www.skunity.com/events#ChunkChangeEvent
But this addon hasn't been updated for a while and doesn't work, it gives me this error on starup:
http://pastebin.com/JrnYj7AG
And it says it is enabled:
295e70268274a22df3d14f75652781f8.png

But when i try to load a skript with the On chunk change event it just says:
0e42c88e0e56eccd8cf7990abb4d74e9.png

maybe @Nicofisi could update his addon or can another addon dev add this event to their addon?
I need this event for my faction skript to check if the player enters claimed land or wilderniss. If there are any other ideas to trigger something when a players enters a different chunk (Other claimed land) let met know :emoji_stuck_out_tongue: .
[doublepost=1488050235,1488050191][/doublepost]Maybe @LimeGlass can add this to skellett???
 
The chunk change in LargeSk is custom and uses the PlayerMovement event. For that reason I won't be adding it to Skellett. I don't want Skellett to lag for random reasons.

You can use SkQuery to make this though

code_language.skript:
on any movement:
    if {chunk::%player%} is not set:
        set {chunk::%player%} to chunk at player
    else if {chunk::%player%} is not chunk at player:
        #This is your chunk event
        #{chunk::%player%} is past chunk
        #chunk at player is new chunk
on quit:
    delete {chunk::%player%}
Hope this helped your solution xD
 
The chunk change in LargeSk is custom and uses the PlayerMovement event. For that reason I won't be adding it to Skellett. I don't want Skellett to lag for random reasons.

You can use SkQuery to make this though

code_language.skript:
on any movement:
    if {chunk::%player%} is not set:
        set {chunk::%player%} to chunk at player
    else if {chunk::%player%} is not chunk at player:
        #This is your chunk event
        #{chunk::%player%} is past chunk
        #chunk at player is new chunk
on quit:
    delete {chunk::%player%}
Hope this helped your solution xD
That will lag my server :emoji_frowning:
 
Status
Not open for further replies.