Started by
MrMoo100
on
Topic category: Help with Minecraft modding (Java Edition)
In the Java mod that I am making (1.21.8), I need to make an item that spawns mobs on a block with a cooldown (kind of like a spawn egg). However, a strange crash occurs every time I try to spawn my mob when looking at the same mob. This doesn't happen when looking at other mobs though. Is there any way to fix this?
Edited by MrMoo100 on Tue, 12/30/2025 - 01:19
Update: The crash seems to be due to an error when right clicking the entity. I have tried adding a blank script to when the entity is right clicked but it has not helped.
Just fixed it! The crash was because the entity was tameable without a breeding item.
Glad to hear you got it fixed. Would you mind opening a bug report at https://github.com/MCreator/MCreator/issues with explanation on how to reporduce crash if no tame items are specified, so we can take a look at it?