onBlockInteract

open fun onBlockInteract(Player: Player, world: Level, blockPos: BlockPos): InteractionResult

Used if player is in path edit mode. Interacted blocks are removed from the path of selected org.samo_lego.taterzens.npc.TaterzenNPC.

Return

FAIL if player has selected NPC and is in path edit mode, otherwise PASS.

Parameters

Player

player breaking the block.

world

world where block is being broken.

blockPos

position of block interaction.