Mojira Archive
MC-84783

Damaged Tag for resource packs is semi broken 1.9

MC-58445
Torabi states:
that /give @p stick 1 1 works as intended and in 1.9 we will be able to define custom textures for item based of damage.

 "overrides": [
        {
            "predicate": {
                "damaged": 1
                "damage": 0.5
            },
            "model": "item/example"
        }

that is the code for defining it, however on delving into this i quickly discovered that it only works on 'damageable item' so a sword for instance will work, however a stick or any other item will not.

I believe the reason for this is that damage can only be expressed as a decimal (percentage of an items entire durability)

I propose instead use the tags or similar

    "damage_min": 1
    "damage_max": 10

hence damage would be with in a range so that its not just limited to tools

reason it needs to change: Custom Maps enough said

Also it would be better if we had access to all tags items can have example: Name a golden axe Ban Hammer then it would gain a cool new texture (although i would probably put it i the lore not the name)

Works As Intended

Alpha

2015-08-02, 01:04 PM

2015-08-04, 03:27 PM

2015-08-02, 11:06 PM

0

3

Unconfirmed

Minecraft 15w31c

-