import { Block, Dimension, Direction, Player } from "@minecraft/server";
import { mobSensorViewMain } from "../../../views/blocks/monSensorViews";

/**
 * Evento onPlayerInteract del componente mobSensorComponent
 * Addon: Electrical Creativity BP
 * @param {{face: Direction, faceLocation: Vector3, player: Player, block: Block, dimension: Dimension}} event
 */
export const mobSensorOnPlayerInteractEvent = ({ face, faceLocation, player, block, dimension }) => {
    if (!block.permutation.getState('nps_ec:power')) return;
    mobSensorViewMain(block, player)
};