Started by Kapitan Polska on Fri, 04/23/2021 - 17:53
Topic category: Advanced modding
How to do a procedure for the fact that a given mob dies immediately from a given item, and if it is not this item, it does not die and you have to fight it normally? If someone knows, I would ask for a photo
Hi everyone! For the first time in a long time, I feel I can confide in someone who understands yet proposes positive motivating advices and the newest approaches. I'm blessed I've found online therapy and search forward to each session as a new brilliant journey. It also implements tasks that are conducive to helping with the issues presented. I strongly recommend it online talk therapy to use for everyone!
Nice, but is it really related? Come on.
Hi, I don’t know if there is an existing procedure for the action you described, but you can try to write it yourself. Here are some tips:
about instant kill - in 1.12 the / kill command works like this:
Simple and effective.
Or when hitting with a specific item, you can try the entity.setDead method.
I can also share my piece of code, but it does slightly different things, allows you to kill a mob with one hit with any object and does not take away damage to the object.