Advertisement
Guest User

MainClass

a guest
Mar 25th, 2013
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.89 KB | None | 0 0
  1. package OliveCraft;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.creativetab.CreativeTabs;
  5. import net.minecraft.item.Item;
  6. import net.minecraft.item.ItemFood;
  7. import cpw.mods.fml.common.Mod;
  8. import cpw.mods.fml.common.network.NetworkMod;
  9. import cpw.mods.fml.common.registry.GameRegistry;
  10. import cpw.mods.fml.common.registry.LanguageRegistry;
  11.  
  12. @Mod(modid = "mod_OliveCraft", name = "OliveCraft", version = "0.1_alpha")
  13. @NetworkMod(clientSideRequired = true, serverSideRequired = false)
  14.  
  15. public class mod_OliveCraft {
  16.    
  17.    
  18.     //Blocks
  19.    
  20.         public static Block OliveBlock;
  21.         public static Item Olive;
  22.         public static Block TutLog;
  23.         public static Block TutLeaf;
  24.         public static Block TutSapling;
  25.        
  26.  
  27.  
  28.     public void load () {}
  29.     {
  30.  
  31.        
  32.     //Blocks
  33.        
  34.         OliveBlock = new  OliveBlock(230).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("OliveBlock");
  35.        
  36.         TutSapling = new TutSapling(451).setHardness(0.5F).setUnlocalizedName("Tut Sapling");
  37.         TutLog = new TutLog(452).setHardness(1.5F).setUnlocalizedName("Tut Log");
  38.         TutLeaf = new TutLeaf(453).setHardness(1.5F).setUnlocalizedName("Tut Leaf");
  39.        
  40.        
  41.     //Items
  42.        
  43.         Olive = new ItemFood(500, 2, false).setUnlocalizedName("Olive");
  44.        
  45.     //Tabs
  46.        
  47.        
  48.        
  49.        
  50.     //LanguageRegistry
  51.        
  52.         LanguageRegistry.addName(OliveBlock, "Aceitunas compactadas");
  53.         LanguageRegistry.addName(Olive, "Aceituna");
  54.        
  55.         LanguageRegistry.addName(TutLeaf, "Tutorial Leaf");
  56.         LanguageRegistry.addName(TutSapling, "Tutorial Sapling");
  57.         LanguageRegistry.addName(TutLog, "Tutorial Log");
  58.        
  59.     //GameRegistry
  60.        
  61.         GameRegistry.registerBlock(OliveBlock, "Aceitunas compactadas");
  62.         GameRegistry.registerItem(Olive, "Aceituna");
  63.        
  64.         GameRegistry.registerBlock(TutLeaf, "TGProject101_TutLeaf");
  65.         GameRegistry.registerBlock(TutSapling, "TGProject101_TutLSapling");
  66.         GameRegistry.registerBlock(TutLog, "TGProject101_TutLog");
  67.        
  68.        
  69.        
  70.     }
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement