Posted October 29, 20178 yr This only pulls the total number of villagers, adult and child combined. WorldServer worldServer = DimensionManager.getWorld(player.dimension); Village village = worldServer.getVillageCollection().getNearestVillage(player.getPosition(), 5000); int numVillagers = village.getNumVillagers(); Is there a way to split this into the number of adult villagers and the number of child villagers?
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.