#how to chain raycast

1 messages · Page 1 of 1 (latest)

limpid folio
#

I want to create like a superpowers datapack and i am making like nature power and I need to make a power that summon vines in the directions that the player is looking but not like the vine block I need like the particles that every few blocks the ray cast would split into random directions but still move in the general direction that the player was looking at

keen yew
#

So like a branching thing?
Just make a score that decreases and if it's 0 put it back and choose some random direction with /random where you make a new raycast

#

Also probably a slowcast would be better

limpid folio
#

how do I change the direction with /random

keen yew
#
  • Summon a Marker
  • /execute store result entity <marker> Rot[0] int 1 run random value <min>..<max>
  • /execute as <marker> at @s run function <raycast>
limpid folio
#

wait but I want it to be in the general direction that I fired with like a range of like ~-40..40 ~ and not a set value cuz I dont want it return to the back

limpid folio
#

and how do I make it faster?

wind vector