Topic category: Help with MCreator software
Mobs can cause damage, but despawn when the difficulty is peaceful.
Creatures do not despawn by themselves and with peaceful difficulty, but they can't do any harm..
But what are the wolf and the iron golem? They can cause damage, but they don't despawn with peaceful difficulty.
Is it possible to repeat this in MCreator? If not, what custom code is needed for this?
I've been trying for some time to create wolf group leaders and younger brothers of iron golems (copper ones), but they both just despawn over time.(And when switching the difficulty to peaceful, respectively)
I had an option to give them invisible names somehow(at least the solution to the problem of natural despawn). I'm also thinking of forcibly moving the creature to the target and forcibly damaging the target when their hitboxes touch each other, but I'm not quite sure if this is the right approach.
The text was translated by a translator.
the wolf and iron golem are neutral mobs. peaceful mobs dont attack at all, hostile mobs always attack, and neutral mobs attack only when attacked, or under conditions. try setting it to a creature and giving it "fight attacker mobs back, call for help" onto it.
It really works. The solution to the problem turned out to be quite trivial. I thought creatures couldn't "fight attacker mobs back, call for help", but they can. Thanks