Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Flash Mod:
- Package net.minecraft.src;
- public class mod_ItemMod extends BaseMod {
- public static final Item flashHelmet;
- static {
- flashHelmet = new
- ItemFlashHelmet(4001).setUnlocalizedName("flashHelmet");
- }
- public String getVersion() {
- return "v. 0.1";
- }
- public void load() {
- }
- }
- NEW CLASS:
- package net.minecraft.src;
- public class ItemFlashHelmet extends Item {
- public ItemFlashHelmet(int par1) {
- super(par1);
- }
- }
- package net.minecraft.src;
- public class mod_myMod extends BaseMod
- {
- public void addRecipes()
- {
- ModLoader.addRecipe(new ItemStack(Item.ItemFlashHelmet, 1), new Object[] { "RYR", "RLR", "RYR", 'R', Item.redDye, 'Y', Item.yellowDye, 'L', Item.leatherTunc });
- }
- public void load()
- {
- this.addRecipes();
- }
- public String getVersion()
- {
- return "Version 1.0";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment