Загрузка данных


vanilla_model.PLAYER:setVisible(false)
vanilla_model.CAPE:setVisible(false)
vanilla_model.ELYTRA:setVisible(false)

local GSBlend = require("GSAnimBlend")
local anims = require("EZAnims")

-- состояние
local wingsEnabled = true

-- безопасный путь
local wings = models.model and models.model.Wings

if not wings then
    print("Wings not found!")
    return
end

-- создаём кнопку
local action = action_wheel:newAction()

-- обновление текста
local function updateAction()
    if wingsEnabled then
        action:title("Wings: ON")
    else
        action:title("Wings: OFF")
    end
end

-- переключение
local function toggleWings()
    wingsEnabled = not wingsEnabled

    if wingsEnabled then
        wings:setScale(1,1,1)
    else
        wings:setScale(0,0,0)
    end

    updateAction()
end

-- кнопка
action
    :item("minecraft:elytra")
    :onLeftClick(function()
        toggleWings()
    end)

-- старт
wings:setScale(1,1,1)
updateAction()