Adjusting Attack Damage of a Weapon

Started by theeminer20 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adjusting Attack Damage of a Weapon

I want to add a Scythe, this Scythe is just a normal weapon, EXCEPT when the player is below half health, then the weapon's attack damage doubles.

I need help with doing this, as I have absolutely NO clue how to even start.

 

Yes, I am a noob...

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you use @friyes's…
Mon, 11/03/2025 - 20:28

if you use @friyes's procedure make sure its "current health of "source entity" < max health of "source entity / 2"

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also something I'm just now…
Mon, 11/03/2025 - 20:44

also something I'm just now thinking about is my way won't work with any enchantments