Package-level declarations

Custom blocks on note-block states (EffectiveBlock): generated model and blockstates, own hardness, tool types and tiers, sounds, drops, onPlace / onBreak hooks; EffectiveBlockWithEntity adds a marker entity per block for per-block data.

Types

Link copied to clipboard
abstract class EffectiveBlock

Base class for a custom block backed by a note-block state. ⚠️ Work in progress. Mining, drops and sounds are less battle-tested than items; getCustomBlocks goes through the internal world block cache, which has known bugs. The API may change.

Link copied to clipboard

An EffectiveBlock that carries a Marker entity at its centre — a place to keep per-block data.

Link copied to clipboard

Material tier of a tool, ordered by level — a tool harvests a block only if its tier is at least the block's.

Link copied to clipboard

Tool type that mines a block faster and, if the block requires it, is one of those that can drop its item.