Posted May 6, 20169 yr Hi, I'm wondering how I can get all entities nearby. So when a monster, animal or player is nearby I can push it into my block. (So I've got a block with an tile entity and this should check for nearby entities) Any ideas how I can do this? And is there a class from Minecraft or Forge itself which does it already? Thx in advance. Bektor Developer of Primeval Forest.
May 6, 20169 yr With the world object you can use getEntitiesWithinAABB http://i.imgur.com/J2keQOC.png[/img]http://i.imgur.com/YHnvIfh.png[/img]
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.