Expand description
The bus’s domains: each one’s actions as functions
(world::get_block(dim, pos), entity::position(uuid),
player::give_item(name, item, count)) beside its events.
What happens to blocks.
Structs§
- Bonemeal
- Applies bone meal to the block.
- Break
- Fired when a player breaks a block (server side).
- Destroy
- Breaks the block (dropping it or not).
- Info
- The block’s state.
- Insert
- A hopper or dropper offers an item to a block that accepts items
(
block.accepts_items): a service each such block provides (keyed by its id), answering whether it takes the item. - Inventory
Slot - A container’s slot.
- Nbt
- A block entity’s data as SNBT.
- Place
- Fired when a player places a block (server side).
- Pour
Fluid - Empties a bucket at
pos. - Redstone
Power - The redstone power reaching the block;
Nonewithout the dimension. - Redstone
Signal - The strongest signal the block gives out;
Noneif it gives none. - SetInventory
Slot - Sets a container’s slot.
- SetNbt
- Merges
snbtinto a block entity’s data. - SetRedstone
Output - Sets a mod block’s redstone output.
- SetState
- Sets the block state at
pos. - State
- The block state at
pos(minecraft:oak_log[axis=y]). - Use
- Fired when a player right-clicks a block (server side).
- UseItem
- Uses
itemon a face of the block, asplayerwould.
Functions§
- bonemeal
- Applies bone meal to the block.
- destroy
- Breaks the block (dropping it or not).
- info
- The block’s state.
- inventory_
slot - A container’s slot.
- nbt
- A block entity’s data as SNBT.
- pour_
fluid - Empties a bucket at
pos. - property
- Property
nameof the block atpos("energized"→"true"). - redstone_
power - The redstone power reaching the block;
Nonewithout the dimension. - redstone_
signal - The strongest signal the block gives out;
Noneif it gives none. - set_
inventory_ slot - Sets a container’s slot.
- set_nbt
- Merges
snbtinto a block entity’s data. - set_
properties - Sets some properties of the block at
pos("energized=true,powered=false"), keeping the rest;falseif there’s no block or the state doesn’t take. - set_
redstone_ output - Sets a mod block’s redstone output.
- set_
state - Sets the block state at
pos. - state
- The block state at
pos(minecraft:oak_log[axis=y]). - use_
item - Uses
itemon a face of the block, asplayerwould.