Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.network.NetworkMod;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- public class mod_Blocks {
- public static Block Bong;
- public static Block ZCrop;
- public static Item ZSeeds;
- public static Item ZFruit;
- @Init
- public void load(FMLInitializationEvent event){
- GameRegistry.registerBlock(BlockBong);
- LanguageRegistry.addName(BlockBong, "Bong");
- GameRegistry.registerBlock(ZCrop);
- LanguageRegistry.addName(ZCrop, "Z");
- //LangRegisters
- LanguageRegistry.addName(ZSeeds, "Z Seeds");
- LanguageRegistry.addName(ZFruit, "Z Leaf");
- //Declaring
- BlockBong=(new BlockBong(252, 1)).setBlockName("BlockBong").setHardness(2F).setResistance(5F);
- ZCrop = new BlockZCrop(253, 1).setHardness(0F).setBlockName("Z Plant");
- ZSeeds = new ItemZSeeds(254,ZCrop.blockID,Block.tilledField.blockID).setItemName("Z Seeds");
- ZFruit = new ItemZFruit(255, 6, false).setItemName("Z Leaf");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment