Midpoint (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.13

Syntax

[the] mid[-]point (of|between) %object% and %object%

Description

Get the midpoint between two vectors or two locations in the same world.

Examples

set {_center} to the midpoint between location(0, 0, 0) and location(10, 10, 10)
set {_centerBlock} to the block at {_center}
set {_midpoint} to the mid-point of vector(20, 10, 5) and vector(3, 6, 9)

View source