Can I see check distance of an entity for a Ranged Enchantment concept?

Started by CloudCreates on Mon, 05/30/2022 - 01:00

Topic category: Help with modding (Java Edition)

Last seen on 21:55, 26. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can I see check distance of an entity for a Ranged Enchantment concept?
Mon, 05/30/2022 - 01:00

I'm working on a special enchantment idea for Ranged Weapons (Bows, Crossbows, Tridents) where at 35+ blocks away it does a special effect like double damage or something. Is there a way I can detect if a entity is 35 or more blocks away and apply it to this enchantment? I'm using Block Coding for this btw not typing coding lol