So I am trying to make it so when the player enters a different player's area he can't break anything or drop anything.
Code:
on block break:
if player's world is "TheIslands":
if {island.b::%player%} doesn't contain location of player:
cancel event
and:
set {island.b::%player%} to locations between location(28.5, 0, {sd} + 28, world "TheIslands") and location(-27.5, 250, {sd} - 28, world "TheIslands")