#Can't find element 'dbcraft:deathbox' of type 'minecraft:entity_type'

3 messages · Page 1 of 1 (latest)

shrewd zinc
#

I am really confused how did I get this error:

Can't find element 'mymod:myentity' of type 'minecraft:entity_type'

when I am trying to /summon the entity on a dedicated server, yet it works on singleplayer!

if anyone know something that I missed, please tell me :'(

object ModEntities {
  val DEATHBOX: EntityType<MyCustomEntity> = Registry.register(
    Registries.ENTITY_TYPE,
    Identifier.of(Mod.id, "myentity"),
    EntityType.Builder.create(
      ::MyCustomEntity,
      SpawnGroup.MISC
    ).dimensions(11f / 16f, 7f / 16f).build(null)
  )
}
signal tulip
#

how did you solve it?

north marlin
#

This is probably because you never load the ModEntities object from your main class. You happen to load it from your client init when you register a renderer, so it works in singleplayer