Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class mod_gravistone extends BaseModMp{
- public void load() {
- int gravistoneId=123;
- //Adds a new gravity affected block with a cobblestone texture
- Block gravistone=new BlockSand(gravistoneId, 16);
- //Makes the block usable
- ModLoader.RegisterBlock(gravistone);
- gravistone.setHardness(0.8F); //Makes the gravistone somewhat resistant
- gravistone.setBlockName("gravistone"); //Gives the block an internal name
- //Adds a name for the block. This is the name that you will see when you hover over it in your inventory.
- //ModLoader.AddName(gravistone, "Gravistone");
- //Add a recipe for the block, in this case, a cobblestone surrounded by sand.
- //Makes 8 gravistone
- ModLoader.AddRecipe(new ItemStack(gravistone, 8), new Object[]{
- "SSS", "SCS", "SSS",
- Character.valueOf('C'), Block.cobblestone,
- Character.valueOf('S'), Block.sand
- });
- }
- public mod_gravistone(){
- load();
- }
- public String Version(){
- return "0.1";
- }
- public String getVersion(){
- return "0.1";
- }
- }
Add Comment
Please, Sign In to add comment