Guest User

Untitled

a guest
Nov 29th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Flash Mod:
  2.  
  3. Package net.minecraft.src;
  4.  
  5. public class mod_ItemMod extends BaseMod {
  6.  
  7. public static final Item flashHelmet;
  8.  
  9. static {
  10. flashHelmet = new
  11. ItemFlashHelmet(4001).setUnlocalizedName("flashHelmet");
  12. }
  13.  
  14. public String getVersion() {
  15. return "v. 0.1";
  16. }
  17.  
  18. public void load() {
  19. }
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. NEW CLASS:
  28.  
  29. package net.minecraft.src;
  30.  
  31. public class ItemFlashHelmet extends Item {
  32.  
  33. public ItemFlashHelmet(int par1) {
  34. super(par1);
  35. }
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42. package net.minecraft.src;
  43.  
  44. public class mod_myMod extends BaseMod
  45. {
  46. public void addRecipes()
  47. {
  48. ModLoader.addRecipe(new ItemStack(Item.ItemFlashHelmet, 1), new Object[] { "RYR", "RLR", "RYR", 'R', Item.redDye, 'Y', Item.yellowDye, 'L', Item.leatherTunc });
  49. }
  50.  
  51. public void load()
  52. {
  53. this.addRecipes();
  54. }
  55.  
  56. public String getVersion()
  57. {
  58. return "Version 1.0";
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment