TRACE

TRACE(<distance>,[entities])

Type: Action

Category: Calculations

Permission: mod.macros.script.inventory.trace

Since Minecraft Version: v1.9.4

Since Version: v0.12.1

Minor: 12

API: 21

Patch: 1


Description

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


Related Resources

Changelog
  • Added em v0.12.1:
  • Fixed em v0.14.1: X, Y, Z coordinates were not available