Jump to content

I want to drop an item with metadata


Recommended Posts

    public Item getItemDropped(IBlockState state, Random rand, int fortune) {
        return Items.COAL;


thats my  code, but i cant figure out how to drop that item with metadata, i tried an new item stack and getitem but than it was also normal coal and there is nothing like .set to set a metadata :C

Link to comment
Share on other sites

Override getDrops

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.