Skip to content

[BUG] Custom Skull Overrides using block data instead of item data #283

Description

@PhanaticD

example items.yml in item packs:

info:
  namespace: slimefun
items:
  carbonado:
    resource:
      material: PLAYER_HEAD
      generate: true
      model_id: 4000
      textures:
      - slimefun/carbonado.png

These are the two files that are created by IA
\plugins\ItemsAdder\data\resource_pack\assets\minecraft\models\itemplayer_head.json

{
  "parent": "block/player_head",
  "overrides": [
    {
      "predicate": {
        "custom_model_data": 4000
      },
      "model": "slimefun:auto_generated/carbonado"
    }
  ]
}

first problem is this should be "item/template_skull" not "block/player_head"
second problem happens if you set generate: false in the item pack, it still sets the path to auto_generated/carbonado instead of items/carbonado

AND

\plugins\ItemsAdder\data\resource_pack\assets\slimefun\models\auto_generated\carbonado.json

{
  "parent": "item/generated",
  "textures": {
    "all": "slimefun:slimefun/carbonado",
    "particle": "slimefun:slimefun/carbonado"
  }
}

the problem with this file is I assume its still think its using the block texture, but instead it should be just "layer0": "slimefun:slimefun/carbonado"

I have spent a long time trying to figure this issue out and tested that these changes did fix the custom texture to show up, please fix :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions