Middle of Location (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.6.1
Syntax
[the] (middle|center) [point] of %location%Description
Returns the middle/center of a location. In other words, returns the middle of the X, Z coordinates and the floor value of the Y coordinate of a location.
Examples
command /stuck:
executable by: players
trigger:
teleport player to the center of player's location
send "You're no longer stuck."