How do i make an Enchantment working on hitting an Enemy?

Started by Externity Hezer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make an Enchantment working on hitting an Enemy?

Like, if you hit an enemy with the Enchantment "Wither" that it inflicts Wither?

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use procedures : "global…
Wed, 07/15/2020 - 14:39

Use procedures :

"global trigger : 'when entity attacked'"

if "object in source entity's main hand"...

then "give wither potion effect to entity"