Solved on break: help

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

    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.

Alec Stanley

Member
Apr 26, 2019
2
0
0
Ok this might be a very simple question as i'm pretty new to Skript.
mc ver: 1.13.2 spigot

I basically need to make it so players cannot break all blocks except a certain few blocks. I need to make it so that players can only break light blue and red wool and thats it. Everything else is canceled.

So I have this:
Code:
on break:
    cancel event
And it just needs to apply for everything EXCEPT wool which I can't find anywhere on Google or the docs so I'm wondering if i can get help myself from the community.

Thx in advance.
 
Ok this might be a very simple question as i'm pretty new to Skript.
mc ver: 1.13.2 spigot

I basically need to make it so players cannot break all blocks except a certain few blocks. I need to make it so that players can only break light blue and red wool and thats it. Everything else is canceled.

So I have this:
Code:
on break:
    cancel event
And it just needs to apply for everything EXCEPT wool which I can't find anywhere on Google or the docs so I'm wondering if i can get help myself from the community.

Thx in advance.
I do not know much about Skript 1.13, but in 1.8 I would do something like this:
code_language.skript:
on break:
    if event-block isn't red wool or blue wool:
        cancel event
 
I do not know much about Skript 1.13, but in 1.8 I would do something like this:
code_language.skript:
on break:
    if event-block isn't red wool or blue wool:
        cancel event

ahh yes thank you it finally worked. in 1.13 because of block id changes the wool color is light blue. for future reference for people with same issue:
Code:
on break:
    if event-block isn't red wool or light blue wool:
        cancel event
 
Status
Not open for further replies.