Script API - v1.26.20.22
    Preparing search index...

    Class AimAssistPresetSettings

    import { AimAssistPresetSettings, world } from "@minecraft/server";

    // Example of creating aim assist preset settings object
    // This demonstrates the structure needed for aim assist preset configuration
    const presetSettings = new AimAssistPresetSettings("custom:my_preset");

    presetSettings.setExcludedTargets(["minecraft:item_frame", "minecraft:painting"]);
    presetSettings.setItemSettings({
    "minecraft:bow": "custom:ranged_category",
    "minecraft:crossbow": "custom:ranged_category",
    "minecraft:sword": "custom:melee_category",
    });
    presetSettings.setLiquidTargetingItems(["minecraft:bucket", "minecraft:water_bucket", "minecraft:lava_bucket"]);

    world.getAimAssist().addPreset(presetSettings);
    Index

    Constructors

    Properties

    defaultItemSettings?: string

    This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.

    handSettings?: string

    This property can't be edited in restricted-execution mode.

    This property can't be read in early-execution mode.

    identifier: string

    Methods

    • Returns string[]

    • Returns string[]

    • Returns string[]

    • Returns string[]

    • Returns Record<string, string>

    • Returns string[]

    • Parameters

      • OptionalblockTagTargets: string[]

      Returns void

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Parameters

      • OptionalblockTargets: string[]

      Returns void

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Parameters

      • OptionalentityTargets: string[]

      Returns void

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Parameters

      • OptionalentityTypeFamilyTargets: string[]

      Returns void

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Parameters

      • itemSettings: Record<string, string>

      Returns void

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.

    • Parameters

      • Optionalitems: string[]

      Returns void

      This function can't be called in restricted-execution mode.

      This function can't be called in early-execution mode.