MY script:
Using SharpSK last version, skript ver 2.5-beta2, serv ver 1.13, . Giving error:
Code:
on place of gold block:
loop blocksInCube(event-location):
if loop-block is yellow terracotta:
cancel event
message "&cСлишком близко к другой базе!" to player
set {_cancel.rg.create} to true
if {_cancel.rg.create} is not set:
set event-block to yellow terracotta
set {_pos1} to event-location
set {_pos2} to event-location
add 3 to x coord of {_pos1}
add 3 to z coord of {_pos1}
add 3 to y coord of {_pos1}
remove 3 from x coord of {_pos2}
remove 3 from z coord of {_pos2}
create region "1" between {_pos1} and {_pos2} in world of {_pos1}