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

Started by CloudCreates on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I see check distance of an entity for a Ranged Enchantment concept?

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