how to make sword that does infinite damage or a sword that does a percentage of a mobs health

Started by Levcreater9909 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make sword that does infinite damage or a sword that does a percentage of a mobs health

how do i make a sword that can instakill everything no matter it's health, 1k, 1m, 1b and so on instakilled. i want it to do infinite damage, like instakilling everything no exception. or maybe a sword that does a percentage of a mobs health like 50% health = 2 shot no matter what

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For instakill do on entity…
Mon, 09/16/2024 - 14:52

For instakill do on entity hit by item set target entity health to 0. For percentage health do the same and set health of target entity to get health - 0.1*maxhealth etc to do 10% max health damage, for current health damage interchange them.