TRACE(<distance>,[entities])
- Category
- Calculations
- Added in
- v0.12.1
- Permission
mod.macros.script.inventory.trace
Performs a ray trace operation which sets the raytrace variables in the local scope.
<distance>
can be between 3
and 256
[entities]
can be true, if you want to include entities in your trace.
Returns the type of the result, which can be one of the following values:
TILE
PLAYER
ENTITY
NONE
Variables
Name
Description
%TRACE_<name>%
Value of the specified property of the executed TRACE()
%TRACEDATA%
Metadata of the block
%TRACEUUID%
Returns the UUID of other players
%TRACESIDE%
Side of the block
%TRACEZ%
Z position
%TRACEY%
Y position
%TRACEX%
X position
%TRACEID%
The id
%TRACENAME%
The name
%TRACETYPE%
The type of the result