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.

Need help for compass navigator

Discussion in 'Skript' started by der_crafter2000, Aug 5, 2019.

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

    Joined:
    Aug 5, 2019
    Messages:
    2
    Likes Received:
    0
    Skript Version : Couldn't find it (but recent)
    Skript Author: Bensku
    Minecraft Version: 1.14.3

    I'm trying to create a skript, which open a compass direction menu when you rightclick a compass:

    Code (Text):
    1. command /nav [<text>]:
    2.   description: Pointer une boussole sur un endroit précis
    3.   permission: nav
    4.   aliases: navigation
    5.   trigger:
    6.     if arg-1 is not set:
    7.       if player's world is "buildworld":
    8.         open chest with 1 rows named "&e&lNavigation" to player
    9.         format slot 0 of player whit beacon named "&3Spawn" to close then run "nav spawn"
    10.     if arg-1 is "spawn":
    11.       if player's world is "buildworld":
    12.         set player's compass target to -241, 68, 68
    13.         set action bar of player to "&eBoussole dirigée vers le spawn"
    14.  
    15. on right click holding a compass:
    16.   if player has permission "nav":
    17.     make player execute command "/nav"
    My problem is that Skript keeps telling me this when i load the code: "Can't understand this condition/effect: format slot 0 of player whit beacon named "&3Spawn" to close (navigation.sk, line 9: format slot 0 of player whit beacon named "&3Spawn" to close#then run "nav spawn"')"
     
  2. KingAdmin_YT

    KingAdmin_YT Member

    Joined:
    May 16, 2018
    Messages:
    28
    Likes Received:
    0
    Code (Text):
    1. whit
    What is it?

    Replace to "with" in line 9.
     
  3. der_crafter2000

    Joined:
    Aug 5, 2019
    Messages:
    2
    Likes Received:
    0
    Thanks, it did fix the issue, but i noticed another issue: "the compass target of the player can't be set to (-241, 68 and 68) because the latter is not a location (navigation.sk, line 12: set player's compass target to -241, 68, 68')"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...