--EMOTES-- local mainPage = action_wheel:newPage() action_wheel:setPage(mainPage) function pings.Victory() animations.model.win:play() end function pings.Sitting(state) animations.model.sit_emote:setPlaying(state) end -- mainPage:newAction() :title("Wave") :item("minecraft:lantern") :hoverColor(1,1,0) :onLeftClick(pings.Wave) mainPage:newAction() :title("Wave") :item("minecraft:lantern") :hoverColor(1,1,0) :onLeftClick(pings.Victory) local lastItem = "minecraft:air" function events.tick() if player:getHeldItem().id ~= lastItem then --do stuff lastItem = player:getHeldItem().id animations.model.item:play() end end