Guest User

Untitled

a guest
Apr 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1.  
  2. package net.minecraft.src;
  3.  
  4. public class mod_gravistone extends BaseModMp{
  5.  
  6.  
  7. public mod_gravistone(){
  8. int gravistoneId=123;
  9. //Adds a new gravity affected block with a cobblestone texture
  10. Block gravistone=new BlockSand(gravistoneId, 16);
  11. //Makes the block usable
  12. ModLoader.RegisterBlock(gravistone);
  13. gravistone.setHardness(0.8F); //Makes the gravistone somewhat resistant
  14. gravistone.setBlockName("gravistone"); //Gives the block an internal name
  15. //Adds a name for the block. This is the name that you will see when you hover over it in your inventory.
  16. ModLoader.AddName(gravistone, "Gravistone");
  17. //Add a recipe for the block, in this case, a cobblestone surrounded by sand.
  18. //Makes 8 gravistone
  19. ModLoader.AddRecipe(new ItemStack(gravistone, 8), new Object[]{
  20. "SSS", "SCS", "SSS",
  21. Character.valueOf('C'), Block.cobblestone,
  22. Character.valueOf('S'), Block.sand
  23. });
  24. }
  25. public String Version(){
  26. return "0.1";
  27. }
  28. public String getVersion(){
  29. return "0.1";
  30. }
  31. }
Add Comment
Please, Sign In to add comment