Posted April 22, 201510 yr I am creating a custom mob entity similar to a villager and a custom set of villages. The villages are saved in a VillageCollection class that extends WorldSavedData and the entities extend EntityAgeable (similar to vanilla). I want to set an AI task for the villagers of finding the nearest village, but in order to call the VillageCollection class I need to use the static method VillageCollection.get(world). My question is how do I access world from an instance of an EntityAgeable? I've been able to do this for things like break and place events using breakEvent.world and placeEvent.world, so it seems like something similar ought to be possible for living entities (certainly they need access to the world in order to navigate it!).
April 22, 201510 yr entity.worldObj entity is Entity.class 1.7.10 is no longer supported by forge, you are on your own.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.