#can i raytrace from anywhere? (not just from an entity or player)

9 messages · Page 1 of 1 (latest)

livid cedar
#

title

bleak forgeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

empty vine
#

May you elaborate more? What does raytrace mean here exactly?

livid cedar
#

I wanna raycast from a block towards a direction

empty vine
#

Is it from another mod, or a feature done with other kubejs scripts?

livid cedar
empty vine
#

So the "ray" does not need to be visible by player, just to check if there's obstacle between two position, does it?

#

I am thinking that maybe you can summon a Marker and make it move along the direction between two points, and check if it get into any block in its way.
https://minecraft.wiki/w/Marker

Minecraft Wiki

Markers are entities intended for use in data packs and map-making. They can only be created with the /summon command.