Curse to decrease damage dealt by sword

Started by GregTheSpinarak on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Curse to decrease damage dealt by sword

I want to add a curse that decreases damage dealt on a sword it is applied to. Can someone help?

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe this could work for…
Mon, 07/10/2023 - 21:48

maybe this could work for doing half damage.

trigger: before entity is hurt

if item in main hand of source entity has enchantment (enchant id):

  cancel event

  damage event/target entity by amount/2

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i cancel event?
Mon, 07/10/2023 - 22:42

How do i cancel event?