Lore problems with new line

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

Brok3nmind

Active Member
Feb 3, 2017
66
1
8
22
Germany
darkvoid.eu
My Server is on version 1.13.2

Skript: 2.3 beta 4
SkQuery: https://forums.skunity.com/resources/unofficial-skquery-fork-1-6-1-12.68/

Here my problem:

code_language.skript:
command /shop:
    trigger:
        open chest with 3 rows named "&cTest" to player
        format slot 0 of player with spawner named "&fSpawner" with lore "Line 1 %nl% Line 2 || Line 3" to close then run [execute player command "/nothing"]

The newline is not working but WHY?
 
Last edited:
My Server is on version 1.13.2

Skript: 2.3 beta 4
SkQuery: https://forums.skunity.com/resources/unofficial-skquery-fork-1-6-1-12.68/

Here my problem:

code_language.skript:
command /shop:
    trigger:
        open chest with 3 rows named "&cTest" to player
        format slot 0 of player with spawner named "&fSpawner" with lore with lore "Line 1 %nl% Line 2 || Line 3" to close then run [execute player command "/nothing"]

The newline is not working but WHY?
Well, ugh, you wrote "with lore with lore"
 
Ohh sorry, but it still wont work
[doublepost=1544911575,1544911486][/doublepost]
and i dont become a error
dont use %nl% in lore, try with..
|| 1 line || 2 line || 3 line || 4 line.
example of your code.
format slot 0 of player with spawner named "&fSpawner" with lore "|| Line 1 || Line 2 || Line 3" to close then run [execute player command "/nothing"]
 
dont use %nl% in lore, try with..
|| 1 line || 2 line || 3 line || 4 line.
example of your code.
format slot 0 of player with spawner named "&fSpawner" with lore "|| Line 1 || Line 2 || Line 3" to close then run [execute player command "/nothing"]
That dont makes new lines, there will display "|| Line 1 || Line 2 || Line 3"
 
Here 10 errors

code_language.skript:
on right click on villager:
    if name of event-entity is "&6Dealer":
        open chest with 3 rows named "&cStraßenDealer" to player
        format slot 11 of player with spawner named "&aKaufen" to close then run [kaufenseite1(player)]
        format slot 13 of player with cauldron named "&bSonstiges" to close then run [kaufenseite1(player)]
        format slot 15 of player with flower pot named "&cVerkaufen" to close then run [verkaufenseite1(player)]
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Kaufen Seite1":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Kaufen Seite2":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Verkaufen Seite1":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Verkaufen Seite1":
        cancel event

function kaufenseite1(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Kaufen Seite1" to {_p}
    wait 1 tick
    format slot 10 of {_p} with spawner named "&fSpawner" with lore "" to close then run [execute {_p} command "/buy"]
    format slot 11 of {_p} with zombie spawn egg named "&fZombie" to close then run [execute {_p} command "/buy"]
    format slot 11 of {_p} with skeleton spawn egg named "&fSkelett" to close then run [execute {_p} command "/buy"]
    format slot 12 of {_p} with stray spawn egg named "&fEiswanderer" to close then run [execute {_p} command "/buy"]
    format slot 13 of {_p} with wither skeleton spawn egg named "&fWitherskelett" to close then run [execute {_p} command "/buy"]
    format slot 14 of {_p} with creeper spawn egg named "&fCreeper" to close then run [execute {_p} command "/buy"]
    format slot 15 of {_p} with spider spawn egg named "&fSpinne" to close then run [execute {_p} command "/buy"]
    format slot 16 of {_p} with cave spider spawn egg named "&fHöhlenspinne" to close then run [execute {_p} command "/buy"]
    format slot 19 of {_p} with husk spawn egg named "&fWüstenzombie" to close then run [execute {_p} command "/buy"]
    format slot 20 of {_p} with drowned spawn egg named "&fErtunkener" to close then run [execute {_p} command "/buy"]
    format slot 21 of {_p} with vindicator spawn egg named "&fDiener" to close then run [execute {_p} command "/buy"]
    format slot 22 of {_p} with slime spawn egg named "&fSchleim" to close then run [execute {_p} command "/buy"]
    format slot 23 of {_p} with witch spawn egg named "&fHexe" to close then run [execute {_p} command "/buy"]
    format slot 24 of {_p} with guardian spawn egg named "&fWächter" to close then run [execute {_p} command "/buy"]
    format slot 25 of {_p} with mooshroom spawn egg named "&fPlizkuh" to close then run [execute {_p} command "/buy"]
    format slot 28 of {_p} with cow spawn egg named "&fKuh" to close then run [execute {_p} command "/buy"]
    format slot 29 of {_p} with pig spawn egg named "&fSchwein" to close then run [execute {_p} command "/buy"]
    format slot 30 of {_p} with chicken spawn egg named "&fHuhn" to close then run [execute {_p} command "/buy"]
    format slot 31 of {_p} with sheep spawn egg named "&fSchaf" to close then run [execute {_p} command "/buy"]
    format slot 32 of {_p} with llama spawn egg named "&fLama" to close then run [execute {_p} command "/buy"]
    format slot 33 of {_p} with wolf spawn egg named "&fWolf" to close then run [execute {_p} command "/buy"]
    format slot 34 of {_p} with ocelot spawn egg named "&fOzelot" to close then run [execute {_p} command "/buy"]
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(none)]
    format slot 53 of {_p} with red stained glass pane named "&6Nächste Seite" to close then run [kaufenseite2(player)]
        
function kaufenseite2(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Kaufen Seite2" to {_p}
    wait 1 tick
    format slot 10 of {_p} with horse spawn egg named "&fPferd" to close then run [execute {_p} command "/buy"]
    format slot 11 of {_p} with donkey spawn egg named "&fEsel" to close then run [execute {_p} command "/buy"]
    format slot 12 of {_p} with skeleton horse spawn egg named "&fSkelettpferd" to close then run [execute {_p} command "/buy"]
    format slot 13 of {_p} with zombie horse spawn egg named "&fZombiepferd" to close then run [execute {_p} command "/buy"]
    format slot 14 of {_p} with parrot spawn egg named "&fPapagei" to close then run [execute {_p} command "/buy"]
    format slot 15 of {_p} with rabbit spawn egg named "&fHase" to close then run [execute {_p} command "/buy"]
    format slot 16 of {_p} with polar bear spawn egg named "&fEisbär" to close then run [execute {_p} command "/buy"]
    format slot 19 of {_p} with squid spawn egg named "&fTintenfisch" to close then run [execute {_p} command "/buy"]
    format slot 20 of {_p} with dolphin spawn egg named "&fDelfin" to close then run [execute {_p} command "/buy"]
    format slot 21 of {_p} with tropical fish spawn egg named "&fTropenfisch" to close then run [execute {_p} command "/buy"]
    format slot 22 of {_p} with salmon spawn egg named "&fLachs" to close then run [execute {_p} command "/buy"]
    format slot 23 of {_p} with turtle spawn egg named "&fSchildkröte" to close then run [execute {_p} command "/buy"]
    format slot 45 of {_p} with red stained glass pane named "&6Vorherige Seite" to close then run [kaufenseite1(player)]
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(player)]
    
function verkaufenseite1(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Verkaufen Seite1" to {_p}
    wait 1 tick
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(player)]
    format slot 53 of {_p} with red stained glass pane named "&6Nächste Seite" to close then run [verkaufenseite2(player)]
        
function verkaufenseite2(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Verkaufen Seite2" to {_p}
    wait 1 tick
    format slot 45 of {_p} with red stained glass pane named "&6Vorherige Seite" to close then run [verkaufenseite1(player)]
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(player)]

function shop(p: player):
    wait 3 tick
    open chest with 3 rows named "&cStraßenDealer" to {_p}
    format slot 12 of {_p} with spawner named "&aKaufen" to close then run [kaufenseite1()]
    format slot 14 of {_p} with flower pot named "&cVerkaufen" to close then run [verkaufenseite2(player)]
 
show error's in console.
Here 10 errors

code_language.skript:
on right click on villager:
    if name of event-entity is "&6Dealer":
        open chest with 3 rows named "&cStraßenDealer" to player
        format slot 11 of player with spawner named "&aKaufen" to close then run [kaufenseite1(player)]
        format slot 13 of player with cauldron named "&bSonstiges" to close then run [kaufenseite1(player)]
        format slot 15 of player with flower pot named "&cVerkaufen" to close then run [verkaufenseite1(player)]
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Kaufen Seite1":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Kaufen Seite2":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Verkaufen Seite1":
        cancel event
on inventory click:
    inventory name of current inventory of player is "&cStraßenDealer &8- &8Verkaufen Seite1":
        cancel event

function kaufenseite1(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Kaufen Seite1" to {_p}
    wait 1 tick
    format slot 10 of {_p} with spawner named "&fSpawner" with lore "" to close then run [execute {_p} command "/buy"]
    format slot 11 of {_p} with zombie spawn egg named "&fZombie" to close then run [execute {_p} command "/buy"]
    format slot 11 of {_p} with skeleton spawn egg named "&fSkelett" to close then run [execute {_p} command "/buy"]
    format slot 12 of {_p} with stray spawn egg named "&fEiswanderer" to close then run [execute {_p} command "/buy"]
    format slot 13 of {_p} with wither skeleton spawn egg named "&fWitherskelett" to close then run [execute {_p} command "/buy"]
    format slot 14 of {_p} with creeper spawn egg named "&fCreeper" to close then run [execute {_p} command "/buy"]
    format slot 15 of {_p} with spider spawn egg named "&fSpinne" to close then run [execute {_p} command "/buy"]
    format slot 16 of {_p} with cave spider spawn egg named "&fHöhlenspinne" to close then run [execute {_p} command "/buy"]
    format slot 19 of {_p} with husk spawn egg named "&fWüstenzombie" to close then run [execute {_p} command "/buy"]
    format slot 20 of {_p} with drowned spawn egg named "&fErtunkener" to close then run [execute {_p} command "/buy"]
    format slot 21 of {_p} with vindicator spawn egg named "&fDiener" to close then run [execute {_p} command "/buy"]
    format slot 22 of {_p} with slime spawn egg named "&fSchleim" to close then run [execute {_p} command "/buy"]
    format slot 23 of {_p} with witch spawn egg named "&fHexe" to close then run [execute {_p} command "/buy"]
    format slot 24 of {_p} with guardian spawn egg named "&fWächter" to close then run [execute {_p} command "/buy"]
    format slot 25 of {_p} with mooshroom spawn egg named "&fPlizkuh" to close then run [execute {_p} command "/buy"]
    format slot 28 of {_p} with cow spawn egg named "&fKuh" to close then run [execute {_p} command "/buy"]
    format slot 29 of {_p} with pig spawn egg named "&fSchwein" to close then run [execute {_p} command "/buy"]
    format slot 30 of {_p} with chicken spawn egg named "&fHuhn" to close then run [execute {_p} command "/buy"]
    format slot 31 of {_p} with sheep spawn egg named "&fSchaf" to close then run [execute {_p} command "/buy"]
    format slot 32 of {_p} with llama spawn egg named "&fLama" to close then run [execute {_p} command "/buy"]
    format slot 33 of {_p} with wolf spawn egg named "&fWolf" to close then run [execute {_p} command "/buy"]
    format slot 34 of {_p} with ocelot spawn egg named "&fOzelot" to close then run [execute {_p} command "/buy"]
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(none)]
    format slot 53 of {_p} with red stained glass pane named "&6Nächste Seite" to close then run [kaufenseite2(player)]
       
function kaufenseite2(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Kaufen Seite2" to {_p}
    wait 1 tick
    format slot 10 of {_p} with horse spawn egg named "&fPferd" to close then run [execute {_p} command "/buy"]
    format slot 11 of {_p} with donkey spawn egg named "&fEsel" to close then run [execute {_p} command "/buy"]
    format slot 12 of {_p} with skeleton horse spawn egg named "&fSkelettpferd" to close then run [execute {_p} command "/buy"]
    format slot 13 of {_p} with zombie horse spawn egg named "&fZombiepferd" to close then run [execute {_p} command "/buy"]
    format slot 14 of {_p} with parrot spawn egg named "&fPapagei" to close then run [execute {_p} command "/buy"]
    format slot 15 of {_p} with rabbit spawn egg named "&fHase" to close then run [execute {_p} command "/buy"]
    format slot 16 of {_p} with polar bear spawn egg named "&fEisbär" to close then run [execute {_p} command "/buy"]
    format slot 19 of {_p} with squid spawn egg named "&fTintenfisch" to close then run [execute {_p} command "/buy"]
    format slot 20 of {_p} with dolphin spawn egg named "&fDelfin" to close then run [execute {_p} command "/buy"]
    format slot 21 of {_p} with tropical fish spawn egg named "&fTropenfisch" to close then run [execute {_p} command "/buy"]
    format slot 22 of {_p} with salmon spawn egg named "&fLachs" to close then run [execute {_p} command "/buy"]
    format slot 23 of {_p} with turtle spawn egg named "&fSchildkröte" to close then run [execute {_p} command "/buy"]
    format slot 45 of {_p} with red stained glass pane named "&6Vorherige Seite" to close then run [kaufenseite1(player)]
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(player)]
   
function verkaufenseite1(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Verkaufen Seite1" to {_p}
    wait 1 tick
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(player)]
    format slot 53 of {_p} with red stained glass pane named "&6Nächste Seite" to close then run [verkaufenseite2(player)]
       
function verkaufenseite2(p: player):
    wait 3 tick
    open chest with 6 rows named "&cStraßenDealer &8- &8Verkaufen Seite2" to {_p}
    wait 1 tick
    format slot 45 of {_p} with red stained glass pane named "&6Vorherige Seite" to close then run [verkaufenseite1(player)]
    format slot 49 of {_p} with arrow named "&cZurück" to close then run [shop(player)]

function shop(p: player):
    wait 3 tick
    open chest with 3 rows named "&cStraßenDealer" to {_p}
    format slot 12 of {_p} with spawner named "&aKaufen" to close then run [kaufenseite1()]
    format slot 14 of {_p} with flower pot named "&cVerkaufen" to close then run [verkaufenseite2(player)]
[doublepost=1544919043,1544919000][/doublepost]i don't has a good english because i speak spanish :v
show error's in console.
 
First of all please explain what is not working with the functions. 2. update your Skript and 3. don’t use format slot. Just use the „on inventory click“ event instead of making your Skript spam the console with useless commands

edit: just saw you already have the newest version, sorry. Nevertheless don’t use skquery slot formatting
 
Then try this
code_language.skript:
command /test:
    permission: command.test
    trigger:
        give player 1 emerald named "" with lore "HEY||LOL"

https://i.gyazo.com/3ca77c9da7468117a9423f3c6ac90e7a.png
[doublepost=1545131222,1545131067][/doublepost]
code_language.skript:
command /test:
    permission: command.test
    trigger:
        open chest with 3 rows to player
        format slot 0 of player with emerald named "" with lore "HEY||LOL" to be unstealable
[doublepost=1545131372][/doublepost]https://i.gyazo.com/e93bfbed6e26ae419e8397b3b871972f.png
(schreen)
 
Then try this
code_language.skript:
command /test:
    permission: command.test
    trigger:
        give player 1 emerald named "" with lore "HEY||LOL"

https://i.gyazo.com/3ca77c9da7468117a9423f3c6ac90e7a.png
[doublepost=1545131222,1545131067][/doublepost]
code_language.skript:
command /test:
    permission: command.test
    trigger:
        open chest with 3 rows to player
        format slot 0 of player with emerald named "" with lore "HEY||LOL" to be unstealable
[doublepost=1545131372][/doublepost]https://i.gyazo.com/e93bfbed6e26ae419e8397b3b871972f.png
(schreen)
https://gyazo.com/cc2eb26f1255211645aed638abede636
 
Try using set slot 0 of player's current inventory to emerald named "" with lore "Test ||Test"

instead of format slot
 
You have to use with lore "" and "".

Just edit your skript in notepad and replace every || with " and "
 
Status
Not open for further replies.