Started by
JustGameIn
on
Topic category: Advanced modding
I created a structure and I added in a witch spawner but when it spawns into the world, it turns into a pig spawner. I also changed the metadata of the spawner in the code but it still does not work.
k + 5), Block.getBlockById(52).getStateFromMeta(66), 3);
The mob that the spawner spawns is not defined by its metadata. It is actually stored in its TileEntity.
You actually need to get the TileEntity, get its instance of MobSpawnerBaseLogic and set string name of your desired entity using MobSpawnerBaseLogic#setEntityName()
can you explain it a little bit better.
i tried a couple of things but they didn't seem to work...
i know a bit of coding.