How would i stop a custom mob from moving until after a few seconds?

Started by withermasterbmods on

Topic category: Help with modding (Java Edition)

Last seen on 22:45, 5. Apr 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would i stop a custom mob from moving until after a few seconds?

I need to make a custom mob stop moving until after a certain time frame

Last seen on 14:57, 22. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could give it a really,…
Fri, 10/13/2023 - 16:30

You could give it a really, really high level of slowness. 

...Or, if you want to make it a little bit fancier, you could try somehow saving the locked entity's position as NBT data and repeatedly teleporting them there, or try constantly overriding their motion vector to zero. (Maybe just overriding x/z motion to zero, unless you also want them to levitate while frozen.)