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.

Chests don't fill up

Discussion in 'Skript' started by giovigg, Jul 13, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. giovigg

    giovigg Member

    Joined:
    Nov 17, 2017
    Messages:
    5
    Likes Received:
    0
    Code (Text):
    1. command /chester:
    2.     permission: OP
    3.     trigger:
    4.         loop blocks within {skywars::pos::1} to {skywars::pos::2}:
    5.             if loop-block is trapped chest:
    6.                 add 1 to {_n}
    7.                 set loop-block to {sw.trapped_chest.arena::%{_n}%}
    8.         add apple to inventory of block at {sw.trapped_chest.arena::1}
    9.         add apple to inventory of block at {sw.trapped_chest.arena::2}
    10.         add apple to inventory of block at {sw.trapped_chest.arena::3}
    11.         add apple to inventory of block at {sw.trapped_chest.arena::4}
    12.         add apple to inventory of block at {sw.trapped_chest.arena::5}
    13.         add apple to inventory of block at {sw.trapped_chest.arena::6}
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,093
    Likes Received:
    146
    that's because you never set these variables
    "{sw.trapped_chest.arena::1}"
     
Thread Status:
Not open for further replies.
Loading...