Jump to content

Mob Spawner won't spawn custom Entity


Fi0x

Recommended Posts

I am generating custom structures and want to set a random spawner type inside them.

That worked fine, until I set the entity to spawn to one of my own entities.

Working code:

logic.setEntityId(new ResourceLocation("Zombie"));

(logic is the MobSpawnerLogic)

 

New code:

logic.setEntityId(new ResourceLocation(Reference.MOD_ID, "Giant"));

The problem is that the spawner block is showing up in the game and the mob rotating inside is the right one, but it won't spawn anything.

 

I used a structure block to get the nbt data from the spawner that was generated and attached it to this post.

nbt_data_via_structure_block.nbt

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.