How do I make an enchantment that increases attack damage

Started by Muzaki on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an enchantment that increases attack damage

I want to increase attack damage on certain tools with this enchantment, but I dont want to use the "deal damage to entity" block because it gives the entity invincibillity frames or cancels the damage. Is there a way to just increase the weapons damage directly?

Check entties in range for…
Tue, 08/03/2021 - 07:26

Check entties in range for player, then check if they are sneaking, and if true, set some nbt tag of your entity. Then in same tick, check for this flag and if set, implement your mining action, eg. with explosions or block removal and dropping