• 0

    posted a message on Broken Block Models

    Thank you so much, this had been driving me crazy

    Posted in: Resource Pack Help
  • 0

    posted a message on Broken Block Models

    I have made no new models yet, I haven't deleted any files, I added my resource pack to check some textures and this happend:




    I have no idea whats going on, I found one other post about this but no one replied to it. I'm using snapshot 16w05b if that has something to do with it.

    Any and all help is appreciated.

    Posted in: Resource Pack Help
  • 0

    posted a message on Block Scripting Error
    Quote from Gonfa

    One word:
    Forge

    Quote from jep2

    I think that part is wrong too
    protected BlockHardStone(int i, int j)
    {
    super(i,j,Material.rock);
    }


    use that instead:


    protected BlockHardStone(int i, int j)
    {
    super(Material.rock);
    }



    This is because thePlayer is of the the type EntityClientPlayerMP. You can't cast an object to a superclass.


    Sorry for makeing you all go through this trouble, i just needed to delete the line the the .thePlayer was on, never though of that, al i shall NEVER use forge
    Posted in: Modification Development
  • 0

    posted a message on Block Scripting Error
    Quote from jep2

    I think that part is wrong too
    protected BlockHardStone(int i, int j)
    {
    super(i,j,Material.rock);
    }


    use that instead:


    protected BlockHardStone(int i, int j)
    {
    super(Material.rock);
    }



    The material part is fine, the .theplayer i dont really understand on how to fix it, unless someone knows how to make blocks mineable by a certain type of pickaxe
    Posted in: Modification Development
  • 0

    posted a message on Block Scripting Error
    Here is my script, i have no idea what to do, me and a few friends have looked it over and cant find anything that will work, the error is on the EntityPlayer entityplayer = ModLoader.getMinecraftInstance().thePlayer" line:



    package net.minecraft.src;
    import java.util.Random;

    public class BlockHardStone extends Block
    {
    EntityPlayer entityplayer = ModLoader.getMinecraftInstance().thePlayer;

    protected BlockHardStone(int i, int j)
    {
    super(i,j,Material.rock);
    }



    public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
    {
    if (!par1World.isRemote && par2EntityPlayer.getCurrentEquippedItem() != null && par2EntityPlayer.getCurrentEquippedItem().itemID == Item.pickaxeSteel.shiftedIndex)
    {
    par2EntityPlayer.addStat(StatList.mineBlockStatArray[blockID], 1);
    dropBlockAsItem_do(par1World, par3, par4, par5, new ItemStack(mod_Blocks.HardStone, 1, par6));
    }
    if (!par1World.isRemote && par2EntityPlayer.getCurrentEquippedItem() != null && par2EntityPlayer.getCurrentEquippedItem().itemID == Item.pickaxeDiamond.shiftedIndex)
    {
    par2EntityPlayer.addStat(StatList.mineBlockStatArray[blockID], 1);
    dropBlockAsItem_do(par1World, par3, par4, par5, new ItemStack(mod_Blocks.HardStone, 1, par6));
    }
    else
    {
    par2EntityPlayer.addStat(StatList.mineBlockStatArray[blockID], 1);
    dropBlockAsItem_do(par1World, par3, par4, par5, new ItemStack(mod_Items.SShard, 1, par6));
    }
    }

    public int quantityDropped(Random random)
    {
    return 1;
    }

    public String Version()
    {
    return "1";
    }
    }
    //Fix

    If you can help i shall give you a diamond!
    Posted in: Modification Development
  • 0

    posted a message on Blocks
    Quote from ShadowS56

    Wrong forum, by a lot. Go to the Mod Development area.


    Just realized that thank you
    Posted in: WIP Mods
  • 0

    posted a message on Blocks
    .
    Posted in: WIP Mods
  • 0

    posted a message on New "Furnace"
    Quote from acmc

    If you don't have any knowledge with coding, then modding isn't exactly for you. You can always request a mod here though: http://www.minecraft...ideas-for-mods/


    im currently working on my second mod WorldCraft
    my first mod was Aquira but it didnt have anything to do with gui's
    Quote from YoWazzup

    I have one with two, if you want i can send you the code i sent to someone else? It is for two inputs, but it will be very similair with three.


    Go ahead, any help is apreachiated
    Posted in: Modification Development
  • 0

    posted a message on New "Furnace"
    Alright im makeing a new "furnace" but much differnt, i already have the gui done. but i donbt know how to make the back or the scripts, ive been looking up tutorials but cant find what im looking for, if any one would please be willing to help it would mean alot to me.

    Gui:



    theres three spots instead of one so i need it to combine the items that you put into each into one, i also need it to only work when all three have an item in them, specific items also but ill get into that later
    also custom fuel
    Posted in: Modification Development
  • 0

    posted a message on MCP Error
    Alright when i run the reobfuscate for MPC i end up getting this:

    == MCP 6.2 <data:6.2, client: 1.2.5, server: 1.2.5> ==
    # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
    ram csvs, astyle, astyle config
    !! Can not find client md5s !!
    !! Can not find server md5s !!
    Press any key to continue . . .

    basicly it wont let me take my mod out of mcp, any way i can fix this without haveing to start over?
    or if any one knows what this means?
    Posted in: Modification Development
  • 0

    posted a message on [1.4.7][Forge](19/2/13) Ducky's Modding Tutorials! Make Your Blocks NICE!
    i went through this and im having sooo many errors with ti, could you help me out?


    error:


    Mods loaded: 4
    ModLoader 1.2.5
    mod_Blocks WorldCraft Blocks V1 - MC 1.2.5
    mod_DimensionAPI 1.5 for MC 1.2.5
    mod_Items WorldCraft Items V1 - MC 1.2.53.14159265

    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem.




    --- BEGIN ERROR REPORT dc1da981 --------
    Generated 7/26/12 2:37 PM

    Minecraft: Minecraft 1.2.5
    OS: Windows 7 (amd64) version 6.1
    Java: 1.7.0_04, Oracle Corporation
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    LWJGL: 2.4.2
    OpenGL: GeForce GT 420/PCI/SSE2 version 4.0.0, NVIDIA Corporation

    java.lang.Error: Unresolved compilation problems:
    The type mod_SBlocks must implement the inherited abstract method BaseMod.load()
    Syntax error on token(s), misplaced construct(s)
    Syntax error on token "BlockSTorch", VariableDeclaratorId expected after this token
    Syntax error on token "registerTileEntity", Identifier expected after this token
    Syntax error on tokens, SimpleName expected instead
    Syntax error on token "}", delete this token

    at net.minecraft.src.mod_SBlocks.<init>(mod_SBlocks.java:6)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
    at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
    at net.minecraft.src.ModLoader.init(ModLoader.java:849)
    at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
    at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
    at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
    at net.minecraft.client.Minecraft.run(Minecraft.java:786)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 897c8144 ----------

    Posted in: Tutorials
  • 0

    posted a message on Custom Block Shape
    Alright all im trying to do is create a block with its own shape but still fits within a 16x16 pixel area, i have watch thousands of tutorials on it and get help from a few friends but we cant seem to figure out the problem. Heres what we have i have so far(also i have been using Techne for the model shapes if any one knows how to use it for this kind of thing):



    Mod Script


    package net.minecraft.src;
    import java.util.Map;
    import java.util.Random;
    import java.util.*;

    public class mod_SBlocks extends BaseMod
    {

    public static final Block STorch = new BlockSTorch(156,0).setHardness(0.5F).setResistance(5.0F).setBlockName("SunTorch");
    public void load()
    {


    //Sapphire Block
    ModLoader.registerBlock(STorch);
    STorch.blockIndexInTexture = ModLoader.addOverride("/terrain.png" , "/ModelBlocks/.png");
    ModLoader.addName(STorch, "Sun Torch");


    }



    public String getVersion()
    {
    return "3.14159265";
    }

    public void addRenderer(Map map)
    {

    }


    }

    Block Model script:


    // Date: 7/26/2012 5:04:46 AM
    // Template version 1.1
    // Java generated by Techne
    // Keep in mind that you still need to fill in some blanks
    // - ZeuX






    package net.minecraft.src;

    public class BlockSTorch extends ModelBase
    {
    //fields
    ModelRenderer Shape1;
    ModelRenderer Shape2;

    public BlockSTorch()
    {
    textureWidth = 32;
    textureHeight = 32;

    Shape1 = new ModelRenderer(this, 0, 0);
    Shape1.addBox(0F, 0F, 0F, 2, 15, 2);
    Shape1.setRotationPoint(-1F, 9F, -1F);
    Shape1.setTextureSize(32, 32);
    Shape1.mirror = true;
    setRotation(Shape1, 0F, 0F, 0F);
    Shape2 = new ModelRenderer(this, 8, 0);
    Shape2.addBox(0F, 0F, 0F, 4, 4, 4);
    Shape2.setRotationPoint(-2F, 8F, -2F);
    Shape2.setTextureSize(32, 32);
    Shape2.mirror = true;
    setRotation(Shape2, 0F, 0F, 0F);
    }

    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
    {
    super.render(entity, f, f1, f2, f3, f4, f5);
    setRotationAngles(f, f1, f2, f3, f4, f5);
    Shape1.render(f5);
    Shape2.render(f5);
    }

    private void setRotation(ModelRenderer model, float x, float y, float z)
    {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
    }

    public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
    {
    super.setRotationAngles(f, f1, f2, f3, f4, f5);
    }

    }

    Error


    Mods loaded: 4
    ModLoader 1.2.5
    mod_Blocks WorldCraft Blocks V1 - MC 1.2.5
    mod_DimensionAPI 1.5 for MC 1.2.5
    mod_Items WorldCraft Items V1 - MC 1.2.53.14159265

    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem.




    --- BEGIN ERROR REPORT dc1da981 --------
    Generated 7/26/12 6:19 AM

    Minecraft: Minecraft 1.2.5
    OS: Windows 7 (amd64) version 6.1
    Java: 1.7.0_04, Oracle Corporation
    VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
    LWJGL: 2.4.2
    OpenGL: GeForce GT 420/PCI/SSE2 version 4.0.0, NVIDIA Corporation

    java.lang.Error: Unresolved compilation problems:
    The constructor BlockSTorch(int, int) is undefined
    The method setHardness(float) is undefined for the type BlockSTorch

    at net.minecraft.src.mod_SBlocks.<init>(mod_SBlocks.java:9)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
    at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
    at net.minecraft.src.ModLoader.init(ModLoader.java:849)
    at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
    at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
    at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
    at net.minecraft.client.Minecraft.run(Minecraft.java:786)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 6eaf2cc ----------

    Posted in: Modification Development
  • 0

    posted a message on Unstoppable Crashing
    Quote from UncleMion

    Glad I could help :) If you remove this part:
    	 else
    	 {
    		 super.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
    	 }

    Then it won't drop anything unless the player was using the pickaxes you check for.



    found that out 15 mins after posting the other comment
    Posted in: Modification Development
  • 0

    posted a message on Unstoppable Crashing
    Quote from UncleMion

    Try overriding the harvestBlock method instead of idDropped, that way you'll get the EntityPlayer that broke the block. Take a look at BlockLeaves for an example of how harvestBlock works, it drops a block only if the player used Shears.

    Edit: on second thought, look at BlockDeadBush instead, it's less complicated than BlockLeaves.


    You are a life saver! thanks to the dead bush you can now mine it without crashing!, but now the issue is you can still mine it with any pick, but for one of the ores thats fine, you deserve a :Diamond:
    Posted in: Modification Development
  • 0

    posted a message on Unstoppable Crashing
    Alright ive tried using a try/catch but that didnt work it started creating issues within files that dont exist
    Posted in: Modification Development
  • To post a comment, please .