Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Gets the metadata of the item this Block can drop. This method is called when the block gets destroyed. It
- * returns the metadata of the dropped item based on the old metadata of the block.
- */
- @Override
- public int damageDropped(IBlockState state)
- {
- final IBlockState set0 = IntegratedBlocks.surfaceOres.getDefaultState().withProperty(BlockSOMulti.TYPE, EnumSores.one1); // Desert Bricks
- ItemStack coal = new ItemStack(Items.COAL);
- //Desert Bricks to Desert Bricks
- if (state.getValue(BlockSOMulti.TYPE) == EnumSores.one1)
- {
- return Items.COAL;
- }
- else
- {
- return getMetaFromState(set0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement