Solved how to make {...} amount of paper in gui

  • 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 community!

    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.

teemuz

New Member
Apr 2, 2022
6
2
3
How would I make the gui have the number that {chosen.bj.%player%.1} as the amount of paper

Error Message:
Code:
[14:34:19 ERROR]: Line 186: (test.sk)
   piece of paper named "&f&l%{chosen.bj.%the player%.1}%" is not an nbt compound
   Line: format slot 2 of player with {chosen.bj.%player%.1} amount of paper named "&f&l%{chosen.bj.%player%.1}%" to run " "

Code:
Code:
command /test:               
    open chest with 3 rows named "&fTest" to player
    format slot 2 of player with {chosen.bj.%player%.1} amount of paper named "&f&l%{chosen.bj.%player%.1}%" to run " "
 
How would I make the gui have the number that {chosen.bj.%player%.1} as the amount of paper

Error Message:
Code:
[14:34:19 ERROR]: Line 186: (test.sk)
   piece of paper named "&f&l%{chosen.bj.%the player%.1}%" is not an nbt compound
   Line: format slot 2 of player with {chosen.bj.%player%.1} amount of paper named "&f&l%{chosen.bj.%player%.1}%" to run " "

Code:
Code:
command /test:              
    open chest with 3 rows named "&fTest" to player
    format slot 2 of player with {chosen.bj.%player%.1} amount of paper named "&f&l%{chosen.bj.%player%.1}%" to run " "
Code:
#This is the way I know how to make a gui this is how I can help sorry. But i test it and it works
command /vanillaGUI:
    description: The laziest best way of doing something.
    trigger:
        open chest inventory with 1 rows named "&cLazy gurl." to player
        set slot 0 of player's current inventory to 5 paper named "&6Just paper"
 
on inventory click:
    #check if the clicked inventory is the one we just created
    if name of event-inventory is "&cLazy gurl.":
        #cancel the clicking. This makes the Item unstealable
        cancel event
 
How do i make a variable decide the amount of paper in the gui? Idk how nbts are made
 
Status
Not open for further replies.