How to make entity stay near block unless broken

Started by EthanIslandGamer on

Topic category: Help with modding (Java Edition)

Last seen on 00:53, 10. Oct 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entity stay near block unless broken

Hello! I am making a dragon mod and I want the dragons to stay near the block (which is the dragon egg) unless broken. Is there any way to do that?

 

thanks,

EthanIslandGamer

Without some custom coding,…
Sun, 12/13/2020 - 10:50

Without some custom coding, I don't think so, unless if you could somehow do it with AI conditions to disable walking AI when entity should not move