no-break skript

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

Bluesandbox

Member
Aug 4, 2019
2
0
0
Category: protection

Suggested name: dosnt matter

Spigot/Skript Version: skript:2.2-dev36

What I want:
i need a skript that only lets you break ore blocks

Ideas for commands: none

Ideas for permissions: mine.break lets you break any blocks

When I'd like it by: A reasonable time
 
Try this, I haven't tested it because I dont use 2.2-dev36, but it works on newer Skript versions with slightly different code
code_language.skript:
on break:
    if type of event-block is not ore:
        if player does not have permission "mine.break":
            cancel event
 
Try this, I haven't tested it because I dont use 2.2-dev36, but it works on newer Skript versions with slightly different code
code_language.skript:
on break:
    if type of event-block is not ore:
        if player does not have permission "mine.break":
            cancel event
Wow, I didn't know that method to see the type of block. I always warmed my head by placing mineral and mineral, increasing the lines of code.
 
ty so much it works :emoji_grinning:
You're welcome

Wow, I didn't know that method to see the type of block. I always warmed my head by placing mineral and mineral, increasing the lines of code.
Yeah, if you look in the aliases files, theres plenty of aliases which are for groups of certain types, ie: all ores, or all tools, or all weapons. Lots of them.