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 On Block Break - Advanced

Discussion in 'Skript' started by DefinetlyFelix, Oct 19, 2020.

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

    Joined:
    Oct 6, 2020
    Messages:
    3
    Likes Received:
    0
    Hey :emoji_grinning:
    I am making an Prison-System for my SkyPvP server and I want the System to add 1 to {mine.block.stone.%player%}, my idea was:

    on block break:
    loop blocks in radius 1 of event-block: #In Case of Explosion-Enchantment
    if loop-block is stone:
    add loop-block to {mine.inv.stone.%player%}
     
  2. TFS_Mads

    TFS_Mads Member

    Joined:
    Oct 16, 2020
    Messages:
    30
    Likes Received:
    6
    I hope this works.
    Code (Text):
    1. on block break:
    2.     loop blocks in radius 1 of event-block: #Loop blocks
    3.         if loop-block is stone: #Check if block is stone
    4.             set loop-block to air #set loop-block to air
    5.             add 1 to {mine.inv.stone.%player%} #add 1 to Player's stone inventory
    6.  
     
  3. DefinetlyFelix

    Joined:
    Oct 6, 2020
    Messages:
    3
    Likes Received:
    0
    YES It works! Thank you very much! :emoji_grinning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...