Format rn:
on right click on Beacon:
cancel event
message "%event-location%"
set {Coord} to event-location
set {_Coordx} to x coord of event-location
set {_Coordy} to y coord of event-location
set {_Coordz} to z coord of event-location
set {_Coordx} to {_Coordx}-0.5
set {_Coordy} to {_Coordy}-0.5
set {_Coordz} to {_Coordz}-0.5
set {_location1} to location(({_Coordx}-16), {_Coordy}, ({_Coordz}-16), world "world")
set {_location2} to location(({_Coordx}+16), {_Coordy}, ({_Coordz}+16), world "world")
loop all blocks within {_location1} and {_location2}:
message "working"
if loop-block is not a air:
message "hi"
else:
message "4"
loop is not working, how do i fix it?
server version: 1.16.2
using addon : SKchoke, Skellett. SkInvName, SkQuery, skRayFall, SKUtilities
[doublepost=1597632047,1597565421][/doublepost]
it works now XD
on right click on Beacon:
cancel event
message "%event-location%"
set {Coord} to event-location
set {_Coordx} to x coord of event-location
set {_Coordy} to y coord of event-location
set {_Coordz} to z coord of event-location
set {_Coordx} to {_Coordx}-0.5
set {_Coordy} to {_Coordy}-0.5
set {_Coordz} to {_Coordz}-0.5
set {_location1} to location(({_Coordx}-16), {_Coordy}, ({_Coordz}-16), world "world")
set {_location2} to location(({_Coordx}+16), {_Coordy}, ({_Coordz}+16), world "world")
loop all blocks within {_location1} and {_location2}:
message "working"
if loop-block is not a air:
message "hi"
else:
message "4"
loop is not working, how do i fix it?
server version: 1.16.2
using addon : SKchoke, Skellett. SkInvName, SkQuery, skRayFall, SKUtilities
[doublepost=1597632047,1597565421][/doublepost]
Code:
on right click on Beacon:
cancel event
set {Coord} to event-location
set {_Coordx} to x coord of event-location
set {_Coordy} to y coord of event-location
set {_Coordz} to z coord of event-location
set {_Coordx} to {_Coordx}-0.5
set {_Coordy} to {_Coordy}-0.5
set {_Coordz} to {_Coordz}-0.5
set {_location1} to location(({_Coordx}-16), {_Coordy}, ({_Coordz}-16), world "world")
set {_location2} to location(({_Coordx}+16), ({_Coordy}+10), ({_Coordz}+16), world "world")
set {R.%{%{Kingdom.%player%}%}%} to 0
loop all blocks within {_location1} and {_location2}:
if loop-block is air:
add 1 to {R.%{%{Kingdom.%player%}%}%}
it works now XD