import {world, Player} from "@minecraft/server";
import { debug, Check, getCooldownTime, clamp, healthParticle, toColor } from "../mathAndCalculations.js";


// For making sure the attack cooldown isn't triggered when the player interacts with levers or buttons.
world.afterEvents.playerInteractWithBlock.subscribe((data) => {
	const { player, block, faceLocation: location, beforeItemStack: item } = data;
	if (block) {
		player.__rightClick = true;
	}
});
