Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1.  
  2. package net.minecraft.src;
  3.  
  4.  
  5. public class mod_animalfoods extends BaseMod
  6. {
  7.  
  8. public mod_animalfoods()
  9. {
  10.  
  11. //Do texture override also for all of these.
  12. BaconRaw.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlackPac/BaconRaw.png");
  13. BeefRaw.iconIndex = ModLoader.addOverride("/gui/items.png", "GlackPac/BeefRaw.png");
  14. ChickenRaw.iconIndex = ModLoader.addOverride("/gui/items.png", "GlackPac/ChickenRaw.png");
  15. BaconCooked.iconIndex = ModLoader.addOverride("/gui/items.png", "GlackPac/BaconCooked.png");
  16. BeefCooked.iconIndex = ModLoader.addOverride("/gui/items.png", "GlackPac/BeefCooked.png");
  17. ChickenCooked.iconIndex = ModLoader.addOverride("/gui/items.png", "GlackPac/ChickenCooked.png");
  18. ModLoader.AddName(BaconRaw, "Raw Bacon");
  19. ModLoader.AddName(BeefRaw, "Raw Beef");
  20. ModLoader.AddName(ChickenRaw, "Raw Chicken");
  21. ModLoader.AddName(BaconCooked, "Cooked Bacon");
  22. ModLoader.AddName(BeefCooked, "Cooked Beef");
  23. ModLoader.AddName(ChickenCooked, "Cooked Chicken");
  24. ModLoader.AddSmelting(Item.BaconRaw.shiftedIndex, new ItemStack(Item.BaconCooked));
  25. ModLoader.AddSmelting(Item.BeefRaw.shiftedIndex, new ItemStack(Item.BeefCooked));
  26. Modloader.AddSmelting(Item.ChickenRaw.shiftedIndex, new ItemStack(Item.ChickenCooked));
  27. }
  28.  
  29. public String Version()
  30. {
  31. return "Beta 1.7.# - By GlackPac";
  32. }
  33. {
  34. // Do it for all of these, like i did Bacon Raw.
  35. public static Item BaconRaw = new BaconRaw(5001).setItemName("BaconRaw");
  36. public static Item BeefRaw = new BeefRaw(5002).setItemName("BeefRaw");
  37. public static Item ChickenRaw = new ChickenRaw(5003).setItemName("ChickenRaw");
  38. public static Item BaconCooked = new BaconCooked(5004).setItemName("BaconCooked");
  39. public static Item BeefCooked = new BeefCooked(5005).setItemName("BeefCooked");
  40. public static Item ChickenCooked = new ChickenCooked(5006).setItemName("ChickenCooked");
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement