Skip to main content

Module world

Module world 

Source
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 the world.

Modules§

generation
Worlds generated.
loot
Loot tables rolled.

Structs§

DropLoot
Rolls a loot table and drops its items at pos.
EntitiesInBox
The uuids of the entities in a box.
EntityCount
How many entities of entity_type are in dim (None: no such dimension or type).
Explode
Makes an explosion.
Explosion
Fired when an explosion occurs in a world.
FillRegion
Fills a box with state; how many blocks changed (None: failed).
GetBlock
The block at pos (minecraft:stone); None without the dimension.
IsRaining
Whether it rains in dim.
IsThundering
Whether it thunders in dim.
PlaceFeature
Places a configured feature at pos.
RaycastBlock
The first block a ray hits.
RaycastEntity
The first entity a ray hits: its uuid.
ScanRegion
The non-air blocks in a box.
SetBlock
Sets the block at pos; whether it did.
SetThunder
Starts or stops thunder.
SetTime
Sets the time of day (0 dawn, 6000 noon, 12000 dusk, 18000 midnight).
SetWeather
Starts or stops rain for duration ticks.
Time
The time of day of dim; None without the dimension.

Functions§

drop_loot
Rolls a loot table and drops its items at pos.
entities_in_box
The uuids of the entities in a box.
entity_count
How many entities of entity_type are in dim (None: no such dimension or type).
explode
Makes an explosion.
fill_region
Fills a box with state; how many blocks changed (None: failed).
get_block
The block at pos (minecraft:stone); None without the dimension.
is_raining
Whether it rains in dim.
is_thundering
Whether it thunders in dim.
place_feature
Places a configured feature at pos.
raycast_block
The first block a ray hits.
raycast_entity
The first entity a ray hits: its uuid.
scan_region
The non-air blocks in a box.
set_block
Sets the block at pos; whether it did.
set_thunder
Starts or stops thunder.
set_time
Sets the time of day (0 dawn, 6000 noon, 12000 dusk, 18000 midnight).
set_weather
Starts or stops rain for duration ticks.
time
The time of day of dim; None without the dimension.