Posts by MrEyeballs29

    I finally got the code correct instead of tautology code. also I changed the name moss stone into mossy cobblestone without a resource pack

    Proof

    I am going to delete that enum. Also take a look at this code

    Is there a way to make this more efficient. Or this is the most efficient.

    I know Java :) a lot but it is just getting the hardness and the resistance is the problem I don't know for those. ?(

    All I have to do is just make the different hardnesses and blast resistances via metadata and a enum too.

    I actually overrode them both explosion resistances.

    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
    @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);
    }

    @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?

    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;

    }

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

    Вообще, лучшее решение это аддон. Если бы всё это можно было накидать прям в майне, было бы круто, но пока слишком сложно для меня. А веб-версия, по-моему, не лучшее решение, хотя и со своими плюсами. А что там ставить то? Экзешник скачал, и кинул куда хочешь. Запоминает настройки, маленькое окошко, которое можно держать поверх майна, пока забиваешь данные.

    uhh what are you saying?