Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Killjoy0593

Killjoy0593

Members
 View Profile  See their activity
  • Content Count

    11
  • Joined

    October 29, 2013
  • Last visited

    December 10, 2013

Community Reputation

0 Neutral

About Killjoy0593

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!
  1. Killjoy0593

    Custom Door Help?

    Killjoy0593 replied to Killjoy0593's topic in Modder Support

    Fast Learner just started learning Java 2 weeks ago.
    • December 3, 2013
    • 6 replies
  2. Killjoy0593

    Custom Door Help?

    Killjoy0593 replied to Killjoy0593's topic in Modder Support

    Thanks Man, Figured It Out Here's The Code For Those Who Are Struggling With This Main Class //Making The Door And Item public final static Block AdobeDoor = new AdobeDoor(900, Material.rock) .setHardness(2.0F).setResistance(10.0F) .setStepSound(Block.soundStoneFootstep) .setUnlocalizedName("adobe_door"); public final static Item AdobeDoorItem = new AdobeDoorItem(901, AdobeDoor) .setUnlocalizedName("adobe_door_icon"); //Registering The Door And Items LanguageRegistry.addName(AdobeDoorItem, "Adobe Door"); GameRegistry.registerBlock(AdobeDoor, "AdobeDoor"); LanguageRegistry.addName(AdobeDoor, "Adobe Door"); Item Class package SavageCraft.Adobe; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemDoor; import net.minecraft.item.ItemStack; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class AdobeDoorItem extends Item { public Block doorBlock; public AdobeDoorItem(int par1, Block block) { super(par1); this.doorBlock = block; this.maxStackSize = 1; this.setCreativeTab(CreativeTabs.tabRedstone); } public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (par7 != 1) { return false; } else { ++par5; Block block = this.doorBlock; if (par2EntityPlayer.canPlayerEdit(par4, par5, par6, par7, par1ItemStack) && par2EntityPlayer.canPlayerEdit(par4, par5 + 1, par6, par7, par1ItemStack)) { if (!block.canPlaceBlockAt(par3World, par4, par5, par6)) { return false; } else { int i1 = MathHelper .floor_double((double) ((par2EntityPlayer.rotationYaw + 180.0F) * 4.0F / 360.0F) - 0.5D) & 3; ItemDoor.placeDoorBlock(par3World, par4, par5, par6, i1, block); --par1ItemStack.stackSize; return true; } } else { return false; } } } @Override public void registerIcons(IconRegister iconRegister) { itemIcon = iconRegister.registerIcon(AdobeInfo.NAME.toLowerCase() + ":adobe_door_icon"); } } Door block Class package SavageCraft.Adobe; import java.util.Random; import net.minecraft.block.BlockDoor; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.IconFlipped; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; public class AdobeDoor extends BlockDoor { public Item placerItem; public Icon topDoorIcon; public Icon[] flippedIcons = new Icon[2]; public AdobeDoor(int par1, Material par2Material) { super(par1, par2Material); float f = 0.5F; float f1 = 1.0F; this.setLightOpacity(0); this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f1, 0.5F + f); } public Icon getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) { if (par5 == 1 || par5 == 0) { return this.blockIcon; } int meta = getFullMetadata(par1IBlockAccess, par2, par3, par4); boolean flag = (meta & 4) != 0; int halfMeta = meta & 3; boolean flipped = false; if (flag) { if (halfMeta == 0 && par5 == 2) flipped = !flipped; else if (halfMeta == 1 && par5 == 5) flipped = !flipped; else if (halfMeta == 2 && par5 == 3) flipped = !flipped; else if (halfMeta == 3 && par5 == 4) flipped = !flipped; } else { if (halfMeta == 0 && par5 == 5) flipped = !flipped; else if (halfMeta == 1 && par5 == 3) flipped = !flipped; else if (halfMeta == 2 && par5 == 4) flipped = !flipped; else if (halfMeta == 3 && par5 == 2) flipped = !flipped; if ((meta & 16) != 0) flipped = !flipped; } if (flipped) return flippedIcons[(meta & != 0 ? 1 : 0]; else return (meta & != 0 ? this.topDoorIcon : this.blockIcon; } public Icon getIcon(int par1, int par2) { return this.blockIcon; } @Override public void registerIcons(IconRegister iconRegister) { this.blockIcon = iconRegister.registerIcon(AdobeInfo.NAME.toLowerCase() + ":adobe_door_lower"); this.topDoorIcon = iconRegister.registerIcon(AdobeInfo.NAME .toLowerCase() + ":adobe_door_upper"); this.flippedIcons[0] = new IconFlipped(blockIcon, true, false); this.flippedIcons[1] = new IconFlipped(topDoorIcon, true, false); } public int idPicked(World par1World, int par2, int par3, int par4) { return AdobeBlock.AdobeDoorItem.itemID; } public int idDropped(int par1, Random par2Random, int par3) { return (par1 & != 0 ? 0 : (AdobeBlock.AdobeDoorItem.itemID); } //Remove This Below If You Want It To Open Like A Wooden Door public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { return false; } }
    • December 3, 2013
    • 6 replies
  3. Killjoy0593

    Custom Door Help?

    Killjoy0593 replied to Killjoy0593's topic in Modder Support

    I want to create a new door. with the material of rock, my own texture, name, and id. Doesn't it use the texture-map?
    • December 3, 2013
    • 6 replies
  4. Killjoy0593

    Custom Door Help?

    Killjoy0593 posted a topic in Modder Support

    Okay so im trying to add a door to my mod, but i have had no success, ive tried extending, i've tried making new door class files, and no luck, anybody know how to add them in? be much appreciated
    • December 3, 2013
    • 6 replies
  5. Killjoy0593

    Adobe Blocks [1.6.4]

    Killjoy0593 posted a topic in Mods

    http://static.minecraftforum.net//public/style_emoticons/default/steve_csi.gif[/img]Adobe Blocks Author: BaneSavage AKA Killjoy0593 Required: Forge9.11.1.953 [http://tinyurl.com/lsc7uzx] Download: http://adf.ly/5536032/adobeblocks Installation: Drop Into Your Mods Folder And Play Please Donate If You Will: http://tinyurl.com/pg53jks http://static.minecraftforum.net//public/style_emoticons/default/steve_rage.gif[/img] After A Few Of These! http://static.minecraftforum.net//public/style_emoticons/default/steve_shocked.gif[/img] A Few Of These! http://static.minecraftforum.net//public/style_emoticons/default/steve_lol.gif[/img] And A Few Of These! http://static.minecraftforum.net//public/style_emoticons/default/steve_csi.gif[/img] I Finally Have My First Published Mod, And It Adds The Following! - Furnace Cooks 20% Faster - Tools Are The Same As Wood But Have 88 Durability Instead Of 59 [spoiler=Adobe Mixture] [spoiler=Adobe Brick Item] [spoiler=Adobe Brick Block] [spoiler=Adobe Furnace]Cooks 20% Faster Than That A Regular Furnace. [spoiler=Adobe Wall] [spoiler=Adobe Stairs] [spoiler=Adobe Slabs] [spoiler=Adobe Tools] http://static.minecraftforum.net//public/style_emoticons/default/steve_csi.gif[/img] And Here Are The Recipes Below! [spoiler=Adobe Mixture] [spoiler=Adobe Brick Item] [spoiler=Adobe Brick Block] [spoiler=Adobe Furnace] [spoiler=Adobe Walls] [spoiler=Adobe Stairs] [spoiler=Adobe Slabs] [spoiler=Adobe Tools]Made Like Regular Tools - Sword - Pickaxe - Axe - Shovel - Hoe Durability = 88 Mining Level = 0
    • November 26, 2013
    • 1 reply
  6. Killjoy0593

    How to texture items/blocks

    Killjoy0593 replied to laziecalvin's topic in Modder Support

    Seriously Dude? You don't know how to add textures? sigh, post your code. So i know EXACTLy what you are doing wrong. P.S - ALWAYS post your code when asking for help Involving code
    • November 25, 2013
    • 8 replies
  7. Killjoy0593

    Furnace Icon Wont Show Correctly [Sovled]

    Killjoy0593 replied to Killjoy0593's topic in Modder Support

    It's really irritating to have such a small issue >.<
    • November 25, 2013
    • 1 reply
  8. Killjoy0593

    Furnace Icon Wont Show Correctly [Sovled]

    Killjoy0593 posted a topic in Modder Support

    For Some Reason It Wont Show The Furnace_Front Texture On The Icon In The Inventory Furnace Block Class package Adobe; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.Icon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class AdobeFurnace extends BlockContainer { /** * Is the random generator used by furnace to drop the inventory contents in random directions. */ private final Random furnaceRand = new Random(); /** True if this is an active furnace, false if idle */ private final boolean isActive; /** * This flag is used to prevent the furnace inventory to be dropped upon block removal, is used internally when the * furnace block changes from idle to active and vice-versa. */ private static boolean keepFurnaceInventory; @SideOnly(Side.CLIENT) private Icon furnaceIconTop; private Icon furnaceIconFront; protected AdobeFurnace(int par1, boolean par2) { super(par1, Material.rock); this.isActive = par2; } /** * Returns the ID of the items to drop on destruction. */ public int idDropped(int par1, Random par2Random, int par3) { return AdobeBlock.AdobeFurnaceOFF.blockID; } /** * Called whenever the block is added into the world. Args: world, x, y, z */ public void onBlockAdded(World par1World, int par2, int par3, int par4) { super.onBlockAdded(par1World, par2, par3, par4); this.setDefaultDirection(par1World, par2, par3, par4); } /** * set a blocks direction */ private void setDefaultDirection(World par1World, int par2, int par3, int par4) { if (!par1World.isRemote) { int l = par1World.getBlockId(par2, par3, par4 - 1); int i1 = par1World.getBlockId(par2, par3, par4 + 1); int j1 = par1World.getBlockId(par2 - 1, par3, par4); int k1 = par1World.getBlockId(par2 + 1, par3, par4); byte b0 = 3; if (Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1]) { b0 = 3; } if (Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l]) { b0 = 2; } if (Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1]) { b0 = 5; } if (Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1]) { b0 = 4; } par1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 2); } } @SideOnly(Side.CLIENT) /** * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata */ public Icon getIcon(int par1, int par2) { return par1 == 1 ? this.furnaceIconTop : par1 == 0 ? this.furnaceIconTop : par1 != par2 ? this.blockIcon : this.furnaceIconFront; } @SideOnly(Side.CLIENT) /** * When this method is called, your block should register all the icons it needs with the given IconRegister. This * is the only chance you get to register icons. */ public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("Adobe:furnace_side"); this.furnaceIconFront = par1IconRegister.registerIcon(this.isActive ? "Adobe:furnace_front_on" : "Adobe:furnace_front_off"); this.furnaceIconTop = par1IconRegister.registerIcon("Adobe:furnace_top"); } /** * Called upon block activation (right click on the block.) */ public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { TileEntity tile_entity = world.getBlockTileEntity(x, y, z); if (tile_entity == null || player.isSneaking()) { return false; } player.openGui(AdobeBlock.instance, 0, world, x, y, z); return true; } /** * Update which block ID the furnace is using depending on whether or not it is burning */ public static void updateFurnaceBlockState(boolean par0, World par1World, int par2, int par3, int par4) { int l = par1World.getBlockMetadata(par2, par3, par4); TileEntity tileentity = par1World.getBlockTileEntity(par2, par3, par4); keepFurnaceInventory = true; if (par0) { par1World.setBlock(par2, par3, par4, AdobeBlock.AdobeFurnaceON.blockID); } else { par1World.setBlock(par2, par3, par4, AdobeBlock.AdobeFurnaceOFF.blockID); } keepFurnaceInventory = false; par1World.setBlockMetadataWithNotify(par2, par3, par4, l, 2); if (tileentity != null) { tileentity.validate(); par1World.setBlockTileEntity(par2, par3, par4, tileentity); } } @SideOnly(Side.CLIENT) /** * A randomly called display update to be able to add particles or other items for display */ public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) { if (this.isActive) { int l = par1World.getBlockMetadata(par2, par3, par4); float f = (float)par2 + 0.5F; float f1 = (float)par3 + 0.0F + par5Random.nextFloat() * 6.0F / 16.0F; float f2 = (float)par4 + 0.5F; float f3 = 0.52F; float f4 = par5Random.nextFloat() * 0.6F - 0.3F; if (l == 4) { par1World.spawnParticle("smoke", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); } else if (l == 5) { par1World.spawnParticle("smoke", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); } else if (l == 2) { par1World.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D); } else if (l == 3) { par1World.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D); par1World.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D); } } } /** * Returns a new instance of a block's tile entity class. Called on placing the block. */ public TileEntity createNewTileEntity(World par1World) { return new TileEntityAdobeFurnace(); } /** * Called when the block is placed in the world. */ public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack) { int l = MathHelper.floor_double((double)(par5EntityLivingBase.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; if (l == 0) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2); } if (l == 1) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2); } if (l == 2) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2); } if (l == 3) { par1World.setBlockMetadataWithNotify(par2, par3, par4, 4, 2); } if (par6ItemStack.hasDisplayName()) { ((TileEntityAdobeFurnace)par1World.getBlockTileEntity(par2, par3, par4)).setGuiDisplayName(par6ItemStack.getDisplayName()); } } /** * Called on server worlds only when the block has been replaced by a different block ID, or the same block with a * different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old * metadata */ public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6) { if (!keepFurnaceInventory) { TileEntityAdobeFurnace tileentityfurnace = (TileEntityAdobeFurnace)par1World.getBlockTileEntity(par2, par3, par4); if (tileentityfurnace != null) { for (int j1 = 0; j1 < tileentityfurnace.getSizeInventory(); ++j1) { ItemStack itemstack = tileentityfurnace.getStackInSlot(j1); if (itemstack != null) { float f = this.furnaceRand.nextFloat() * 0.8F + 0.1F; float f1 = this.furnaceRand.nextFloat() * 0.8F + 0.1F; float f2 = this.furnaceRand.nextFloat() * 0.8F + 0.1F; while (itemstack.stackSize > 0) { int k1 = this.furnaceRand.nextInt(21) + 10; if (k1 > itemstack.stackSize) { k1 = itemstack.stackSize; } itemstack.stackSize -= k1; EntityItem entityitem = new EntityItem(par1World, (double)((float)par2 + f), (double)((float)par3 + f1), (double)((float)par4 + f2), new ItemStack(itemstack.itemID, k1, itemstack.getItemDamage())); if (itemstack.hasTagCompound()) { entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy()); } float f3 = 0.05F; entityitem.motionX = (double)((float)this.furnaceRand.nextGaussian() * f3); entityitem.motionY = (double)((float)this.furnaceRand.nextGaussian() * f3 + 0.2F); entityitem.motionZ = (double)((float)this.furnaceRand.nextGaussian() * f3); par1World.spawnEntityInWorld(entityitem); } } } par1World.func_96440_m(par2, par3, par4, par5); } } super.breakBlock(par1World, par2, par3, par4, par5, par6); } /** * If this returns true, then comparators facing away from this block will use the value from * getComparatorInputOverride instead of the actual redstone signal strength. */ public boolean hasComparatorInputOverride() { return true; } /** * If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal * strength when this block inputs to a comparator. */ public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5) { return Container.calcRedstoneFromInventory((IInventory)par1World.getBlockTileEntity(par2, par3, par4)); } @SideOnly(Side.CLIENT) /** * only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) */ public int idPicked(World par1World, int par2, int par3, int par4) { return AdobeBlock.AdobeFurnaceOFF.blockID; } } Main Class package Adobe; import net.minecraft.block.Block; import net.minecraft.block.BlockHalfSlab; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemSlab; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="AdobeInfo.ID", name="AdobeInfo.NAME", version="AdobeInfo.VERS") @NetworkMod(clientSideRequired=true, serverSideRequired=false, channels = {"AdobeBlock"}, packetHandler = AdobePacketHandler.class) public class AdobeBlock { public final static Block AdobeClayBlock = new AdobeClayBlock(500, Material.rock).setHardness(2.0F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeBlock").setCreativeTab(CreativeTabs.tabBlock).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_block"); public final static Block AdobeHalfSlab = new AdobeHalfSlab(501, false, Material.rock).setHardness(2.0F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeHalfSlab").setCreativeTab(CreativeTabs.tabBlock).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_block"); public final static Block AdobeHalfSlabDouble = new AdobeHalfSlab(502, true, Material.rock).setHardness(2.0F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeHalfSlabDouble").setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_block"); public final static Block AdobeStair = new AdobeStair(503, AdobeBlock.AdobeClayBlock, 0).setUnlocalizedName("AdobeStair"); public final static Item AdobeBrick = new AdobeBrick(504).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_brick"); public final static Item AdobeMixture = new AdobeMixture(505).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_mixture"); //Adobe Furnace public final static Block AdobeFurnaceOFF = new AdobeFurnace(506, false).setHardness(3.5F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeFurnaceOFF").setCreativeTab(CreativeTabs.tabDecorations); public final static Block AdobeFurnaceON = new AdobeFurnace(507, true).setHardness(3.5F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeFurnaceON").setLightValue(0.875F); // The instance of your mod that Forge uses. @Instance("AdobeInfo.ID") public static AdobeBlock instance = new AdobeBlock(); private GuiHandler guihandler = new GuiHandler(); // Says where the client and server 'proxy' code is loaded. @SidedProxy(clientSide="Adobe.client.ClientProxy", serverSide="Adobe.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { // Stub Method } @EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); GameRegistry.registerItem(AdobeBrick, "AdobeBrick"); LanguageRegistry.addName(AdobeBrick, "Adobe Brick"); GameRegistry.registerItem(AdobeMixture, "AdobeMixture"); LanguageRegistry.addName(AdobeMixture, "Adobe Mixture"); GameRegistry.registerBlock(AdobeClayBlock, "AdobeClayBlock"); LanguageRegistry.addName(AdobeClayBlock, "Adobe Brick"); MinecraftForge.setBlockHarvestLevel(AdobeClayBlock, "pickaxe", 0); GameRegistry.registerBlock(AdobeHalfSlab, "AdobeHalfSlab"); LanguageRegistry.addName(AdobeHalfSlab, "Adobe Brick Half Slab"); MinecraftForge.setBlockHarvestLevel(AdobeHalfSlab, "pickaxe", 0); GameRegistry.registerBlock(AdobeHalfSlabDouble, "AdobeHalfSlabDouble"); LanguageRegistry.addName(AdobeHalfSlabDouble, "Adobe Brick Double Slab"); MinecraftForge.setBlockHarvestLevel(AdobeHalfSlabDouble, "pickaxe", 0); ItemStack DirtStack = new ItemStack(Block.dirt); ItemStack SandStack = new ItemStack(Block.sand); ItemStack WaterBucket = new ItemStack(Item.bucketWater); ItemStack AdobeMixtureSingle = new ItemStack(AdobeBlock.AdobeMixture); ItemStack AdobeMixtureStack = new ItemStack(AdobeBlock.AdobeMixture, 32); ItemStack AdobeBrick = new ItemStack(AdobeBlock.AdobeBrick); ItemStack AdobeClayBlock = new ItemStack(AdobeBlock.AdobeClayBlock); ItemStack AdobeHalfSlab = new ItemStack(AdobeBlock.AdobeHalfSlab); GameRegistry.addRecipe(AdobeMixtureStack, "yxx", "yzx", "yyx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xxx", "yzx", "yyy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xxx", "xzy", "yyy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xxy", "xzy", "xyy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xyy", "xzy", "xxy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "yyy", "xzy", "xxx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "yyy", "yzx", "xxx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "yyx", "yzx", "yxx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); //Stairs and Slabs ItemStack AdobeStairStack = new ItemStack(AdobeBlock.AdobeStair, 4); ItemStack AdobeSlabStack = new ItemStack(AdobeBlock.AdobeHalfSlab, 6); GameRegistry.registerBlock(AdobeStair, "AdobeStair"); LanguageRegistry.addName(AdobeStair, "Adobe Brick Stairs"); MinecraftForge.setBlockHarvestLevel(AdobeStair, "pickaxe", 0); GameRegistry.addRecipe(AdobeStairStack, " x", " xx", "xxx", 'x', AdobeClayBlock); GameRegistry.addRecipe(AdobeSlabStack, "xxx", "xxx", 'x', AdobeClayBlock); GameRegistry.addSmelting(AdobeBlock.AdobeMixture.itemID, AdobeBrick, 0.3F); GameRegistry.addRecipe(AdobeClayBlock, "xx", "xx", 'x', AdobeBrick); //Adobe Furnace ItemStack Furnace = new ItemStack(Block.furnaceIdle); ItemStack AdobeFurnace = new ItemStack(AdobeBlock.AdobeFurnaceOFF); GameRegistry.registerBlock(AdobeFurnaceOFF, "AdobeFurnaceOFF"); LanguageRegistry.addName(AdobeFurnaceOFF, "Adobe Furnace"); MinecraftForge.setBlockHarvestLevel(AdobeFurnaceOFF, "pickaxe", 0); GameRegistry.registerBlock(AdobeFurnaceON, "AdobeFurnaceON"); LanguageRegistry.addName(AdobeFurnaceON, "Adobe Furnace On"); MinecraftForge.setBlockHarvestLevel(AdobeFurnaceON, "pickaxe", 0); GameRegistry.registerTileEntity(TileEntityAdobeFurnace.class, "tileentitytutfurnace"); NetworkRegistry.instance().registerGuiHandler(this, guihandler); GameRegistry.addRecipe(AdobeFurnace, "xxx", "xyx", "xxx", 'x', AdobeClayBlock, 'y', Furnace); } @EventHandler public void postInit(FMLPostInitializationEvent event) { Item.itemsList[AdobeBlock.AdobeHalfSlab.blockID] = new ItemSlab(AdobeBlock.AdobeHalfSlab.blockID - 256, (BlockHalfSlab)AdobeBlock.AdobeHalfSlab, (BlockHalfSlab)AdobeBlock.AdobeHalfSlabDouble, false).setUnlocalizedName("AdobeHalfSlab"); LanguageRegistry.instance().addStringLocalization(((Adobe.AdobeHalfSlab)AdobeBlock.AdobeHalfSlab).getFullSlabName(0)+".name", "Adobe Brick Slab"); } } Result
    • November 25, 2013
    • 1 reply
  9. Killjoy0593

    Slab Name Issue [SOLVED]

    Killjoy0593 replied to Killjoy0593's topic in Modder Support

    Thanks, This Was The Full Code When I Fixed All Issues. The Name And Not Getting The Slab When Middle Clicking. package Adobe; import net.minecraft.block.Block; import net.minecraft.block.BlockHalfSlab; import net.minecraft.block.material.Material; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class AdobeHalfSlab extends BlockHalfSlab { public AdobeHalfSlab(int par1, boolean par2, Material par3Material) { super(par1, par2, par3Material); this.useNeighborBrightness[blockID] = true; } @Override public String getFullSlabName(int i) { return (AdobeInfo.NAME.toLowerCase() + ":adobe_block"); } @SideOnly(Side.CLIENT) private static boolean isBlockSingleSlab(int par0) { return par0 == AdobeBlock.AdobeHalfSlab.blockID; } /** * Returns the slab block name with step type. */ public int getDamageValue(World par1World, int par2, int par3, int par4) { return super.getDamageValue(par1World, par2, par3, par4) & 7; } public int idPicked(World par1World, int par2, int par3, int par4) { return isBlockSingleSlab(this.blockID) ? this.blockID : (this.blockID == AdobeBlock.AdobeHalfSlabDouble.blockID ? AdobeBlock.AdobeHalfSlab.blockID : (this.blockID == Block.woodDoubleSlab.blockID ? Block.woodSingleSlab.blockID : Block.stoneSingleSlab.blockID)); } }
    • November 25, 2013
    • 6 replies
  10. Killjoy0593

    Slab Name Issue [SOLVED]

    Killjoy0593 replied to Killjoy0593's topic in Modder Support

    Somebody? Please..
    • November 25, 2013
    • 6 replies
  11. Killjoy0593

    Slab Name Issue [SOLVED]

    Killjoy0593 posted a topic in Modder Support

    I've Been trying to fix this a while now and nothing works, Can somebody please tell me what im doing wrong as to why the name wont show? Main Class package Adobe; import net.minecraft.block.Block; import net.minecraft.block.BlockHalfSlab; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemSlab; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="AdobeInfo.ID", name="AdobeInfo.NAME", version="AdobeInfo.VERS") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class AdobeBlock { public final static Block AdobeClayBlock = new AdobeClayBlock(500, Material.rock).setHardness(2.0F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeBlock").setCreativeTab(CreativeTabs.tabBlock).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_block"); public final static Block AdobeHalfSlab = new AdobeHalfSlab(501, false, Material.rock).setHardness(2.0F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeHalfSlab").setCreativeTab(CreativeTabs.tabBlock).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_block"); public final static Block AdobeHalfSlabDouble = new AdobeHalfSlab(502, true, Material.rock).setHardness(2.0F).setResistance(10.0F).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("AdobeHalfSlabDouble").setCreativeTab(CreativeTabs.tabBlock).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_block"); public final static Block AdobeStair = new AdobeStair(503, AdobeBlock.AdobeClayBlock, 0).setUnlocalizedName("AdobeStair"); public final static Item AdobeBrick = new AdobeBrick(504).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_brick"); public final static Item AdobeMixture = new AdobeMixture(505).setTextureName(AdobeInfo.NAME.toLowerCase() + ":adobe_mixture"); // The instance of your mod that Forge uses. @Instance("AdobeBlock") public static AdobeBlock instance; // Says where the client and server 'proxy' code is loaded. @SidedProxy(clientSide="Adobe.client.ClientProxy", serverSide="Adobe.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { // Stub Method } @EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); GameRegistry.registerItem(AdobeBrick, "AdobeBrick"); LanguageRegistry.addName(AdobeBrick, "Adobe Brick"); GameRegistry.registerItem(AdobeMixture, "AdobeMixture"); LanguageRegistry.addName(AdobeMixture, "Adobe Mixture"); GameRegistry.registerBlock(AdobeClayBlock, "AdobeClayBlock"); LanguageRegistry.addName(AdobeClayBlock, "Adobe Brick"); MinecraftForge.setBlockHarvestLevel(AdobeClayBlock, "pickaxe", 0); GameRegistry.registerBlock(AdobeHalfSlab, "AdobeHalfSlab"); LanguageRegistry.addName(AdobeHalfSlab, "Adobe Brick Half Slab"); MinecraftForge.setBlockHarvestLevel(AdobeHalfSlab, "pickaxe", 0); GameRegistry.registerBlock(AdobeHalfSlabDouble, "AdobeHalfSlabDouble"); LanguageRegistry.addName(AdobeHalfSlabDouble, "Adobe Brick Double Slab"); MinecraftForge.setBlockHarvestLevel(AdobeHalfSlabDouble, "pickaxe", 0); ItemStack DirtStack = new ItemStack(Block.dirt); ItemStack SandStack = new ItemStack(Block.sand); ItemStack WaterBucket = new ItemStack(Item.bucketWater); ItemStack AdobeMixtureSingle = new ItemStack(AdobeBlock.AdobeMixture); ItemStack AdobeMixtureStack = new ItemStack(AdobeBlock.AdobeMixture, 32); ItemStack AdobeBrick = new ItemStack(AdobeBlock.AdobeBrick); ItemStack AdobeClayBlock = new ItemStack(AdobeBlock.AdobeClayBlock); ItemStack AdobeHalfSlab = new ItemStack(AdobeBlock.AdobeHalfSlab); GameRegistry.addRecipe(AdobeMixtureStack, "yxx", "yzx", "yyx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xxx", "yzx", "yyy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xxx", "xzy", "yyy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xxy", "xzy", "xyy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "xyy", "xzy", "xxy", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "yyy", "xzy", "xxx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "yyy", "yzx", "xxx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); GameRegistry.addRecipe(AdobeMixtureStack, "yyx", "yzx", "yxx", 'x', DirtStack, 'y', SandStack, 'z', WaterBucket); //Stairs ItemStack AdobeStairStack = new ItemStack(AdobeBlock.AdobeStair, 4); GameRegistry.registerBlock(AdobeStair, "AdobeStair"); LanguageRegistry.addName(AdobeStair, "Adobe Brick Stairs"); MinecraftForge.setBlockHarvestLevel(AdobeStair, "pickaxe", 0); GameRegistry.addRecipe(AdobeStairStack, " x", " xx", "xxx", 'x', AdobeClayBlock); GameRegistry.addSmelting(AdobeBlock.AdobeMixture.itemID, AdobeBrick, 0.3F); GameRegistry.addRecipe(AdobeClayBlock, "xx", "xx", 'x', AdobeBrick); } @EventHandler public void postInit(FMLPostInitializationEvent event) { Item.itemsList[AdobeBlock.AdobeHalfSlab.blockID] = new ItemSlab(AdobeBlock.AdobeHalfSlab.blockID - 256, (BlockHalfSlab)AdobeBlock.AdobeHalfSlab, (BlockHalfSlab)AdobeBlock.AdobeHalfSlabDouble, false).setUnlocalizedName("AdobeHalfSlab"); LanguageRegistry.instance().addStringLocalization(((Adobe.AdobeHalfSlab)AdobeBlock.AdobeHalfSlab).getFullSlabName(0)+".name", "AdobeHalfSlab"); } } Slab Class package Adobe; import net.minecraft.block.BlockHalfSlab; import net.minecraft.block.material.Material; public class AdobeHalfSlab extends BlockHalfSlab { public AdobeHalfSlab(int par1, boolean par2, Material par3Material) { super(par1, par2, par3Material); this.useNeighborBrightness[blockID] = true; } @Override public String getFullSlabName(int i) { return null; } } Result
    • November 24, 2013
    • 6 replies
  • All Activity
  • Home
  • Killjoy0593
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community