Multiple texture/model in an item?

Get help and support for using Cubik Studio.
Post Reply

Multiple texture/model in an item?

Post by Porama6400 » 17 Dec 2016, 18:07

Are there any way to set multiple texture/model to 1 iten?

So I can change texture with item data or durability?
x
User avatar
Porama6400
Early Adopter
Posts: 10
Joined: 16 Nov 2016, 02:26

Re: Multiple texture/model in an item?

Post by Sphax » 17 Dec 2016, 18:09

You can use as many textures as you want on a model.

Changing texture depending on item data/durability is an Optifine feature, this is not related to Cubik Studio. ;)
x
User avatar
Sphax
Admin
Posts: 1314
Joined: 10 Nov 2011, 10:44

Re: Multiple texture/model in an item?

Post by HanFox » 17 Dec 2016, 18:12

Changing texture depending on durability is not an Optifine feature, it's a Minecraft feature.

An example of damage on a Carrot on a Stick is (the predicate being the durability out of 100% i.e. 0.8 is 80% damaged, 0.50 = 50% damaged, etc.):

Code: Select all

{
    "parent": "item/handheld_rod",
    "textures": {
        "layer0": "items/carrot_on_a_stick"
    },
    "overrides": [
        {
            "predicate": {
                "damage": 0.50
            },
            "model": "item/carrot_on_a_stick_d1"
        },
        {
            "predicate": {
                "damage": 0.80
            },
            "model": "item/carrot_on_a_stick_d2"
        }
    ]
}
This obviously requires multiple defined models (e.g. carrot_on_a_stick_d1, carrot_on_a_stick_d2, etc.). Thus you would define your other textures in these model files.
x
Create your own thread for purchase/activation/key issues.

Please don't Private Message admins without prior permission. Your message may be missed.

Profile pic by TsaoShin: https://www.deviantart.com/tsaoshin
User avatar
HanFox
Web Admin
Posts: 1137
Joined: 16 Apr 2012, 00:46

Re: Multiple texture/model in an item?

Post by Porama6400 » 18 Dec 2016, 00:17

So it's support 3D?
x
User avatar
Porama6400
Early Adopter
Posts: 10
Joined: 16 Nov 2016, 02:26

Re: Multiple texture/model in an item?

Post by HanFox » 18 Dec 2016, 00:21

Yes.
x
Create your own thread for purchase/activation/key issues.

Please don't Private Message admins without prior permission. Your message may be missed.

Profile pic by TsaoShin: https://www.deviantart.com/tsaoshin
User avatar
HanFox
Web Admin
Posts: 1137
Joined: 16 Apr 2012, 00:46

Re: Multiple texture/model in an item?

Post by Porama6400 » 18 Dec 2016, 01:39

Will it work with durability data on item that don't have durability (It's possible to set on Bukkit)
x
User avatar
Porama6400
Early Adopter
Posts: 10
Joined: 16 Nov 2016, 02:26

Re: Multiple texture/model in an item?

Post by Porama6400 » 18 Dec 2016, 03:45

So change model/texture depend on item data is not possible on vanilla?
x
User avatar
Porama6400
Early Adopter
Posts: 10
Joined: 16 Nov 2016, 02:26

Re: Multiple texture/model in an item?

Post by Dziwko » 18 Dec 2016, 04:46

http://accidentalgames.com/media/durabilityModels.php

You can use this site to generate damage values.

In this animated model I have used 13 frame models and all of them is in wooden hoe :D

Image
x
AESTHETIC
User avatar
Dziwko
Posts: 23
Joined: 11 Nov 2016, 21:59

Re: Multiple texture/model in an item?

Post by Porama6400 » 18 Dec 2016, 05:28

You don't have to use durability to make it animate , There are website that can generate it , but I forgot where is it :(
But that's so cool , Thanks :)



And I mean , can you add multiple texture/model to item that don't have durability?
Item that don't have durability can have durability data anyway , It's just function as a fix data and don't display in-game
x
User avatar
Porama6400
Early Adopter
Posts: 10
Joined: 16 Nov 2016, 02:26

Re: Multiple texture/model in an item?

Post by Treeomatic » 18 Jun 2017, 11:29

It would be an awesone Feature in cubik studio! You could select which item texture should be changed. Then you could create the textures for the durability. Cubik studio would export the txt document that manages the overrides and the textures / models
x
User avatar
Treeomatic
Supporter
Posts: 1
Joined: 12 Nov 2016, 14:26

Post Reply

Return to “Help Centre”