Started by
Levcreater9909
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.