custom_item_models_attachable > rp > attachables > geysercmd > gmdl_1.json
{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "geysercmd:gmdl_1",
"materials": {
"default": "entity_alphatest",
"enchanted": "entity_alphatest"
},
"textures": {
"default": "textures/blocks/geysercmd/gmdl_1",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.geysercmd.gmdl_1"
},
"scripts": {
"pre_animation": [
"v.main_hand = c.item_slot == 'main_hand';",
"v.off_hand = c.item_slot == 'off_hand';",
"v.head = c.item_slot == 'head';"
],
"animate": [
{
"thirdperson_main_hand": "v.main_hand && !c.is_first_person"
},
{
"thirdperson_off_hand": "v.off_hand && !c.is_first_person"
},
{
"thirdperson_head": "v.head && !c.is_first_person"
},
{
"firstperson_main_hand": "v.main_hand && c.is_first_person"
},
{
"firstperson_off_hand": "v.off_hand && c.is_first_person"
},
{
"firstperson_head": "c.is_first_person && v.head"
}
]
},
"animations": {
"thirdperson_main_hand": "animation.geysercmd.gmdl_1.thirdperson_main_hand",
"thirdperson_off_hand": "animation.geysercmd.gmdl_1.thirdperson_off_hand",
"thirdperson_head": "animation.geysercmd.gmdl_1.head",
"firstperson_main_hand": "animation.geysercmd.gmdl_1.firstperson_main_hand",
"firstperson_off_hand": "animation.geysercmd.gmdl_1.firstperson_off_hand",
"firstperson_head": "animation.geysercmd.disable"
},
"render_controllers": [
"controller.render.item_default"
]
}
}
}