Posted August 26, 201213 yr I have been attempting to make an item drop at given co-ordinates from a block upon power, but have only been able to make the block drop a block as an item. i have been using this:- CompactWheat.dropBlockAsItem(world, x, y + 1, z, 3, 3); The Compact wheat is simply my block equivalent of the Wheat item, and is exchangeable in a Crafting grid. if anyone can help me on this matter, it would be greatly appreciated. Thank-you in advance
August 26, 201213 yr You are calling dropBlockAsItem on your CompactWheat, which will indeed drop CompactWheat at the location. Is that not what you are intending?
August 27, 201213 yr Then make an EntityItem of your wheat and add it to the world. Look at the dropBlockAsItem function to see how it is done.
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.