PlayerSellableAdvancedShopItem: {
    amountWanted: number;
    currentAmount: number;
    extraRestrictions: {
        canDestroy?: string[];
        canPlaceOn?: string[];
        dataValue?: number;
        dynamicProperties?: [string, string | number | boolean][];
        excludedEnchantmentTypes?: string[];
        keepOnDeath?: boolean;
        lockMode?: ItemLockMode;
        lore?: string[];
        maximumDurability?: number;
        minimumDurability?: number;
        nameTag?: string;
        optionalAdditionalEnchantments?: (
            | { maxLevel: number; minLevel: number; type: string }
            | { level: number; type: string }
        )[];
        potionEffectType?: string;
        potionLiquidType?: string;
        potionModifierType?: string;
        requiredEnchantments?: (
            | { maxLevel: number; minLevel: number; type: string }
            | { level: number; type: string }
        )[];
        requiredEnchantmentsMode?: "ignore" | "exact" | "allow_additional";
    };
    format_version: "2.0.0";
    itemID: string;
    itemType: "player_shop_sellable_advanced";
    playerID: `${number}`;
    step: number;
    texture?: string;
    title: string;
    type: "player_shop_item";
    value: number;
}

An advanced item for the sell section of the PlayerShop.

Type declaration

  • amountWanted: number
  • currentAmount: number
  • extraRestrictions: {
        canDestroy?: string[];
        canPlaceOn?: string[];
        dataValue?: number;
        dynamicProperties?: [string, string | number | boolean][];
        excludedEnchantmentTypes?: string[];
        keepOnDeath?: boolean;
        lockMode?: ItemLockMode;
        lore?: string[];
        maximumDurability?: number;
        minimumDurability?: number;
        nameTag?: string;
        optionalAdditionalEnchantments?: (
            | { maxLevel: number; minLevel: number; type: string }
            | { level: number; type: string }
        )[];
        potionEffectType?: string;
        potionLiquidType?: string;
        potionModifierType?: string;
        requiredEnchantments?: (
            | { maxLevel: number; minLevel: number; type: string }
            | { level: number; type: string }
        )[];
        requiredEnchantmentsMode?: "ignore" | "exact" | "allow_additional";
    }
    • OptionalcanDestroy?: string[]
    • OptionalcanPlaceOn?: string[]
    • OptionaldataValue?: number
    • OptionaldynamicProperties?: [string, string | number | boolean][]
    • OptionalexcludedEnchantmentTypes?: string[]

      Enchantment types that are not allowed to be on the item.

      This only applies when PlayerSellableAdvancedShopItem.extraRestrictions.requiredEnchantmentsMode is set to "allow_additional".

    • OptionalkeepOnDeath?: boolean
    • OptionallockMode?: ItemLockMode
    • Optionallore?: string[]
    • OptionalmaximumDurability?: number
    • OptionalminimumDurability?: number
    • OptionalnameTag?: string
    • OptionaloptionalAdditionalEnchantments?: (
          | { maxLevel: number; minLevel: number; type: string }
          | { level: number; type: string }
      )[]

      Additional enchantments that can be on the item but are actually optional.

      This only applies when PlayerSellableAdvancedShopItem.extraRestrictions.requiredEnchantmentsMode is set to "exact".

    • OptionalpotionEffectType?: string
    • OptionalpotionLiquidType?: string
    • OptionalpotionModifierType?: string
    • OptionalrequiredEnchantments?: (
          | { maxLevel: number; minLevel: number; type: string }
          | { level: number; type: string }
      )[]

      Enchantments that are required to be on the item.

      This is ignored when PlayerSellableAdvancedShopItem.extraRestrictions.requiredEnchantmentsMode is set to "ignore".

    • OptionalrequiredEnchantmentsMode?: "ignore" | "exact" | "allow_additional"
  • format_version: "2.0.0"
  • itemID: string
  • itemType: "player_shop_sellable_advanced"
  • playerID: `${number}`
  • step: number
  • Optionaltexture?: string
  • title: string
  • type: "player_shop_item"
  • value: number