import { EntityDamageCause, EntityComponentTypes } from "@minecraft/server";

// CONSTANTS
export const DOUBLE_SNEAK_TICKS = 10;
export const DOUBLE_JUMP_TICKS = 10;
export const PROGRESSBAR_LENGTH = 40;
export const PROGRESSBAR_ICON_STAGE = "║";
export const PROGRESSBAR_ICON_NORMAL = ":";
export const ATTACK_MAPPINGS = [
    { name: "Skill1", icon: "S1", keybind: ":_input_key.use:", attackKey: "skill1Attack" },
    { name: "Skill2", icon: "S2", keybind: ":_input_key.sneak: + :_input_key.use:", attackKey: "skill2Attack" },
    { name: "Skill3", icon: "S3", keybind: ":_input_key.sneak: + :_input_key.sneak:", attackKey: "skill3Attack" }
];

export const HEAT_INVALID_DAMAGE_CAUSES = [
    EntityDamageCause.starve,
    EntityDamageCause.flyIntoWall,
    EntityDamageCause.piston,
    EntityDamageCause.selfDestruct,
    EntityDamageCause.suffocation,
    EntityDamageCause.void,
    EntityDamageCause.drowning,
    EntityDamageCause.none,
    EntityDamageCause.fall,

]
export const VALID_NAVIGATION_COMPONENTS = [
    EntityComponentTypes.NavigationGeneric,
    EntityComponentTypes.NavigationWalk,
    EntityComponentTypes.NavigationFly,
    EntityComponentTypes.NavigationHover,
    EntityComponentTypes.NavigationClimb,
    EntityComponentTypes.NavigationFloat,
];

export const CMN_EXCLUDE_TYPES = [
    "minecraft:item",
    "minecraft:experience_orb"
];
export const CMN_EXCLUDE_FAMILIES = [
    "inanimate",
    "oct_eg.gauntlet_attack",
    "oct_eg.projectile",
    "oct_eg.attack_cast_preview",
    "oct_eg.dummy"
];