Guest User

Untitled

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