ScriptInteractionUtil

Functions

Link copied to clipboard
@JvmName(name = "attackEntity")
fun attackEntityJs(entity: Entity, swing: Boolean, keepSprint: Boolean)
Link copied to clipboard
@JvmName(name = "interactEntity")
fun interactEntity(entity: Entity, hand: InteractionHand)
Link copied to clipboard
@JvmName(name = "placeBlock")
fun placeBlock(blockPos: BlockPos, hand: InteractionHand): Boolean

Places a block at the given blockPos using the given hand.

Link copied to clipboard
@JvmName(name = "useItem")
fun useItem(hand: InteractionHand)