Posted February 4, 201411 yr i was wondering do to do it so that you add item to inventory if item is on top op the bluck anyone got any tips??
February 4, 201411 yr Do you have a TileEntity for your block? If so, you can check for EntityItems at the position above your block on the te's updateEntity tick. I would only check every 20-50 ticks or so unless you need it to be speedy for some reason. You can use World.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB) to get all the entity items within a certain bounding box (which you must define). Just look at the classes / methods involved and you will see how they work. http://i.imgur.com/NdrFdld.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.