Rosegold::Block
Inherits JSON::Serializable / Reference / Object
Constructors
from_block_state_id(state_id : UInt16) : Block
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
best_tool?(slot : Slot)
Sourcebreak_damage(main_hand : Slot, player : Player, creative : Bool = false) : Float64
Sourcecan_harvest?(slot : Slot)
Sourcehardness
Sourceharvest_tools
Sourceid_str
Sourcematerial
Sourcematerial_tool_multipliers
Sourcemax_state_id
Sourcemin_state_id
Sourcestates
Not individual block states, but the properties that, in combination, make up each block state. Empty array if block has only one state.
tool_speed_from_any_material(slot : Slot) : Float64 | Nil
Search all materials for the tool's speed multiplier. Handles cases where the block's material doesn't list all valid tools (e.g. obsidian's "incorrect_for_wooden_tool" omits diamond/netherite pickaxes).