Banner for SkQuery GUI

Discussion in 'Skript' started by TheGamingChris, Jun 4, 2017.

Thread Status:
Not open for further replies.
  1. I'm not really sure, but i think you will need SkStuff to do that.
    You can add or set nbt tag to item

    Maybe this Untested example can help you
    Code (Text):
    command /banner:
        trigger:
            set {_item} to white banner named "&aBanner" with nbt "{BlockEntityTag:{Patterns:[{Color:1,Pattern:"vhr"},{Color:1,Pattern:"bo"},{Color:1,Pattern:"tt"},{Color:1,Pattern:"bt"}]}}"
            open "CHEST" with 1 rows named "a" to player
            format slot 0 of player with {_item} to be unstealable
            stop
     
  2. Great Or
    Get Banner With command and saved item to variable
    Example
    Code (Text):
    command /setitem [<text>]:
        trigger:
            arg 1 is set:
                set {item.%arg-1%} to tool of player
               
    command /gui:
        trigger:
            open chest with 1 rows named "a" to player
            format slot 0 of player with {item.banner} named "x" with lore "y" to be unstealable
     
     
    • Useful Useful x 1
  3. @DjTurky thank you so much! It worked perfectly!
     
Thread Status:
Not open for further replies.