Need help for compass navigator

  • 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.
Aug 5, 2019
2
0
0
25
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:
command /nav [<text>]:
  description: Pointer une boussole sur un endroit précis
  permission: nav
  aliases: navigation
  trigger:
    if arg-1 is not set:
      if player's world is "buildworld":
        open chest with 1 rows named "&e&lNavigation" to player
        format slot 0 of player whit beacon named "&3Spawn" to close then run "nav spawn"
    if arg-1 is "spawn":
      if player's world is "buildworld":
        set player's compass target to -241, 68, 68
        set action bar of player to "&eBoussole dirigée vers le spawn"

on right click holding a compass:
  if player has permission "nav":
    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"')"
 
Code:
whit
What is it?

Replace to "with" in line 9.
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')"
 
Status
Not open for further replies.