Started by
noTLST
on
Topic category: Help with Minecraft modding (Java Edition)
Invincible mob, except for one custom weapon. Unfortunately, I can't write the procedure correctly.
I have a mob where there are all checkboxes for immunity. I also have a weapon with which to kill him.
How to write a procedure correctly (I would be grateful if they showed an image)
Hopefully the image appears for you
Put this procedure in the "when entity hurt" trigger in your entity's triggers section.
https://imgur.com/nQAMP14
Change damage and your item to whatever you like. Hope this helps.
@FreddyFoxGam3r @ImOd102 First of all, thanks for your answers. I actually did this and tried to do it, but only with an additional entity check. When adding a procedure to a creature's triggers, this error occurs. What could be wrong?
make sure to put it in the right trigger. Sometimes mcreator does this if you use the wrong trigger. Is it in the "when enitity is hurt" trigger?
It seems like yes. I can demonstrate it
Entity Trigger: https://imgur.com/a/CP8B0Ge
Procedure: https://imgur.com/a/sFdBKGG
I think it might have something to do with the invincibility?? So try this instead:
https://imgur.com/TRtc6lL
Don't put this in the entity triggers, and the green block is found in the advanced procedure blocks tab.
maybe try this?
https://imgur.com/a/tCEkoYm
Unfortunately, nothing helped, although it would seem that the task is simple. Most likely I will have to contact the modder with this simple task, I can’t cope myself :(
If there are no errors with your advice, but the damage to the mob does not pass