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.

Holgrams?

Discussion in 'Skript' started by JustADev, Sep 13, 2017.

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

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    Why can't I set this variable to a holo?

    code:
    Code (Skript):
    1.         set block at {_loc} to a ender chest
    2.         create hologram "&2&lEmerald Generator; &7Level 1" at location 1 above {_Loc}
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    You told some one to use format, Now i told you too to use format. Skript version? Errors?
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    LOL Ok,

    Skript version: Skript v2.2 old parse
    Server version: 1.8
    Server: Spigot

    Addons:
    skQuery
    skRayfall
    skRambled
    skDragon
    Umbaska
    --- Double Post Merged, Sep 13, 2017, Original Post Date: Sep 13, 2017 ---
    [06:45:50 ERROR]: Can't understand this condition/effect: create hologram "&2&lEmerald Generator; &7Level 1" at location 1 block above {_Loc} (ore.sk, line 13: create hologram "&2&lEmerald Generator; &7Level 1" at location 1 block above {_Loc}')

    here is the rest of the code:
    Code (Skript):
    1. function middlecheck(loc: location) :: boolean:
    2.     set {_found} to 0
    3.     loop all blocks in radius 1 around {_loc}:
    4.         loop-block is emerald ore
    5.         if y-coordinate of loop-block = y-coordinate of {_loc}:
    6.             add 1 to {_found}
    7.     if {_found} = 5:
    8.         loop all blocks in radius 1 around {_loc}:
    9.             loop-block is emerald ore
    10.             if y-coordinate of loop-block = y-coordinate of {_loc}:
    11.                 set loop-block to air
    12.         set block at {_loc} to a ender chest
    13.         create hologram "&2&lEmerald Generator; &7Level 1"
    14.         return true
    15.     else:
    16.         return false
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    try
    create hologram "..." at block 1 above {_loc}
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    [06:50:48 ERROR]: Can't understand this condition/effect: create hologram "&2&lEmerald Generator; &7Level 1" at block 1 above {_loc} (ore.sk, line 13: create hologram "&2&lEmerald Generator; &7Level 1" at block 1 above {_loc}')

    Maybe because it is in a function?
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    You probably didn't type the location correctly. But make the other location its own variable.
    Code (Skript):
    1. set {_location} to location 1 block above {_loc}
    Then add the variable after create hologram... at...
     
Thread Status:
Not open for further replies.

Share This Page

Loading...