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
#Raytrace
1 messages · Page 1 of 1 (latest)
just use vectors
skbee's raytrace and skript's target entity/block only return the end result of the line
Yes, but my understanding is that all he wants is the target.
set {_v} to vector from yaw player’s yaw and pitch player’s pitch
🗿✅
- the particle line
Oh I see
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
Someone wanted to know how I created my other skripts and some included drawing a line with a particle so I made this. Requires skript and the addon skBee.
skBee: https://github.com/ShaneBeee/SkBee/releases/tag/2.0.0
skript: https://github.com/SkriptLang/Skript/releases