Started by
MoonHikari
on
Topic category: Help with Minecraft modding (Java Edition)
Hi Friends!
I'm working on a custom entity and i have encountered a strange... bug maybe? I checked the box to have entity crated with a spawn egg but when i go in game to test it istead of the egg being called '[mob name] spawn egg' like i expected it is called 'item.[mod name].[mob name]_spawn_egg' .
Does anyone know how to fix this? I can't see whats wrong. The spawn egg section for the entity code looks like this:
@Override public void initElements() { elements.entities.add(() -> entity); elements.items.add(() -> new SpawnEggItem(entity, -855329, -13395457, new Item.Properties().group(ItemGroup.MISC)) .setRegistryName("berry_cow_spawn_egg")); }
resolved by adding the offending "tem.[mod name].[mob name]_spawn_egg'" to the language files :)