Solved Blocks, blocks, blocks.

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Redblock6

Member
Apr 13, 2019
12
1
3
45
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
 
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.
 
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.
It works!
Thank you so much!
 
Status
Not open for further replies.