#Make an entity face another without commands

32 messages · Page 1 of 1 (latest)

surreal bay
#

So i want an entity to be forced to face another, I know i can do this with commands but id rather not to reduce lag and such

kindred sageBOT
#

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

timber prism
#

entity.xRot = 198
entity.yRot = 2381

#

@surreal bay

charred hollow
#

can do

const $BehaviorUtils = Java.loadClass('net.minecraft.world.entity.ai.behavior.BehaviorUtils')
$BehaviorUtils.lookAtEntity(LivingEntityWhoNeedsToLook, LivingEntityToLookAt)
surreal bay
#

Hmm does this work in a server script? because i cant quite get it to work

timber prism
#

which one

#

mine or persiflage's

#

oh wait

#

i read your question wrong

timber prism
#

cuz it does smth with the brain and whatever

#

and i dont rlly understand it

charred hollow
surreal bay
#

😭

surreal bay
#

Oops

#

Ye im unable to actuallt get the method to work fully

#

Logs say everything is fine but functionally nothing happens

timber prism
#

then reopen the yicket

surreal bay
#

i did

timber prism
#

it looks like the method messes with ai

#

so like try on a pig

surreal bay
#

I figured it out

timber prism
#

you should reply with a solutio

#

this is search indexed

#

so poeple searching can know the solution