#Stable(non-experimental) Item Icon not displaying - Resolved

1 messages · Page 1 of 1 (latest)

jaunty mason
#

I am following https://wiki.bedrock.dev/guide/custom-item.html
which works great for experimental item, but when I update to "format_version": "1.16.1" in items/ectoplasm.json I lose the inventory texture, and name is incorrect.. I have fixed the name issue by updating RP/texts/en_US.lang to include .name.. but I can't figure out what is wrong with the texture..

Error tells me ectoplasm requires a icon atlas or icon texture

BP/items/ectoplasm.json
{
"format_version": "1.16.1",
"minecraft:item": {
"description": {
"identifier": "wiki:ectoplasm",
"category": "Items"
},
"components":{
"minecraft:max_stack_size": 16,
"minecraft:icon" : {
"texture": "wiki.ectoplasm"
}
}
}
}

RP/textures/item_texture.json
{
"resource_pack_name": "Ghostly Guide",
"texture_name": "atlas.items",
"texture_data": {
"wiki.ectoplasm": {
"textures": "textures/items/ectoplasm"
}
}
}

Id prefer to be able to create addon in non-experimental mode so I can upload to realms. If this is not true and you can upload experimental addons please let me know.

gaunt fiber
#

for non-experimental items, you have to define their appearance in the rp instead

#

here's mine for example
you have to put it inside the items folder in your rp

jaunty mason
#

Stable(non-experimental) Item Icon not displaying

jaunty mason
# gaunt fiber here's mine for example you have to put it inside the `items` folder in your rp

That is not working.. I have created development_behavior_packs\RP\items\ectoplasm.json
{
"format_version": "1.16.1",
"minecraft:item": {
"description": {
"identifier": "wiki:ectoplasm",
"category": "Items",
"is_experimental": false
},
"components":{
"minecraft:max_stack_size": 16,
"minecraft:icon" : {
"texture": "wiki.ectoplasm"
}
}
}
}
I tried removing the BP\Items\ectoplasm.json it was not happy with that and told me it would ignore the item.

gaunt fiber
#

you...put a resource pack file in a behavior pack...

#

Items 1.10.0 Format :
• Requires the item visual in RP
• Stable
Items 1.16.100 Format :
• Visuals are set inside the item behavior
• Experimental

#

you put the items.json (visual) inside the development_resource_pack, not the development_behavior_pack

jaunty mason
#

Isn't this what you suggested above "you have to put it inside the items folder in your rp"

#

I see copy past issue

#

development_resource_packs\RP\items\ectoplasm.json

gaunt fiber
#

development_resource_pack/your_pack_resource_pack/items/your_item.json

#

rp stands for resource pack

#

bp stands for behavior pack

jaunty mason
#

do I need to remove the BP\items\ectoplasm.json

gaunt fiber
#

don't

#

well don't if it's the item behavior

#

if it's the visual move it to your resource pack instead

jaunty mason
#

Unfortunately something is still wrong because its not displaying the icon

#

RP/items/ectoplasm.json

#
    "format_version": "1.16.1",
    "minecraft:item": {
        "description": {
            "identifier": "wiki:ectoplasm",
            "category": "Items",
            "is_experimental": false
        },
        "components":{
            "minecraft:icon" : {
                "texture": "wiki.ectoplasm"
            }
        }
    }
}```
#

BP/items/ectoplasm.json

#
    "format_version": "1.16.1",
    "minecraft:item": {
        "description": {
            "identifier": "wiki:ectoplasm",
            "category": "Items"
        },
        "components":{
            "minecraft:max_stack_size": 16
            
        }
    }
}```
#

RP/textures/item_texture.json

#
    "resource_pack_name": "Ghostly Guide",
    "texture_name": "atlas.items",
    "texture_data": {
        "wiki.ectoplasm": {
            "textures": "textures/items/ectoplasm"
        }
    }
}```
#

and image exists @ RP/textures/items/ectoplasm.png

gaunt fiber
#

you can use ``` at the start and the end of the codes to make them easier to read

#

let's see...

#

the format version should be 1.10.0, not 1.16.1

#

1.16.100 is for experimental items

jaunty mason
#

after I change the format version VS throws errors

#

property is_exerperimental is not allowed

#

and on the texture it tells me incorrect type expected string

gaunt fiber
#

have you tried it ingame yet?

jaunty mason
#

yes same result blank icon but item is present

gaunt fiber
#

blank icon...
which means the textured is undefined

#

also put item_texture.json in textures, not items

jaunty mason
#

item_texture.json was in the correct spot

#

I updated above

gaunt fiber
#

still blank?

#

Resource pack filepath :
• rp/items/your_item.json • rp/textures/item_texture.json • rp/textures/items/your_item.png
Behavior pack filepath :
• bp/items/your_item.json

jaunty mason
#

yes

#

those files are correct with addition of rp/texts and bp/texts

gaunt fiber
#

change the . in wiki.ectoplasm to _ instead

#

you don't need texts in bp, the rp handles them

jaunty mason
#

Updated RP\textures\item_texture.json

#
    "resource_pack_name": "Ghostly Guide",
    "texture_name": "atlas.items",
    "texture_data": {
        "wiki_ectoplasm": {
            "textures": "textures/items/ectoplasm"
        }
    }
}```
#

update RP\item\ectoplasm.json

#
    "format_version": "1.10.0",
    "minecraft:item": {
        "description": {
            "identifier": "wiki:ectoplasm",
            "category": "Items",
            "is_experimental": false
        },
        "components":{
            "minecraft:icon" : {
                "texture": "wiki_ectoplasm"
            }
        }
    }
}```
#

Remove BP\texts

gaunt fiber
#

and the item behavior is also 1.10.0 too i believe?

jaunty mason
#

checking

#

yes both BP and RP format versions are 1.10.0

gaunt fiber
#

and have you tried it ingame again?

jaunty mason
#

Just did and still blank

gaunt fiber
#

so the item behavior works but not the visual

#

hwo about the content logs?

#

any content logs?

jaunty mason
#

correct I can pick up a stack of ectoplasm from atlas in a stack of 16

#

yes log about wiki:ectoplasm missing icon.. sec ill get full log msg

gaunt fiber
#

i also want to check something else

#

you put the RP in development_resource_packs right?

jaunty mason
#

[Item][warning]-Item item.wiki:ectoplasm requires either an icon atlas or icon texture.

#

com.mojang\development_resource_packs\RP

gaunt fiber
#

Resource ✅
Behavior ✅
Filepath ✅
Codes ✅
only thing i can think of is have you used the resource pack or not

jaunty mason
#

I am not using any additional resource packs.

#

I have followed the tutorial to make dirt block green

gaunt fiber
#

at this point the easiest way out is just give a zip of your addon so i can test it directly

jaunty mason
#

Thank you for your time helping me

gaunt fiber
#

i'll let you know when i figure this out

#

i just realized

#

its
"minecraft:icon": "wiki_ectoplasm"
and not

    "textures": "wiki_ectoplasm"
  }```
#

the latter is used for 1.16.100 format

#

i missed it the entire time 😬

#

🤦‍♂️

jaunty mason
#

Thank you so much

#

it works

#

I am going to update as resolved

#

Stable(non-experimental) Item Icon not displaying - Resolved