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

Started by Externity Hezer on

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:
  • 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?

Last seen on 10:28, 30. Oct 2023
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"

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

User statistics:

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

thanks