Posted February 15, 201510 yr Hey guys, I've a question: My Item dropItem has metadatas up to 5. How can I tell my block that it drops the Item with metadata 3 or 4 when destroyed? public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { return dropItem; } Can you help me? I would be happy ~Legend
February 15, 201510 yr The first parameter is the metadata value. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
February 15, 201510 yr The first parameter is the metadata value. This isn't useful because the function's return doesn't allow for a metadata specification. Use the getDrops method instead. Do what diesieben said, instead. The other way would be to override public int damageDropped(int meta) as well. But getDrops is the simplest. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.