Holgrams?

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

JustADev

Well-Known Member
Apr 8, 2017
379
9
18
22
Why can't I set this variable to a holo?

code:
code_language.skript:
        set block at {_loc} to a ender chest
        create hologram "&2&lEmerald Generator; &7Level 1" at location 1 above {_Loc}
 
LOL Ok,

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

Addons:
skQuery
skRayfall
skRambled
skDragon
Umbaska
[doublepost=1505299693,1505299649][/doublepost][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_language.skript:
function middlecheck(loc: location) :: boolean:
    set {_found} to 0
    loop all blocks in radius 1 around {_loc}:
        loop-block is emerald ore
        if y-coordinate of loop-block = y-coordinate of {_loc}:
            add 1 to {_found}
    if {_found} = 5:
        loop all blocks in radius 1 around {_loc}:
            loop-block is emerald ore
            if y-coordinate of loop-block = y-coordinate of {_loc}:
                set loop-block to air
        set block at {_loc} to a ender chest
        create hologram "&2&lEmerald Generator; &7Level 1"
        return true
    else:
        return false
 
[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?
 
You probably didn't type the location correctly. But make the other location its own variable.
code_language.skript:
set {_location} to location 1 block above {_loc}
Then add the variable after create hologram... at...
 
Status
Not open for further replies.