Creature type spawning don't work with Mob entity type.

Published by Fredzik on
Issue description

Hello! It's me again.

I was making a monster mob that will spawn not only at night. So I selected "Creature" type spawning. My mob should spawn at day like pigs, cows etc. but I don't see him.

I tried to change his type from "Mob" to "Creature" and it spawned, but when the entity attacked each other, then the game crashed. I knew it before and I know I can't do it like this and I am asking for help.

Issue comments

When possible, attach your MCreator workspace (or even better a minimal example workspace required to reproduce the bug), game logs (full logs, do not crop them, in text format, not screenshots of logs) from the Console tab or terminal and steps to reproduce the bug in your workspace. If logs are long, use service such as Pastebin to host the log and provide the link to the log from the ticket. Please specify which mod elements to check in your workspace too, if applicable.

Now to the issue, I assume you need to remove "Attack targets" AI task.

I don't think I should attach the workspace, because I don't think it the mod problem. If the spawning types are dependent on entity type, so the mob spawning type is useless. And thanks for the suggestion.

And you still did not provide the crash log. If you do not want to cooperate, we will get nowhere.

MeleeAttackGoal

You still have do melee attacks AI task which requires the mob to be monster.

Isn't it like this when I remove melee attack task then the mob won't attack? But thanks, I'll try to remove this.

Yep, that is correct.

I did some code digging and this could be a bug as some mobs are passive but attack in some cases.

So there's a problem with MCreator. The mob spawning type isn't dependent on entity type, am I right?

Mob spawning type is dependent on entity type

The bug is that game crashes when a passive mob does attack

I did some code digging and this could be a bug as some mobs are passive but attack in some cases.

Oh, that means some spawning types should not be selectable, for example for Mob entity type there should not be possibility to select Creature type spawning, so I can't make a monster that spawns at day...

No, you can select any combination of these.

This is the bug:

The bug is that game crashes when a passive (creature) mob does attack

I can't add my workspace. After attaching it and saving it doesn't show up...

So I was able to replicate this. Creature mob types crash the game with melee AI task. This will be fixed in 2020.3. I am closing this ticket now. Thank you for the details and info provided.

You are welcome! I am glad I could help :) If you like what we do, consider donating to us to help us keep this project up.

Thanks :D I really want to donate, but I can't actually do this :/ Maybe in future :)