#My item has no icon and functionability

1 messages · Page 1 of 1 (latest)

sturdy copper
#

I followed the instructions to experimantal items (1.16.100+) and looked up at the troubleshooting items guide. Still my cusom sword doesn't do the damage it should and have the icon I gave it. Please help me find my error.
Behavior:

{
    "format_version": "1.16.100",
    "minecraft:item": {
        "description": {
            "identifier": "server:jo_sword",
            "category": "equipment"
        }
    },
    "components": {
      "minecraft:icon": {
        "texture": "jo_sword"
      },
      "minecraft:creative_category": {
        "parent": "itemGroup.name.sword"
      },
      "minecraft:max_stack_size": 1,
      "minecraft:hand_equipped": true,
      "minecraft:allow_off_hand": true,
      "minecraft:foil": false,
      "minecraft:durability": {
        "max_durability": 100,
        "damage_chance": {
          "min": 60,
          "max": 100
        }
      },
      "minecraft:repairable": {
        "repair_items": [
          {
            "items": [
              "minecraft:diamond"
            ],
            "repair_amount": 10
          }
        ]
      },
      "minecraft:mining_speed": 1,
      "minecraft:damage": 10,
      "minecraft:enchantable": {
        "value": 15,
        "slot": "sword"
      },
      "minecraft:can_destroy_in_creative": false,
      "minecraft:weapon": {
        "on_hurt_entity": {
          "event": "hurt"
        },
        "on_not_hurt_entity": {
          "event": "hurt"
        },
        "on_hit_block": {
          "event": "hurt"
        }
      },
      "minecraft:render_offsets": "tools",
      "tag:minecraft:is_sword": {},
      "minecraft:display_name": {}
    }
  }```
item_texture.json
```json
{
    "resource_pack_name": "pack.name",
    "texture_name": "atlas.items",
    "texture_data": {
        "jo_sword":{
            "textures": "textures/items/jo_sword"
        }
    }
}```
sturdy comet
#

remove the minecraft:render_offset

#

it's incorrect

sturdy copper
#

Done! But my texture and functionality are still not working

sturdy comet
#

What appears instead of the item?

#

the components inside minecraft:weapon should be removed if there is no events with the name hurt
after that, try removing minecraft:mining_speed

#

and don't forget to activate experimental mode (Holiday Creator Features)

sturdy copper
#

The item doesn't show any texture: it looks like an empty inventory slot. Removing minecraft: mining_speed didn't change anything.

#

It also doesn't display how much damage it does and it stacks to 64

#

The only thing it actually can is display its name and use the right attachable.

sturdy comet
#

any content log error then?

#

?content log

soft otterBOT
sturdy copper
#

and is in the correct creative category

#

[Item][error]-Missing icon data for data-driven item 'server:jo_sword'

worthy kestrel
#

you are missing "minecraft:icon"

sturdy copper
#

It's the first component in "components":{}