Teleport attack

Started by Pepper on Wed, 02/17/2021 - 19:54

Topic category: Help with modding (Java Edition)

Last seen on 23:35, 15. May 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Teleport attack
Wed, 02/17/2021 - 20:24 (edited)

I am making a sort of ender wolf, and i want it to teleport to what it targets. and I got that to work... but it keeps teleporting to it's target every tick. can you please tell me what im doing wrong? (image of my code: https://www.screencast.com/t/UD8L9zki)

EDIT: i made it so the wolf couldn't teleport when he has the nausea potion effect and then i gave him the nausea effect for 20 seconds when he teleports to his enemy

EDIT 2: that didnt work for some reason :(

Edited by Pepper on Wed, 02/17/2021 - 20:24