#Raytrace

1 messages · Page 1 of 1 (latest)

craggy kettle
#

How can i make an raytrace detection like when right clicking a stick, it creates a particle line at the direction where player looks and detects where this line impacts like if it impacts with a block, nothing happens and if it impacts with a mob, gives 5 damage to it. I saw some options on skbee but didnt understand it and i need simple one, not a lot of {_x} {_z} {_yaw} things

gray lichen
#

Dude

#

Why not just use on of these?

player’s target entity```
muted holly
#

just use vectors

#

skbee's raytrace and skript's target entity/block only return the end result of the line

gray lichen
gray lichen
muted holly
gray lichen
#

This is a common thing people ask for so there always an example going around of how to make particle rays with vectors

#

If nobody else does, I can send it later

muted holly