Hello i need your help i try to register and Spawn "Custom Mobs" with Vanilla id. Its a Serverside only mod.
Registration
@SubscribeEvent
public void entityRegistration(final RegistryEvent.Register<EntityEntry> event)
{
(I try both seperat) EntityRegistry.registerModEntity(new ResourceLocation("minecraft", "bat"), NEntityBat.class, "superBat", 65, this, 100, 20, false);
(I try both seperat) event.getRegistry().register( EntityEntryBuilder.create().entity(NEntityBat.class).name("superBat").id(new ResourceLocation("minecraft", "bat"), 65).tracker(160, 2, false).build());
}
(NEntityBat extents EntityBat)
Spawning
NEntityBat bat = new NEntityBat(world);
bat.setPosition(loc.getX(),loc.getY(),loc.getZ());
world.spawnEntity(bat);
the Entity flyes arround and is Alive (Debug output from NEntityBat#onUpdate()) but Clintside nothing Happens