Changelog
Added new setting item model. Normally this pack uses custom model data to set the texture of the key. If you check this setting, the texture will be defined trough item model. This way it wont get broken if other packs use custom model data for the warped fungus on a stick, but all players must install the resource pack since item model doesnt support a fallback texture.
Update your key with the following command while holding a key in your mainhand for custom mode data
/execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{keylock:1b}}}}] run item modify entity @s weapon.mainhand {"function":"minecraft:set_components","components":{"minecraft:custom_model_data":{strings:["cmdg_key"]}}}
or this command for item model
/execute as @a[nbt={SelectedItem:{components:{"minecraft:custom_data":{keylock:1b}}}}] run item modify entity @s weapon.mainhand {"function":"minecraft:set_components","components":{"minecraft:item_model":"keylock:key"}}
