knockback achievement

Started by ShadeCatt on

Topic category: Help with modding (Java Edition)

Last seen on 21:52, 13. Sep 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
knockback achievement

i made an item that has really high knockback (its supposed to be the titan arm from terraria calamity) and i want to have an achievement  if a player knock a mob a certain distance away. is that possible?

Last seen on 18:56, 15. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you can store the…
Sun, 09/08/2024 - 16:43

I think you can store the mob's coordinates at the moment it takes damage, and after some time, retrieve the mob's coordinates again. If it has changed its position by the required number of blocks, grant the achievemen