tModLoader v2024.03
A mod to make and play Terraria mods
ItemHoldStyleID Class Reference

Assign Item.holdStyle to one of these to give your item an animation while not in use, but being held. The Use Style IDs wiki pagehas examples and animations of each of these hold styles, make sure to scroll down to the "Hold styles" section.
If none of these hold animations match what you want, consider using the ModLoader.ModItem.HoldStyle(Player, Microsoft.Xna.Framework.Rectangle) hook to implement a custom animation. More...

Static Public Attributes

const int HoldFront = 1
 Holding out in front of player.
Used for items such as torches, candles, and glowsticks
 
const int HoldGolfClub = 4
 Item held by both hands low.
Used by Golf Clubs.
 
const int HoldGuitar = 5
 Item held very low.
Used by guitar-shaped instruments
 
const int HoldHeavy = 3
 Holding out, but hand placed lower.
Used only by ItemID.MagicalHarp
 
const int HoldLamp = 6
 Item is held high by off hand.
Used by Nightglow.
 
const int HoldRadio = 7
 Arm is held close to body, as if holding a remote control joystick.
Used by Kwad Racer Drone
 
const int HoldUp = 2
 Holding up above player head.
Used by ItemID.BreathingReed, ItemID.Umbrella, and ItemID.TragicUmbrella
 
const int None = 0
 Default. No specific animation will happen while this item is held.
Used by any item by default.
 

Detailed Description

Assign Item.holdStyle to one of these to give your item an animation while not in use, but being held. The Use Style IDs wiki page

has examples and animations of each of these hold styles, make sure to scroll down to the "Hold styles" section.
If none of these hold animations match what you want, consider using the ModLoader.ModItem.HoldStyle(Player, Microsoft.Xna.Framework.Rectangle) hook to implement a custom animation.