Teleport attack

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

Topic category: Help with modding (Java Edition)

Last seen on 18:31, 1. Apr 2023
Joined Nov 2020

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:

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