SimpleMacrocosmBlock

constructor(id: String, name: String, itemRarity: Rarity, hardness: Number, steadiness: Int, baseExperience: Pair<Number, SkillType>, suitableTools: List<ItemType>, pool: LootPool, soundBank: BlockSoundBank, texture: String = id)(source)

Parameters

id

Unparsed ID of the block and item. It will further be parsed using Identifier.parse, so make sure to include your own namespace if needed!

name

Name of the block item. Supports MiniMessage formatting

hardness

The hardness of this block. Breaking speed depends on this value. Even though it supports a Number, the value will be rounded to an Int

steadiness

The steadiness of this block. Breaking power required to break this block depends on this value. Values below 0 are not supported

baseExperience

Base skill experience amount that is given after breaking this block

suitableTools

Tools, suitable for breaking this block.

pool

The static loot pool which will be used to determine the items to drop from this block. To generate a dynamic loot pool, override the pool method

soundBank

The sound bank containing events for this block, e.g. when it is broken/placed.

texture

Unparsed ID pointing to the texture of this block. By default, it is equal to id