Advertisement
Guest User

crasshhh

a guest
Aug 1st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. main class:
  2.  
  3.  
  4. BlockSlimeOre = new BasicBlock(Material.ROCK, MapColor.STONE, "BlockSlimeOre");
  5. GameRegistry.register(new ItemBlock(BlockSlimeOre));
  6.  
  7. BasicBlock.java:
  8.  
  9. public class BasicBlock extends Block {
  10.  
  11. public BasicBlock(Material blockMaterialIn, MapColor blockMapColorIn, String blockName) {
  12. super(blockMaterialIn, blockMapColorIn);
  13. setCreativeTab(test.testtab);
  14. setRegistryName(blockName.substring(5));
  15. setUnlocalizedName(blockName.substring(5)); // remove "Block" from lang string
  16. //GameRegistry.register(new ItemBlock(this));
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement