Created
May 1, 2011 23:46
-
-
Save BlockAfterBlock/950995 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.minecraft.src; | |
| public class mod_Carpets extends BaseMod | |
| { | |
| public String Version() | |
| { | |
| return "1.5_01"; | |
| } | |
| public static Block BlockCarpet = (new BlockCarpet()).setHardness(0.1F).setStepSound(Block.soundClothFootstep).setBlockName("BlockCarpet"); | |
| public static Block BlockSewingMachine = new BlockSewingMachine(121).setHardness(1.0F).setStepSound(Block.soundWoodFootstep).setBlockName("BlockSewingMachine"); | |
| public static Item WhiteTextile = new Item(241).setIconCoord(5,2).setItemName("WhiteTextile"); | |
| // public static int Carpet = ModLoader.addOverride("/terrain.png", "/Carpets/Carpet.png); | |
| public static int WhiteCarpet = ModLoader.addOverride("/terrain.png", "/Carpets/WhiteCarpet.png"); | |
| public static int BlackCarpet = ModLoader.addOverride("/terrain.png", "/Carpets/BlackCarpet.png"); | |
| public mod_Carpets() | |
| { | |
| /* OBI.addNew(A, B, C, D); | |
| A = item or object --- ##can also be an itemstack. If so, leave out B | |
| B = a integer 1-10 --- ##amount given when crafted | |
| C = a String --------- ##the name of the object | |
| D = the recipe | |
| */ | |
| OBI.addNew(BlockCarpet, "Carpet"); | |
| OBI.addNew(BlockSewingMachine, 1, "Sewing Machine", new Object[] {"XX", 'X', Block.dirt}); | |
| OBI.addNew(new ItemStack(mod_Carpets.BlockCarpet, 10, 0), "White Carpet", new Object[] {"X", 'X', Block.dirt}); | |
| OBI.addNew(new ItemStack(mod_Carpets.BlockCarpet, 10, 1), "Black Carpet", new Object[] {"XX", "X", 'X', Block.dirt}); | |
| OBI.addNew(WhiteTextile, 1, "White Textile", new Object[] {"XX", "XX", 'X', Block.dirt}); | |
| ModLoader.RegisterTileEntity(ContainerSewingMachine.class, "SewingMachine"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment