Advertisement
ShetiPhian

Potionitems

Jul 7th, 2013
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package brenden.eatweirdly;
  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 net.minecraft.potion.Potion;
  8. import net.minecraft.potion.PotionHelper;
  9. import cpw.mods.fml.common.Mod;
  10. import cpw.mods.fml.common.Mod.Instance;
  11. import cpw.mods.fml.common.Mod.PreInit;
  12. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  13. import cpw.mods.fml.common.network.NetworkMod;
  14.  
  15. @Mod(modid="PotionItems",name="Eat Weirdly",version="v1")
  16. @NetworkMod(clientSideRequired=true,serverSideRequired=false)
  17.  
  18. public class Potionitems
  19. {
  20.     @Instance("PotionItems")
  21.     public static Potionitems   INSTANCE;
  22.  
  23.     @PreInit // When you change to 1.6 change this to @EventHandler
  24.     public void preInit(FMLPreInitializationEvent event)
  25.     {
  26.         int replaceId;
  27.  
  28.         replaceId = Item.blazePowder.itemID;
  29.         Item.itemsList[replaceId] = new ItemEatWeirdly(replaceId - 256, 2, 0.3F, true, "SubText", "another line").setNameAndIcon("blazePowder", "blaze_powder").setBrewEffect(PotionHelper.blazePowderEffect).setEatEffect(Potion.damageBoost.id,10, 0, 1.0F);
  30.  
  31.         replaceId = Item.netherStalkSeeds.itemID;
  32.         Item.itemsList[replaceId] = new ItemEatWeirdlySeed(replaceId - 256, 2, 0.3F, Block.netherStalk.blockID, Block.slowSand.blockID, "SubText", "another line", "you can keep adding strings here").setNameAndIcon("netherStalkSeeds", "nether_wart").setBrewEffect("+4").setCreativeTab(CreativeTabs.tabMaterials);
  33.  
  34.  
  35.     }
  36. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement