Posted June 27, 201510 yr Hello, I want to find out is an item is laying on the block ... How should i do that ? BTW: i know laying item is an entity ... Thx in advance I'm beginner in java and in minecraft modding. Please be specific. Any code examples are appreciated. Sorry for my english i'm from Czech republic. Please hit that thank you button if i helped
June 27, 201510 yr Author Yes on a block and with no tile entity ... I'm beginner in java and in minecraft modding. Please be specific. Any code examples are appreciated. Sorry for my english i'm from Czech republic. Please hit that thank you button if i helped
June 27, 201510 yr when do you want it? on random tick? maybe World#getEntitiesWithinAABB can help you
June 27, 201510 yr Author I want to do it in onBlockActivated Method I'm beginner in java and in minecraft modding. Please be specific. Any code examples are appreciated. Sorry for my english i'm from Czech republic. Please hit that thank you button if i helped
June 27, 201510 yr you are getting a worldobj inside that method. use that and iterate over the list from getEntitiesWithinAABB
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.