Started by
_Ness
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, I'm trying to make a procedure that affects the entity a player is looking at, on player tick update, is it possible ? Tell me if I'm not being precise enough, and thank you in advance.
Yes that is possible.
Of course it is possible! Look at raytracing. I believe MCreator has raytracing capabilities. But here is a snippet from one of my mods if you need direction that apply this (1.15.2)
This "switches" places with you and the entity you look at (that may not be what you need but the point is still there). I get the results using the method below.
Tbroski, is there a way to recreate this in procedure form? I'm not familiar with coding, and need to customize it so that my custom mob freezes when I look at it.
I don't believe so punkmonkey, sorry.
I guess you could without coding, since there is procedure blocks for "look x y z position - raytrace distance", maybe by coinciding angles from the distance between you and the mob and the mob position and where you are looking you could set the mob in cobweb or setting its speed to 0 0 0. Maybe you do not even have to coincide angles, if where you are looking is coinciding with the mob position it will set its speed to 0 0 0.
msrodrigues2000 yes
No problem. :)
is there a way to do this in 1.12.2?
what does that mean?
can someone try to make it with procedures?
i can't quite figure it out
Try something using this:
https://imgur.com/y7OcmJS
It will help a lot