How to dectect if a thrown trident is enchanted with a custom enchantment (when it hits an entity)

Started by TheForgottenOne on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to dectect if a thrown trident is enchanted with a custom enchantment (when it hits an entity)
Sat, 06/06/2026 - 10:26 (edited)

I'm basically trying to make an enchant like fire aspect but for a trident so I would like to detect when a thrown trident hits an entity with this enchantment ant put the entity on fire but I was not able to figure it out, I know it may not be possible but I'm really desperate for a solution. I have no problem with doing custom code if it is the only alternative to my problem. 

(Using Mcreator 2025.3 and Neoforge 1.21.8)

Edited by TheForgottenOne on Sat, 06/06/2026 - 10:26