Expand description
This crate contains APIs for defining game behaviors/content in Perovskite
Some APIs are re-exported directly from perovskite_server and are subject to change;
they are available with the unstable_api crate feature.
Modules§
- animals
- Animals
- blocks
- Contains utilities for defining types of blocks in the world, as well as items that simply correspond to a block stored in inventory.
- carts
- Carts on rails
- circuits
- Provides digital circuits that can be used in the default game.
- colors
- Provides colors that can be used in the default game, as well as a unified set of items representing dyes in different colors. Also provides functionality to colorize textures automatically, allowing one base texture to be used for multiple blocks in different colors.
- constants
- Common constant values useful to game content.
- default_
game - Provides a default set of game content centered around exploring a natural procedurally-generated world, collecting resources through mining, converting resources to useful materials, building structures out of them, etc.
- discord
- farming
- game_
builder - Provides functionality to build and start a game and server.
- items
- Contains utilities for defining items.
Macros§
- include_
texture_ bytes - Convenience helper for including a texture in the source tree into the game.
- maybe_
export
Structs§
- Block
Coordinate - A 3D coordinate in the world.
- Chunk
Coordinate - Represents a location of a map chunk.
- Chunk
Offset - Represents an offset of a block within a chunk.
- NonExhaustive
- Marker that a struct may be extended in the future