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

Custom Sign

Discussion in 'Skript' started by senge1337, Nov 28, 2019.

  1. senge1337

    senge1337 Member

    Joined:
    Sep 21, 2019
    Messages:
    10
    Likes Received:
    0
    Hi,
    how could I do something like that in Skript?
    My point is, that when you place a sign named "&c&lStaff Sign" it doesn't open the "Edit Sign Message" Menu, it just places the sign and sets the lines of it.

    (this code is just an example, it doesn't work)
    Code (Text):
    1. set {_staffsign} to oak sign named "&c&lStaff Sign"
    2. set line 1 of {_staffsign} to "&6&lhello"
    3. set line 2 of {_staffsign} to "&chi"
    4. set line 3 of {_staffsign} to "&chi"
    5. set line 4 of {_staffsign} to "&3&l&nLast Line!"
    6. give 1 of {_staffsign} to player
    Also, would I able to do it without a variable?
    Thanks for help
    senge1337
     
  2. Goose

    Goose Active Member

    Joined:
    Nov 23, 2019
    Messages:
    33
    Likes Received:
    1
    I'm 90% sure you can't have premade lines with sign NBT data. I tested this on my server and when I placed a sign with NBT data it came with a blank sign, so I don't think you can make one of these.
     
  3. senge1337

    senge1337 Member

    Joined:
    Sep 21, 2019
    Messages:
    10
    Likes Received:
    0
    I had it using a Command Block Command. Google "minecraft sign generator".
     
  4. Goose

    Goose Active Member

    Joined:
    Nov 23, 2019
    Messages:
    33
    Likes Received:
    1
    What you could do is when as staff member runs that command, you could have the console execute the command to give that sign to the player that ran the command.

    EXAMPLE:


    Code (Text):
    1. command /staffsign
    2.     trigger:
    3.         execute console command "give %player% minecraft:oak_sign{BlockEntityTag:{Text1:'{"text":"hello","bold":true,"color":"yellow"}',Text2:'{"text":"hi","bold":true,"color":"red"}',Text3:'{"text":"hi","bold":true,"color":"red"}',Text4:'{"text":"Last Line!","bold":true,"color":"blue"}'},display:{Name:'{"text":"Staff Sign","bold":true,"color":"red"}'}}"
     
  5. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    304
    Likes Received:
    20
    Code (Skript):
    1. on place of sign: #this event
     
  6. senge1337

    senge1337 Member

    Joined:
    Sep 21, 2019
    Messages:
    10
    Likes Received:
    0
Loading...