RayTrace - From Entity (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 2.6.0

Syntax

ray[ ]trace from %livingentities% [with max distance %-number%] [with ray size %-number%] [while ignoring passable blocks] [while (ignoring|only allowing) %-entities/entitydatas%][while going through %-blocks/itemtypes%]

Description

RayTrace from an entity. Default max distance = 'maximum target block distance' in Skript's config. RaySize = entity bounding boxes will be uniformly expanded (or shrunk) by this value before doing collision checks (default = 0.0). IngorePassableBlocks = Will ignore passable but collidable blocks (ex. tall grass, signs, fluids, ..). Ignoring/Only Allowing Entities/EntityTypes = Will ignore/only allow the entities/entitytypes from the final ray. Going through Blocks/ItemTypes = Will ignore the blocks/itemtypes from the final ray.

Examples

set {_ray} to ray trace from player with max distance 25
set {_ray} to ray trace from player with max distance 25 while ignoring passable blocks
set {_rays::*} to raytrace from all players with ray size 0.1

View source