Making a manhunt skript, how do I make the compass work in the nether?

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

    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.

Lectus

Member
Oct 7, 2021
2
0
1
So I'm making a manhunt skript and I'm having a problem where I don't know how to get the compass to work in the nether, I've heard that smt about nbts work but I don't know how to use them in any way shape or form.

My first idea was to spawn a lodestone 100 blocks above the runner, then track the lodestone, problem is, idk how to track the lodestone, because when I do it, I'm pretty sure it tracks the block location itself, not targetting onto the lodestone.

Code:

Code:
on rightclick with compass:
    if name of player's held item contains "&6&lTRACKER":
        if {nether} is true:
            if player's world is "world":
                set player's compass target to location of {portal.location}
                send "&aTracking Portal!" to player
            else:
                set block 100 blocks above {runner} to lodestone
                set player's compass target to block 100 blocks above {runner}
                send "&aTracking %{runner}%&a!" to player
        else:
            if player's world is "world_nether":
                send "&aTracking Portal&a!" to player
            else:
                set player's compass target to location of {runner}
                send "&aTracking %{runner}%&a!" to player
 
Status
Not open for further replies.