Skip to main content

UseActions

What hold-right-click action an item you're using has. As this is for holding actions only, there are no use actions for single press actions like placing a block, feeding an animal, or using blocks like buttons, doors, or trapdoors.

Example:

function events.tick()
local isEating = player:getActiveItem():getUseAction() == "EAT"
animations.myModel.eat:setPlaying(isEating)
end

All Use Actions

ActionDescription
NONENot using any use action
EATEating
DRINKDrinking
BLOCKBlocking
BOWDrawing back a bow
SPEARPreparing to throw a trident
CROSSBOWLoading a crossbow (not while holding a loaded crossbow)
SPYGLASSPeering through a spy glass
TOOT_HORNTooting a horn
BRUSHUsing a brush