Wierd spawn egg problem

Started by MoonHikari on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wierd spawn egg problem

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"));

    }
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
resolved by adding the…
Sat, 04/02/2022 - 05:25

resolved by adding the offending "tem.[mod name].[mob name]_spawn_egg'" to the language files :)