Is Within (Condition) — Skript
Addon: Skript · Category: Condition · Since: 2.7, 2.11 (world borders)
Syntax
%locations% (is|are) within %location% and %location%Description
Whether a location is within something else. The "something" can be a block, an entity, a chunk, a world, or a cuboid formed by two other locations. Note that using the <a href='#CondCompare'>is between</a> condition will refer to a straight line between locations, while this condition will refer to the cuboid between locations.
Examples
if player's location is within {_loc1} and {_loc2}:
send "You are in a PvP zone!" to player
if player is in world("world"):
send "You are in the overworld!" to player
if attacker's location is inside of victim:
cancel event
send "Back up!" to attacker and victim
if player is in world "world1" or world "world2":
kill player
if player is in world "world" and chunk at location(0, 0, 0):
give player 1 diamond