customisation of turn table output

  • Hello, I have a question concerning making custom items on turntable.
    All generated items are just turning blank with appropriate tag, and IC2 assign different images to them.


    If I want to make custom item, different than those supported by IC2, how can I assign different image to it?

    • Official Post

    The items that are modified in a turning table implement ILatheItem, so you'll probably want to return the resource location of the image you want to use via ILatheItem#getTexture(ItemStack).

    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.

    • Official Post

    If you want to make a custom item, that should be modifiable in the turning table, you need to implement ILatheItem in your item class.
    If you want to use a custom variant of an existing item, you can just inject the tooltip name into the language registry. The icons are dynamically rendered.
    If you want to change the icon of a variant of an existing item, that is currently not possible.
    If I completely misunderstood you, please let me know.

  • Thanks for all your above reply, to clarify, I'm not a mod maker (yet), I'm just using minetweaker and custom items mod.

    If you want to use a custom variant of an existing item, you can just inject the tooltip name into the language registry. The icons are dynamically rendered.

    Yes, it is exactly what I want to do. If item icons are rendered dynamically, seems that it is possible to add variant of existing iron turning blank and just use minetweaker addTooltip function.

    • Official Post

    The items are rendered dynamically, but only on an individual item basis. If you extended the Iron Turning Blank itself for example, it would still be an iron turning blank so would still use it's texture, which you wouldn't be able to change unless you could override the texture method (which would probably be way beyond the scope of your average custom item mod). The tooltip it has you can change easily as that's designed on a per meta basis, but the texture isn't.

    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.

    • Official Post

    If you wanted I could probably make a small mod to allow custom turning blanks. (It would be even easier if you like the custom item mod you're using already so that the format is the same).

    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.

  • OK, it works well, each processed turning blank have unique damage and tag, for example
    <IC2:itemTurningBlanks:332053>.withTag({state: {l0: 5, l1: 1, l2: 1, l3: 1, l4: 5}})
    and I can add tooltip for describe such item:
    <IC2:itemTurningBlanks:332053>.addTooltip("Minecart wheels");


    The one small issue is, that still 'Blank' text is displayed above my custom description, but I can live with it.