Advertisement
Eragonn14900

Untitled

Dec 4th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. @Nullable
  2. public Item getItemDropped(IBlockState state, Random rand, int fortune)
  3. {
  4. if (state.getValue(BlockDesertMulti.TYPE) == EnumDesertBlocks.one1)
  5. {
  6. System.out.println("here?");
  7. //return IntegratedBlocks.DesertBlocks.getItemDropped(IntegratedBlocks.DesertBlocks.getDefaultState().withProperty(BlockDesertMulti.TYPE, EnumDesertBlocks.one2), rand, fortune);
  8. return Blocks.DIRT.getItemDropped(Blocks.DIRT.getDefaultState().withProperty(BlockDirt.VARIANT, BlockDirt.DirtType.DIRT), rand, fortune);
  9. }
  10. if (state.getValue(BlockDesertMulti.TYPE) == EnumDesertBlocks.one2)
  11. {
  12. System.out.println("here!");
  13. return IntegratedItems.UncutLBGem;
  14. }
  15. if (state.getValue(BlockDesertMulti.TYPE) == EnumDesertBlocks.one3)
  16. {
  17. System.out.println("here@");
  18. return IntegratedItems.UncutDBGem;
  19. }
  20. else
  21. {
  22. System.out.println("why here?");
  23. return (Item) state;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement