attack

open fun attack(staffStack: ItemStack, world: World, attacker: LivingEntity, hand: Hand)(source)

Called on both the client by Architectury API and the server by Staff Mod, when an entity attacks thin air with a staff.

Parameters

staffStack

The item stack used to perform the action

world

The world the attacker is in

attacker

The entity, which attacked with the staff

hand

The hand of the attacker, in which the staff is