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
  • 123456789link

123456789link

Members
 View Profile  See their activity
  • Content Count

    26
  • Joined

    July 27, 2012
  • Last visited

    July 13, 2013

Community Reputation

0 Neutral

About 123456789link

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!
  1. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    I fix it that was for this line: if (this.blockMaterial == Material.iron) { return true; } and the trapdorr material is iron too then i replace it for this an works: if (this.blockMaterial == Material.wood) { return true; }
    • April 21, 2013
    • 11 replies
  2. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    I fix it that was for this line: if (this.blockMaterial == Material.iron) { return true; } and the trapdorr material is iron too then i replace it for this an works: if (this.blockMaterial == Material.wood) { return true; }
    • April 21, 2013
    • 11 replies
  3. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    still no work
    • April 21, 2013
    • 11 replies
  4. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    still no work
    • April 21, 2013
    • 11 replies
  5. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    is this package net.minecraft.block; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.Vec3; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.ForgeDirection; public class Blockirontd extends Block { /** Set this to allow trapdoors to remain free-floating */ public static boolean disableValidation = false; public Blockirontd(int par1, Material par2Material) { super(par1, par2Material); float f = 0.5F; float f1 = 1.0F; this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f1, 0.5F + f); } /** * Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block. */ public boolean isOpaqueCube() { return false; } /** * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) */ public boolean renderAsNormalBlock() { return false; } public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { return !isTrapdoorOpen(par1IBlockAccess.getBlockMetadata(par2, par3, par4)); } /** * The type of render function that is called for this block */ public int getRenderType() { return 0; } @SideOnly(Side.CLIENT) /** * Returns the bounding box of the wired rectangular prism to render. */ public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); return super.getSelectedBoundingBoxFromPool(par1World, par2, par3, par4); } /** * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been * cleared to be reused) */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); return super.getCollisionBoundingBoxFromPool(par1World, par2, par3, par4); } /** * Updates the blocks bounds based on its current state. Args: world, x, y, z */ public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { this.setBlockBoundsForBlockRender(par1IBlockAccess.getBlockMetadata(par2, par3, par4)); } /** * Sets the block's bounds for rendering it as an item */ public void setBlockBoundsForItemRender() { float f = 0.1875F; this.setBlockBounds(0.0F, 0.5F - f / 2.0F, 0.0F, 1.0F, 0.5F + f / 2.0F, 1.0F); } public void setBlockBoundsForBlockRender(int par1) { float f = 0.1875F; if ((par1 & != 0) { this.setBlockBounds(0.0F, 1.0F - f, 0.0F, 1.0F, 1.0F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, f, 1.0F); } if (isTrapdoorOpen(par1)) { if ((par1 & 3) == 0) { this.setBlockBounds(0.0F, 0.0F, 1.0F - f, 1.0F, 1.0F, 1.0F); } if ((par1 & 3) == 1) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f); } if ((par1 & 3) == 2) { this.setBlockBounds(1.0F - f, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } if ((par1 & 3) == 3) { this.setBlockBounds(0.0F, 0.0F, 0.0F, f, 1.0F, 1.0F); } } } /** * Called when the block is clicked by a player. Args: x, y, z, entityPlayer */ public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer) {} /** * Called upon block activation (right click on the block.) */ public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { if (this.blockMaterial == Material.iron) { return true; } else { int i1 = par1World.getBlockMetadata(par2, par3, par4); par1World.setBlockMetadataWithNotify(par2, par3, par4, i1 ^ 4, 2); par1World.playAuxSFXAtEntity(par5EntityPlayer, 1003, par2, par3, par4, 0); return true; } } public void onPoweredBlockChange(World par1World, int par2, int par3, int par4, boolean par5) { int l = par1World.getBlockMetadata(par2, par3, par4); boolean flag1 = (l & 4) > 0; if (flag1 != par5) { par1World.setBlockMetadataWithNotify(par2, par3, par4, l ^ 4, 2); par1World.playAuxSFXAtEntity((EntityPlayer)null, 1003, par2, par3, par4, 0); } } /** * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are * their own) Args: x, y, z, neighbor blockID */ public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { if (!par1World.isRemote) { int i1 = par1World.getBlockMetadata(par2, par3, par4); int j1 = par2; int k1 = par4; if ((i1 & 3) == 0) { k1 = par4 + 1; } if ((i1 & 3) == 1) { --k1; } if ((i1 & 3) == 2) { j1 = par2 + 1; } if ((i1 & 3) == 3) { --j1; } if (!(isValidSupportBlock(par1World.getBlockId(j1, par3, k1)) || par1World.isBlockSolidOnSide(j1, par3, k1, ForgeDirection.getOrientation((i1 & 3) + 2)))) { par1World.setBlockToAir(par2, par3, par4); this.dropBlockAsItem(par1World, par2, par3, par4, i1, 0); } boolean flag = par1World.isBlockIndirectlyGettingPowered(par2, par3, par4); if (flag || par5 > 0 && Block.blocksList[par5].canProvidePower()) { this.onPoweredBlockChange(par1World, par2, par3, par4, flag); } } } /** * Ray traces through the blocks collision from start vector to end vector returning a ray trace hit. Args: world, * x, y, z, startVec, endVec */ public MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3) { this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); return super.collisionRayTrace(par1World, par2, par3, par4, par5Vec3, par6Vec3); } /** * Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata */ public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) { int j1 = 0; if (par5 == 2) { j1 = 0; } if (par5 == 3) { j1 = 1; } if (par5 == 4) { j1 = 2; } if (par5 == 5) { j1 = 3; } if (par5 != 1 && par5 != 0 && par7 > 0.5F) { j1 |= 8; } return j1; } /** * checks to see if you can place this block can be placed on that side of a block: BlockLever overrides */ public boolean canPlaceBlockOnSide(World par1World, int par2, int par3, int par4, int par5) { if (disableValidation) { return true; } if (par5 == 0) { return false; } else if (par5 == 1) { return false; } else { if (par5 == 2) { ++par4; } if (par5 == 3) { --par4; } if (par5 == 4) { ++par2; } if (par5 == 5) { --par2; } return isValidSupportBlock(par1World.getBlockId(par2, par3, par4)) || par1World.isBlockSolidOnSide(par2, par3, par4, ForgeDirection.UP); } } public static boolean isTrapdoorOpen(int par0) { return (par0 & 4) != 0; } /** * Checks if the block ID is a valid support block for the trap door to connect with. If it is not the trapdoor is * dropped into the world. */ private static boolean isValidSupportBlock(int par0) { if (disableValidation) { return true; } if (par0 <= 0) { return false; } else { Block block = Block.blocksList[par0]; return block != null && block.blockMaterial.isOpaque() && block.renderAsNormalBlock() || block == Block.glowStone || block instanceof BlockHalfSlab || block instanceof BlockStairs; } } } and the line irontd = (new Blockirontd(2668, Material.iron)).setHardness(3.0F).setStepSound(Block.soundMetalFootstep).setUnlocalizedName("irontd");
    • April 21, 2013
    • 11 replies
  6. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    is this package net.minecraft.block; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.Vec3; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.ForgeDirection; public class Blockirontd extends Block { /** Set this to allow trapdoors to remain free-floating */ public static boolean disableValidation = false; public Blockirontd(int par1, Material par2Material) { super(par1, par2Material); float f = 0.5F; float f1 = 1.0F; this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f1, 0.5F + f); } /** * Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block. */ public boolean isOpaqueCube() { return false; } /** * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) */ public boolean renderAsNormalBlock() { return false; } public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { return !isTrapdoorOpen(par1IBlockAccess.getBlockMetadata(par2, par3, par4)); } /** * The type of render function that is called for this block */ public int getRenderType() { return 0; } @SideOnly(Side.CLIENT) /** * Returns the bounding box of the wired rectangular prism to render. */ public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); return super.getSelectedBoundingBoxFromPool(par1World, par2, par3, par4); } /** * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been * cleared to be reused) */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) { this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); return super.getCollisionBoundingBoxFromPool(par1World, par2, par3, par4); } /** * Updates the blocks bounds based on its current state. Args: world, x, y, z */ public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { this.setBlockBoundsForBlockRender(par1IBlockAccess.getBlockMetadata(par2, par3, par4)); } /** * Sets the block's bounds for rendering it as an item */ public void setBlockBoundsForItemRender() { float f = 0.1875F; this.setBlockBounds(0.0F, 0.5F - f / 2.0F, 0.0F, 1.0F, 0.5F + f / 2.0F, 1.0F); } public void setBlockBoundsForBlockRender(int par1) { float f = 0.1875F; if ((par1 & != 0) { this.setBlockBounds(0.0F, 1.0F - f, 0.0F, 1.0F, 1.0F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, f, 1.0F); } if (isTrapdoorOpen(par1)) { if ((par1 & 3) == 0) { this.setBlockBounds(0.0F, 0.0F, 1.0F - f, 1.0F, 1.0F, 1.0F); } if ((par1 & 3) == 1) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f); } if ((par1 & 3) == 2) { this.setBlockBounds(1.0F - f, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } if ((par1 & 3) == 3) { this.setBlockBounds(0.0F, 0.0F, 0.0F, f, 1.0F, 1.0F); } } } /** * Called when the block is clicked by a player. Args: x, y, z, entityPlayer */ public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer) {} /** * Called upon block activation (right click on the block.) */ public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { if (this.blockMaterial == Material.iron) { return true; } else { int i1 = par1World.getBlockMetadata(par2, par3, par4); par1World.setBlockMetadataWithNotify(par2, par3, par4, i1 ^ 4, 2); par1World.playAuxSFXAtEntity(par5EntityPlayer, 1003, par2, par3, par4, 0); return true; } } public void onPoweredBlockChange(World par1World, int par2, int par3, int par4, boolean par5) { int l = par1World.getBlockMetadata(par2, par3, par4); boolean flag1 = (l & 4) > 0; if (flag1 != par5) { par1World.setBlockMetadataWithNotify(par2, par3, par4, l ^ 4, 2); par1World.playAuxSFXAtEntity((EntityPlayer)null, 1003, par2, par3, par4, 0); } } /** * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are * their own) Args: x, y, z, neighbor blockID */ public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) { if (!par1World.isRemote) { int i1 = par1World.getBlockMetadata(par2, par3, par4); int j1 = par2; int k1 = par4; if ((i1 & 3) == 0) { k1 = par4 + 1; } if ((i1 & 3) == 1) { --k1; } if ((i1 & 3) == 2) { j1 = par2 + 1; } if ((i1 & 3) == 3) { --j1; } if (!(isValidSupportBlock(par1World.getBlockId(j1, par3, k1)) || par1World.isBlockSolidOnSide(j1, par3, k1, ForgeDirection.getOrientation((i1 & 3) + 2)))) { par1World.setBlockToAir(par2, par3, par4); this.dropBlockAsItem(par1World, par2, par3, par4, i1, 0); } boolean flag = par1World.isBlockIndirectlyGettingPowered(par2, par3, par4); if (flag || par5 > 0 && Block.blocksList[par5].canProvidePower()) { this.onPoweredBlockChange(par1World, par2, par3, par4, flag); } } } /** * Ray traces through the blocks collision from start vector to end vector returning a ray trace hit. Args: world, * x, y, z, startVec, endVec */ public MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3) { this.setBlockBoundsBasedOnState(par1World, par2, par3, par4); return super.collisionRayTrace(par1World, par2, par3, par4, par5Vec3, par6Vec3); } /** * Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata */ public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) { int j1 = 0; if (par5 == 2) { j1 = 0; } if (par5 == 3) { j1 = 1; } if (par5 == 4) { j1 = 2; } if (par5 == 5) { j1 = 3; } if (par5 != 1 && par5 != 0 && par7 > 0.5F) { j1 |= 8; } return j1; } /** * checks to see if you can place this block can be placed on that side of a block: BlockLever overrides */ public boolean canPlaceBlockOnSide(World par1World, int par2, int par3, int par4, int par5) { if (disableValidation) { return true; } if (par5 == 0) { return false; } else if (par5 == 1) { return false; } else { if (par5 == 2) { ++par4; } if (par5 == 3) { --par4; } if (par5 == 4) { ++par2; } if (par5 == 5) { --par2; } return isValidSupportBlock(par1World.getBlockId(par2, par3, par4)) || par1World.isBlockSolidOnSide(par2, par3, par4, ForgeDirection.UP); } } public static boolean isTrapdoorOpen(int par0) { return (par0 & 4) != 0; } /** * Checks if the block ID is a valid support block for the trap door to connect with. If it is not the trapdoor is * dropped into the world. */ private static boolean isValidSupportBlock(int par0) { if (disableValidation) { return true; } if (par0 <= 0) { return false; } else { Block block = Block.blocksList[par0]; return block != null && block.blockMaterial.isOpaque() && block.renderAsNormalBlock() || block == Block.glowStone || block instanceof BlockHalfSlab || block instanceof BlockStairs; } } } and the line irontd = (new Blockirontd(2668, Material.iron)).setHardness(3.0F).setStepSound(Block.soundMetalFootstep).setUnlocalizedName("irontd");
    • April 21, 2013
    • 11 replies
  7. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link replied to 123456789link's topic in Modder Support

    hello i got a bug when i add for example a trapdoor i copy/paste the same code (BlockTrapDoor) and change names for irontrapdor and when i right click it doesnt active only works via redstone
    • April 21, 2013
    • 11 replies
  8. 123456789link

    Bug when right click [fixed for my own](sorry)

    123456789link posted a topic in Modder Support

    hello i got a bug when i add for example a trapdoor i copy/paste the same code (BlockTrapDoor) and change names for irontrapdor and when i right click it doesnt active only works via redstone
    • April 21, 2013
    • 11 replies
  9. 123456789link

    bug the mod doesnt accept his own version

    123456789link replied to 123456789link's topic in Modder Support

    I know im talking about mod version has a bug the minecraft version is okay You misunderstood diesieben07. He meant this line: versionBounds = "[1.5.1]" This variable is NOT for the Minecraft version! It is for your own version. i see thank you it works now
    • April 12, 2013
    • 4 replies
  10. 123456789link

    bug the mod doesnt accept his own version

    123456789link replied to 123456789link's topic in Modder Support

    I know im talking about mod version has a bug the minecraft version is okay
    • April 9, 2013
    • 4 replies
  11. 123456789link

    bug the mod doesnt accept his own version

    123456789link posted a topic in Modder Support

    in eclipse always appear this bug The mod Test appears to reject its own version number (3.1) in its version handling but it run normaly but doent work when i connect in my server it say you dont have the required mods or are outdated but i have the same mods in the client and the server i think the bug is in here @Mod (modid = "Test", name = "Funny Start!", modLanguage = "en_US", version = "3.1") @NetworkMod ( clientSideRequired = true, serverSideRequired = false, versionBounds = "[1.5.1]"
    • April 9, 2013
    • 4 replies
  12. 123456789link

    [FIXED]exception in thread "Minecraft main thread" java.lang.

    123456789link posted a topic in Modder Support

    I fixed it thank you anyways
    • April 8, 2013
    • 1 reply
  13. 123456789link

    forge not works [black screen]

    123456789link replied to 123456789link's topic in Support & Bug Reports

    didnt work
    • October 28, 2012
    • 5 replies
  14. 123456789link

    forge not works [black screen]

    123456789link replied to 123456789link's topic in Support & Bug Reports

    no log and no mojan logo :'(
    • October 28, 2012
    • 5 replies
  15. 123456789link

    forge not works [black screen]

    123456789link posted a topic in Support & Bug Reports

    help since forge 4.1.1 no one versions work in my mc only appears a window telling fml setup progres disappears and black screen how i fix this steps delete meta_inf drag forge to minecraft .jar
    • October 27, 2012
    • 5 replies
  • All Activity
  • Home
  • 123456789link
  • Theme

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