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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple Skript To Be Edited

Discussion in 'Requests' started by Computerize, Oct 10, 2019.

  1. C

    Computerize Member

    Joined:
    Oct 10, 2019
    Messages:
    3
    Likes Received:
    0
    Hi, can someone please change the following Skript so that it does not work (the same way the permission makes it stop) if the region the player is in contains the words "event" "spawn" or "cell".

    If you cannot do this then I can always list the regions, but please show me how I can do this.

    Thanks


    on place:
    if player has permission "blockedup.bypass":
    stop
    else:
    wait 3 minutes
    if event-block is oak log:
    set event-block to air
    if event-block is oak planks:
    set event-block to air
    if event-block is oak slab:
    set event-block to air
    if event-block is oak stairs:
    set event-block to air
    if event-block is ladder:
    set event-block to air
    if event-block is oak sign:
    set event-block to air
    if event-block is oak button:
    set event-block to air
    if event-block is oak pressure plate:
    set event-block to air
    if event-block is oak fence:
    set event-block to air
    if event-block is oak fence gate:
    set event-block to air
    if event-block is cobblestone:
    set event-block to air
    if event-block is stone:
    set event-block to air
    if event-block is cobblestone slab:
    set event-block to air
    if event-block is cobblestone stairs:
    set event-block to air
    if event-block is cobblestone wall:
    set event-block to air
    if event-block is stone button:
    set event-block to air
    if event-block is barrel:
    set event-block to air
    if event-block is iron ore:
    set event-block to air
    if event-block is lapis ore:
    set event-block to air
    if event-block is lapis block:
    set event-block to air
    if event-block is diamond ore:
    set event-block to air
    if event-block is emerald ore:
    set event-block to air
    if event-block is redstone ore:
    set event-block to air
    if event-block is oak log:
    set event-block to air
     
  2. I

    ItzMeDjeden Member

    Joined:
    Oct 11, 2019
    Messages:
    1
    Likes Received:
    0
    Does this work? Every tab is 4 spaces
    on place:
    if player has permission "blockedup.bypass":
    stop
    else:
    wait 3 minutes
    if event-block is oak log:
    set event-block to air
    if event-block is oak planks:
    set event-block to air
    if event-block is oak slab:
    set event-block to air
    if event-block is oak stairs:
    set event-block to air
    if event-block is ladder:
    set event-block to air
    if event-block is oak sign:
    set event-block to air
    if event-block is oak button:
    set event-block to air
    if event-block is oak pressure plate:
    set event-block to air
    if event-block is oak fence:
    set event-block to air
    if event-block is oak fence gate:
    set event-block to air
    if event-block is cobblestone:
    set event-block to air
    if event-block is stone:
    set event-block to air
    if event-block is cobblestone slab:
    set event-block to air
    if event-block is cobblestone stairs:
    set event-block to air
    if event-block is cobblestone wall:
    set event-block to air
    if event-block is stone button:
    set event-block to air
    if event-block is barrel:
    set event-block to air
    if event-block is iron ore:
    set event-block to air
    if event-block is lapis ore:
    set event-block to air
    if event-block is lapis block:
    set event-block to air
    if event-block is diamond ore:
    set event-block to air
    if event-block is emerald ore:
    set event-block to air
    if event-block is redstone ore:
    set event-block to air
    if event-block is oak log:
    set event-block to air
     
  3. C

    Computerize Member

    Joined:
    Oct 10, 2019
    Messages:
    3
    Likes Received:
    0
    Hey, thanks but I posted if you could help me disable the skript in certain regions that contain a word or just let me list those regions that I want it to be disabled in.
     
  4. V

    Vorze Active Member

    Joined:
    Jul 10, 2017
    Messages:
    41
    Likes Received:
    2
    Your Code is too long then use this
    Code (Text):
    1. on place:
    2.     if player isn't in world "nameofworld":
    3.         stop
    4.     else:
    5.         if player has permission "blockedup.bypass":
    6.             if event-block is oak log, redstone ore, emerald ore, diamond ore, lapis block, lapis ore, iron ore, barrel ,stone button, cobblestone wall, cobblestone stairs, cobblestone stairs, cobblestone slab, stone, cobblestone, oak fence gate, oak fence, oak pressure plate, oak button, oak sign, ladder , oak stairs, oak slab, oak planks, oak log:
    7.                 cancel event
     
Loading...