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.

Solved Indentation error

Discussion in 'Skript' started by Xgod2205, Apr 26, 2021.

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

    Xgod2205 Member

    Joined:
    Feb 25, 2021
    Messages:
    17
    Likes Received:
    0
    Code (Text):
    1. on break:
    2.     if event-block is wheat:
    3.         add 1 to {backpack.%player%::wheat}
    4.         set event-block to air
    5.         if {pet.%player%} = "rabbit":
    6.             wait 2 seconds
    7.             set event-block to wheat
    8.         else:
    9.             wait 6 seconds
    10.             set event-block to wheat
    11.  
    12. command /backpack:
    13.     trigger:
    14.         open a chest with 3 rows named "&aBackPack" to player
    15.         set {_s} to 0
    16.         loop 9 times:
    17.             if {_s} = "4":
    18.                 format slot 4 of player with chest named "&3Sell all" to be unstealable
    19.                 add 1 to {_s}
    20.             else:
    21.                 format slot {_s} of player with grey stained glass named " " to be unstealable
    22.                 add 1 to {_s}
    23.         format slot 9 of player with grey stained glass named " " to be unstealable
    24.         format slot 17 of player with grey stained glass named " " to be unstealable
    25.        
    upload_2021-4-25_19-6-23.png
    --- Double Post Merged, Apr 26, 2021, Original Post Date: Apr 26, 2021 ---
    ok ima use tuske gui
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page

Loading...