Help with break block

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

pam20

Member
Jan 5, 2021
3
0
1
20
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
 
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
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:
 example
 
Code:
on break on (block):
or
Code:
on break of (block)
 
Did you meant
Code:
on break:
 loop all blocks in radius 5 around {deadspawn}:
  if loop-block is stone: #Or block you want to select
   cancel event
  else:
   send "no" to player
?
Hope this is the right solution for you!
 
Did you meant
Code:
on break:
 loop all blocks in radius 5 around {deadspawn}:
  if loop-block is stone: #Or block you want to select
   cancel event
  else:
   send "no" to player
?
Hope this is the right solution for you!
Hi I dont work, its disable all block to break
 
Code:
loop all blocks in radius 5 around {deadspawn}:
Its loop all block in world
[doublepost=1609956005,1609955901][/doublepost]
It works fine, what you mean? You can't place or destroy blocks?
Its need any addons? I use skript, skquery and skrayfall
 
Code:
loop all blocks in radius 5 around {deadspawn}:
Its loop all block in world
[doublepost=1609956005,1609955901][/doublepost]
Its need any addons? I use skript, skquery and skrayfall
did you set {deadspawn} to a location ?
 
Status
Not open for further replies.