303

Untitled

303
Mar 21st, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. public class mod_alcohol extends BaseMod  {
  4.     public mod_alcohol() {
  5.         ModLoader.SetTickInGame(this, true, true);
  6.     }
  7.  
  8.     public static final Item alcoholItem;
  9.  
  10.     static
  11.     {
  12.         alcoholItem = (new ItemAlcohol(666, 6)).setIconCoord(5, 5).setItemName("winoItem");
  13.     }
  14.  
  15.     public String Version()
  16.     {
  17.         return "1";
  18.     }
  19.  
  20.     public void OnTickInGame(net.minecraft.client.Minecraft game){
  21.         game.thePlayer.kill();
  22.     }
  23.  
  24.     public void AddRecipes(CraftingManager craftingmanager)
  25.     {
  26.         craftingmanager.addRecipe(new ItemStack(alcoholItem), new Object[]{
  27.                 " #", Character.valueOf('#'), Block.dirt
  28.                 });
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment