Giter Club home page Giter Club logo

Comments (4)

Kojoley avatar Kojoley commented on July 18, 2024

That's true. No override of texture source in TFC/Items/ItemOreSmall inherited from TFC/Items/ItemOre. This is easy to implement feature, but will cause copy of all ores (or create small texture from scratch) in existing texture packs, or requires mechanism with fallback into using normal texture of that ore type if small missing.

from tfcraft.

aliceingame avatar aliceingame commented on July 18, 2024

There is no need to do someting "in case the texture pack do not include the small texture" as all the small texture exist in the TFC texture (ok, it's the same as the big one, but the files exist).

If you don't have the small texture in your pack, minecraft will use the default TFC texture.

from tfcraft.

Kojoley avatar Kojoley commented on July 18, 2024

The easiest and pretty looking way to implement is to change directory to subfolder like this (but requires moving of textures)

public ItemOreSmall(int i)
{
    super(i);
    setFolder("ore/small/");
}

Other way is to override registerIcons like this (will work out of the box)

@Override
public void updateIcons(IconRegister registerer)
{
    for(int i = 0; i < MetaNames.length-3; i++)
        icons[i] = registerer.registerIcon(textureFolder+MetaNames[i]+" Small Ore");
}

Both way will not work, until strange override of getIconFromDamage present (it should be removed)

@Override
public Icon getIconFromDamage(int meta)
{       
    return TFCItems.OreChunk.getIconFromDamage(meta);
}

from tfcraft.

aliceingame avatar aliceingame commented on July 18, 2024

Fix pull 52

from tfcraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.