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 Blocks, blocks, blocks.

Discussion in 'Skript' started by Redblock6, Oct 21, 2020.

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

    Redblock6 Member

    Joined:
    Apr 13, 2019
    Messages:
    12
    Likes Received:
    1
    Hello,

    I am trying to make a skript so that you can only break blocks that you or another player has placed, and you cannot break any block that another player or you has placed.

    And I am trying to make it so that these blocks can be deleted, but not manually.

    This is the code I have so far for it:
    https://pastebin.com/H3RuhMnP

    You can see what the problem I am having is there.

    Thanks so much,
    Redblock6
     
  2. Best Answer:
    Post #2 by BaeFell, Oct 21, 2020
  3. BaeFell

    BaeFell I'm Poppy
    Admin

    Joined:
    Nov 27, 2016
    Messages:
    833
    Likes Received:
    226
    I think is what you're after https://parser.skunity.com/6b79a3ee

    I've reworked how you're saving the blocks by setting their location into a list instead of adding as this has a slight performance benefit and the same again when removing. You can't use set all blocks at with a list of blocks. It might work with locations, but I've opted for a loop instead.
     
  4. Redblock6

    Redblock6 Member

    Joined:
    Apr 13, 2019
    Messages:
    12
    Likes Received:
    1
    It works!
    Thank you so much!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...