Skip to main content

Block.LiquidDescriptor

since: 2.2.1b102

Object to specify needed params for custom liquid block.

Index

Properties

optionalbucket
since: 2.2.1b103

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).

  • optionalemptySound?: string
  • optionalfillSound?: string
  • optionalid?: string

    Optional, name ID for bucket item.

  • 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

flowing

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.

  • texture: [string, number]

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

optionalinCreative

inCreative?: boolean = false

Whether to add liquid block to creative inventory.

optionalisRenewable
since: 2.2.1b103

isRenewable?: boolean = false

True if the liquid will be renewable, as water.

optionalmodelTextures

modelTextures?: string

name

name: string

Name of the block to be displayed.

still

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.

  • texture: [string, number]

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

optionaltickDelay

tickDelay?: number = 10

Delay between liquid spreading steps in ticks.

optionaluiTextures

uiTextures?: string