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.

Help with break block

Discussion in 'Skript' started by pam20, Jan 5, 2021.

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

    pam20 Member

    Joined:
    Jan 5, 2021
    Messages:
    3
    Likes Received:
    0
    Hi this is my code but do not work.


    on break:
    loop all blocks in radius 5 around {deadspawn}:
    if block is loop-block:
    cancel event
    else:
    send "no"


    deadspwan is good
    Its alwasy says "no" but im break a block next to deadspawn
     
  2. BadName

    BadName Member

    Joined:
    Oct 23, 2020
    Messages:
    23
    Likes Received:
    0
    im not good with loop all but im pretty sure its 'on block break', it might not matter tho.



    also use [ code] [/ code] box to do code, it shouldd look like this

    Code (Text):
    1.  example
    2.  
     
  3. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    Code (Text):
    1. on break on (block):
    or
    Code (Text):
    1. on break of (block)
     
  4. _XxfedexX_

    _XxfedexX_ Member

    Joined:
    Oct 6, 2020
    Messages:
    29
    Likes Received:
    2
    Did you meant
    Code (Text):
    1. on break:
    2.  loop all blocks in radius 5 around {deadspawn}:
    3.   if loop-block is stone: #Or block you want to select
    4.    cancel event
    5.   else:
    6.    send "no" to player
    ?
    Hope this is the right solution for you!
     
  5. pam20

    pam20 Member

    Joined:
    Jan 5, 2021
    Messages:
    3
    Likes Received:
    0
    Hi I dont work, its disable all block to break
     
  6. _XxfedexX_

    _XxfedexX_ Member

    Joined:
    Oct 6, 2020
    Messages:
    29
    Likes Received:
    2
    It works fine, what you mean? You can't place or destroy blocks?
     
  7. pam20

    pam20 Member

    Joined:
    Jan 5, 2021
    Messages:
    3
    Likes Received:
    0
    Code (Text):
    1.  
    2. loop all blocks in radius 5 around {deadspawn}:
    3.  
    Its loop all block in world
    --- Double Post Merged, Jan 6, 2021, Original Post Date: Jan 6, 2021 ---
    Its need any addons? I use skript, skquery and skrayfall
     
  8. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    6
    did you set {deadspawn} to a location ?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...