usageTick

open fun usageTick(staffStack: ItemStack, world: World, user: LivingEntity, remainingUseTicks: Int)(source)

Called on both the client and the server by Minecraft every tick an entity uses the staff.

Parameters

staffStack

The item stack used to perform the action

world

The world user is in

user

The entity, which uses the staff

remainingUseTicks

The number of ticks remaining before an entity finishes using the staff counting down from maxUseTime to 0

See also