Decoblocks Modding Issues

  • The line list.add says it is undefined. list.addHow do you get it to work.

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;

    Java
    1. import java.util.List;

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.

  • Yeah its java.util.List


    better blacklist all the com.sun.* stuff from automatic imports in your IDE

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • Thank you Chocohead and GregoriusT . Also this is my first mod

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • Ok there is something strange about my block. Does this code supposed to happen.

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • Nevermind Aroma1997 I got it.

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • Any Mod Developers, How do I make different metadata hardnessess and resistances?

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • @Override getBlockHardness(world x y z) {return world.getblockmetadata(x y z) == 0 ? 1.0F : 2.0F;}

    @Override getExplosionResistance(world x y z exploder) {return world.getblockmetadata(x y z) == 0 ? 1.0F : 2.0F;}


    somewhat like this?

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • yes but the IDE says it is an error


    error

    @override

    public void getBlockHardness(World x y z) {

    return World.getblockmetadata(x y z) == 0 ? 1.0F : 2.0F;

    }

    error

    @override

    public void getExplosionResistance(World x y z exploder) {

    return World.getblockmetadata(x y z) == 0 ? 1.0F : 2.0F;

    }

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • That was actually just to give you an idea where to search, not for a 1:1 copypaste. I was too lazy to give proper parameter assignments, you were supposed to copy them from the corresponding Blocks functions. ;)

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • @Override

    public float getBlockHardness(World world, int x, int y, int z) {

    return super.getBlockHardness(world, x, y, z);

    }


    @Override

    public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX,

    double explosionY, double explosionZ) {

    return super.getExplosionResistance(par1Entity, world, x, y, z, explosionX, explosionY, explosionZ);

    }


    Like this?

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • yes like that, note that getexplosionresistance has two versions with different parameters, so better override both to return the same value

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • Which java file I need to go? Either the MetaDataBlock.java or This.

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • How about Block.java ?

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • Other Hints that might be useful, Rightclick a Function and select Open Call Hierarchy, click a Class and Open Type Hierarchy, etc. Those are REALLY useful for navigating!

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • Nope I don't have block.java in my package all I got is Stone.java, Cream.java, ColorPorcelain.java, PorcelainBlock.java, PorcelainPowder.java, and ModBlocks.java. In my subpackage I have only MetaDataBlock.java. What Should I put the two @Override annotations?

    Java
    1. @Override
    2. public float getBlockHardness(World world, int x, int y, int z) {
    3. return super.getBlockHardness(world, x, y, z);
    4. }
    5. @Override
    6. public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX,
    7. double explosionY, double explosionZ) {
    8. return super.getExplosionResistance(par1Entity, world, x, y, z, explosionX, explosionY, explosionZ);
    9. }

    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • what is "net.minecraft.block.Block" then? You even have "extends Block" in that Screenshot!

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • Of course I have "extends blocks." but I just making sure I have them right otherwise if I use it wrong It will 100% crash minecraft. Ok what I do now with this?


    Color Codes and Format Codes for the rules:


    Red Meaning Don't Read that.

    Green Meaning must Read that.

    Blue Meaning everytime someone swears (like extensive bad language) on purpose it will be changed into a not a swearing text. Since I cannot delete other peoples text unless I am a admin or something that allows to get rid of the extensive bad language post. I absolutely hated swearing or worse extensive bad language.

    Yellow Meaning That is incorrect.

    Purple Meaning Spelling Correction

  • What I meant was inside Block.java there is a Function you did not override yet regarding getExplosionResistance, because the Block Class has TWO explosion resistance functions! Not just the one you overrode (btw maybe you should insert your own value there instead of returning super.getHardness / getExplosionResistance)

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)