Interface LiquidDescriptor

Object to specify needed params for custom liquid block.

2.2.1b102

interface LiquidDescriptor {
    bucket?: {
        emptyId?: number;
        emptySound?: string;
        fillSound?: string;
        id?: string;
        isTech?: boolean;
        name?: string;
        texture: {
            meta?: number;
            name: string;
        };
    };
    flowing: {
        id?: string;
        texture: [string, number];
    };
    inCreative?: boolean;
    isRenewable?: boolean;
    modelTextures?: string;
    name: string;
    still: {
        id?: string;
        texture: [string, number];
    };
    tickDelay?: number;
    uiTextures?: string;
}

Properties

bucket?: {
    emptyId?: number;
    emptySound?: string;
    fillSound?: string;
    id?: string;
    isTech?: boolean;
    name?: string;
    texture: {
        meta?: number;
        name: string;
    };
}

Optional section, if added, this will create fully functional (including dispensers) bucket items.

Type declaration

  • OptionalemptyId?: number

    An item that can capture liquid (including when using a dispenser and obtaining it with your hand).

    325
    

    2.3.1b116

  • OptionalemptySound?: string
    "bucket.empty_water"
    
  • OptionalfillSound?: string
    "bucket.fill_water"
    
  • Optionalid?: string

    Optional, name ID for bucket item.

    "nameId_bucket"
    
  • OptionalisTech?: boolean

    If true, bucket cannot be obtained from creative inventory.

  • Optionalname?: string

    Name of the filled with liquid bucket to be displayed.

  • texture: {
        meta?: number;
        name: string;
    }
    • Optionalmeta?: number
    • name: string

2.2.1b103

flowing: {
    id?: string;
    texture: [string, number];
}

Object to describe dynamic liquid block texture, and name ID additionally.

Type declaration

  • Optionalid?: string

    Optional, name ID for dynamic liquid block.

    "nameId"
    
  • texture: [string, number]

    Unlike static liquid blocks, for dynamic ones, texture must look like "texture.liquid.png" (with no index).

inCreative?: boolean

Whether to add liquid block to creative inventory.

false
isRenewable?: boolean

True if the liquid will be renewable, as water.

false

2.2.1b103

modelTextures?: string
name: string

Name of the block to be displayed.

still: {
    id?: string;
    texture: [string, number];
}

Object to describe static liquid block texture, and name ID additionally.

Type declaration

  • Optionalid?: string

    Optional, name ID for static liquid block.

    "nameId_still"
    
  • texture: [string, number]

    For static liquid block, textures must be of standard block texture format.

tickDelay?: number

Delay between liquid spreading steps in ticks.

10
uiTextures?: string

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.