How to make entity look out the window

Started by modbroz on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entity look out the window
Thu, 04/17/2025 - 16:23 (edited)

I am trying to make a living entity look out the window any ways to do this?

Edited by modbroz on Thu, 04/17/2025 - 16:23
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Someone please help me with…
Wed, 04/16/2025 - 20:53

Someone please help me with this

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Look up in the procedure…
Wed, 04/16/2025 - 23:00

Look up in the procedure template tab and select the "search a block in 3x3x3 area" or something like that, it is one of the first in the list. Adapt it to your needs, but select the glass bock or glass panel that is the window. Then, in the "If true" part, put an "Attempt to make entity find a path to..." but change the x y and z for the variables in the previous part. It must look like "get number local sx" and sy and sz. Then add a "make entity look at..." and also change the x y z for the same variables. I think that ought to work, but check it out for yourself.