How to Make a Flying Entity Dash into a Player and Teleport Randomly?

Started by NyaEmii on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Make a Flying Entity Dash into a Player and Teleport Randomly?

Hello!

I have a problem. I wanted to make a flying entity, like a ghost, that when it gets close to you it will dash at you, deal damage and then teleport somewhere else around you so it can keep doing that. So far, it does not do that- first of all, I can't seem to change the speed of the entity at all, no matter what I tweak it always flies to me at the same speed- second, most likely due to using the "On entity tick update" trigger, whenever it gets close to me, it freezes and disappears- lastly, I cant get it to teleport anywhere no matter what- using the trigger when the entity is hit I wanted to check if I could make it teleport when you hit it, and it didn't do anything at all.

Honestly, if I can't make the dash work, or have the entity move any faster at all, then I will literally scrap the idea and do something else, but it would be really cool if it worked! so I would really appreciate if someone could help out there.