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.

block limit?

Discussion in 'Skript' started by uhdwo, Jun 5, 2020.

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

    uhdwo Member

    Joined:
    May 18, 2020
    Messages:
    20
    Likes Received:
    0
    hi can anyone help me with a little skript that makes block limit pr chunk

    so when player is placing a block i can define how many lets say "dirt" that can be in one chunk?
    plz
     
  2. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    208
    Likes Received:
    20
    I was not able to find solution for the "per chunk" but you may be able to use "in radius of 16 blocks":
    Code (Text):
    1. on place of diamond block:
    2.     loop all blocks in radius 16 of event-block:
    3.         if loop-block is diamond block:
    4.             add loop-block to {blockloop::*}
    5.     if size of {blockloop::*} > 5:
    6.         cancel event
    7.         send "&cYou cannot place any more diamond blocks!"
    8.     clear {blockloop::*}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...