MacrocosmBlock

An interface for all custom macrocosm blocks

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Sounds

Various pre-made sound banks that can be used for blocks

Functions

Link copied to clipboard
open fun place(placer: Player, mc: MacrocosmPlayer, at: Location)

Places this block at provided location

Link copied to clipboard
abstract fun pool(player: Player, mc: MacrocosmPlayer): LootPool

Builds a loot pool for this block, to drop for player

Properties

Link copied to clipboard

Base skill experience amount that is given after breaking this block

Link copied to clipboard
abstract val hardness: Int

The hardness of this block. Breaking speed depends on this value.

Link copied to clipboard
abstract val id: Identifier

The identifier of this block.

Link copied to clipboard

The sounds that this block produces at certain conditions

Link copied to clipboard
abstract val steadiness: Int

The steadiness of this block. Breaking power required to break this block depends on this value.

Link copied to clipboard
abstract val suitableTools: List<ItemType>

Tools, suitable for breaking this block.

Link copied to clipboard

The identifier pointing to resource pack location of the texture for this block. Defaults to $id.namespace:block/$id.path