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

Started by Externity Hezer on Wed, 07/15/2020 - 13:43

Topic category: Help with modding (Java Edition)

Last seen on 21:51, 23. Apr 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make an Enchantment working on hitting an Enemy?
Wed, 07/15/2020 - 13:43

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

Last seen on 13:57, 2. Apr 2021
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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"

Last seen on 21:51, 23. Apr 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thanks
Wed, 07/15/2020 - 15:03

thanks