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

sign system -the person fix the problem i will give he premium account Minecraft

Discussion in 'Skript' started by hakeem_j, Sep 13, 2017.

Thread Status:
Not open for further replies.
  1. hakeem_j

    hakeem_j Member

    Joined:
    Aug 17, 2017
    Messages:
    39
    Likes Received:
    1
    Skript Version: 2.2 dev31b
    Skript Author: Bensku
    Minecraft Version: 1.12

    ---
    Full Code:

    Code (Skript):
    1. function SignSearch(lines: strings, player: player):
    2.    set {_loc} to location of {_player}
    3.    set {_block} to type of block at {_loc}
    4.    set block at {_loc} to sign
    5.    loop {_lines::*}:
    6.       (loop-index parsed as int) < 5
    7.       set line (loop-index parsed as int) of block at {_loc} to "%colored loop-value%"
    8.    wait a tick
    9.    set {_packet} to new play_server_open_sign_editor packet
    10.    set location pinfo 0 of {_packet} to {_loc}
    11.    send {_player} packet {_packet}
    12.    set block at {_loc} to {_block}
    13.  
    14. command /signsearch <player>:
    15.     trigger:
    16.         set {usingsign.%player%} to true
    17.         set {_lines::*} to "", "/\/\/\/\", "Enter your" and "search!"
    18.         SignSearch({_lines::*},arg)
    19.  
    20. on packet event play_client_update_sign:
    21.     if {usingsign.%player%} is true:
    22.         set {_lines::*} to string array pinfo 0 of event-packet
    23.         message "You searched for: %{_lines::1}%"
    24.         set {usingsign.%player%} to false
    25.         stop
    Errors on Reload:

    Code (Skript):
    1. a block can't be set to 'sign' because the latter is not an item type (r.sk, line 4: set block at {_loc} to sign')
    Console Errors:

    Code (Skript):
    1. a block can't be set to 'sign' because the latter is not an item type (r.sk, line 4: set block at {_loc} to sign')


    Addons using :
    MundoSK : 1.7.4
    ProtocolLib : last version

    --------------------------------------------------------------------
    Have you tried searching the docs? No
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it? yes
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I'm thinking it might be since signs have different meta data's such as wall_sign, and for each facing too.

    You can read more about the ID's here: https://minecraft.gamepedia.com/Sign
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    From memory, you have to use "sign block" or "wall sign".

    Check the aliases.sk file and search for "sign" to find the exact value.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    thanks the error removed but when i make the command {its open a sign} but there is not text
     
Thread Status:
Not open for further replies.

Share This Page

Loading...