Hi,
I'm trying out minecraft forge for a new mod. However I'm having trouble getting mob spawning to work. I'm not using a custom mob, just trying to get a sheep to spawn in the world. However when I do that the mob doesn't seem to get properly spawned: it doesn't move, react and there's no collisions.
I have the following, very simple code that executes in an object that implements the ITickHandler interface, specifically the tickStart method. The tick handler is registered with the TickFactory using Side.SERVER.
The sheep appears, but doesn't do anything. I've looked over other code in the source and examples elsewhere and this seems like it should work.
I've seen references to checking world.isRemote but that now seems to always return true. I've also tried checking FMLCommonHandler.instance().getEffectiveSide() and have confirmed that is Side.SERVER when the code is running. So as far as I can tell the sheep should be spawning on the server side.
I've seen other people have similar problems, so I'm guessing I'm overlooking something simple. Anyone have any ideas?
Update: I've noticed that the World object returned by Minecraft.theWorld is an instance of WorldClient. I'm guessing this might be the issue. Assuming that is the problem, how do I reliably get access to the server world?