Started by
_Sam_55
on
Topic category: Help with Minecraft modding (Java Edition)
So, I've been working on making a Sword that gains a short buff (About 3-5 seconds) of strength and jump boost after killing a mob. I was wondering if anyone has an idea on how to do this. I've made several attempts but can't quite figure out what I'm doing wrong.
Sorry if this is the wrong topic.
Make a new procedure for your tool "When living entity is hit with tool". Then in the procedure, make it check if the health of the event/target entity (the entity that was hit) is less than 0.1. If it is, it'll give the effects you want to the source entity.