on Stopped Using
open fun onStoppedUsing(staffStack: ItemStack, world: World, user: LivingEntity, remainingUseTicks: Int)(source)
Called on both the client and the server by Minecraft, when an entity stops using the staff before being used for maxUseTime. If that time is reached, finishUsing will be called.
Parameters
staff Stack
The item stack used to perform the action
world
The world the user is in
user
The entity, which used the staff
remaining Use Ticks
The number of ticks left until reaching maxUseTime