Types
The small values every page uses: places, block positions, IDs, colours, times and settings.
Place
A point in the world, in blocks (one block is one metre); y is up.
Plain data, copied between the server and the plugin.
| Field | Description |
|---|---|
x: f64double x() | East. |
y: f64double y() | Up. |
z: f64double z() | South. |
BlockPos
A block's place. y runs from -64 to 191.
Plain data, copied between the server and the plugin.
| Field | Description |
|---|---|
x: i64long x() | East. |
y: i64long y() | Up. |
z: i64long z() | South. |
Turn
How something is turned (a quaternion).
Plain data, copied between the server and the plugin.
| Field | Description |
|---|---|
x: f64double x() | Its x part. |
y: f64double y() | Its y part. |
z: f64double z() | Its z part. |
w: f64double w() | Its w part. |
Colour
A colour, each part 0 to 255.
Plain data, copied between the server and the plugin.
| Field | Description |
|---|---|
r: i64long r() | Red. |
g: i64long g() | Green. |
b: i64long b() | Blue. |
WorldOptions
The world's settings, as in server.toml.
Plain data, copied between the server and the plugin.
| Field | Description |
|---|---|
difficulty: DifficultyDifficulty difficulty() | Normal, hard or hardcore. |
combat: CombatStyleCombatStyle combat() | Turn-based battles or real-time action. |
keep_inventory: boolboolean keepInventory() | Whether a player who faints keeps what they carry. |
creative: boolboolean creative() | Creative mode for everyone. |
Difficulty
How hard the world is.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Difficulty::NormalDifficulty.NORMAL | Normal. |
Difficulty::HardDifficulty.HARD | Creatures hit harder and starving can make a player faint. |
Difficulty::HardcoreDifficulty.HARDCORE | Hard, and one life: a player who faints stays down. |
CombatStyle
How fights work.
One of a fixed set of values.
| Value | Meaning |
|---|---|
CombatStyle::TurnBasedCombatStyle.TURN_BASED | Turn-based battles. |
CombatStyle::ActionCombatStyle.ACTION | Real-time combat. |
Store
Which store a player's account is from.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Store::MetaStore.META | The Meta Horizon Store (Quest). |
Store::PicoStore.PICO | The PICO Store. |
Store::SteamStore.STEAM | Steam. |
Store::NoneStore.NONE | No store account (development servers only). |
LeaveReason
Why a player left.
One of a fixed set of values.
| Value | Meaning |
|---|---|
LeaveReason::LeftLeaveReason.LEFT | They left. |
LeaveReason::KickedLeaveReason.KICKED | They were put out. |
LeaveReason::BlockedLeaveReason.BLOCKED | They were blocked. |
LeaveReason::ConnectionLostLeaveReason.CONNECTION_LOST | Their connection ended. |
LeaveReason::ServerStoppingLeaveReason.SERVER_STOPPING | The server is stopping. |
DamageCause
What hurt a player.
One of a fixed set of values.
| Value | Meaning |
|---|---|
DamageCause::CreatureDamageCause.CREATURE | A creature's attack or shot. |
DamageCause::FallDamageCause.FALL | A fall. |
DamageCause::DrowningDamageCause.DROWNING | Running out of breath. |
DamageCause::HungerDamageCause.HUNGER | Starving. |
DamageCause::BurningDamageCause.BURNING | Burning, after lava. |
DamageCause::LavaDamageCause.LAVA | Lava. |
DamageCause::TrapDamageCause.TRAP | A dungeon trap. |
DamageCause::FallingBlockDamageCause.FALLING_BLOCK | A falling spike or block. |
DamageCause::PluginDamageCause.PLUGIN | A plugin. |
DamageCause::OtherDamageCause.OTHER | Anything else. |
SpawnReason
Why a Voxelmon appeared.
One of a fixed set of values.
| Value | Meaning |
|---|---|
SpawnReason::WildSpawnReason.WILD | The wild. |
SpawnReason::DungeonSpawnReason.DUNGEON | A dungeon. |
SpawnReason::DenSpawnReason.DEN | A den underground. |
SpawnReason::HiveSpawnReason.HIVE | A hive. |
SpawnReason::FishingSpawnReason.FISHING | A fishing hook. |
SpawnReason::BreedingSpawnReason.BREEDING | Breeding at a ranch. |
SpawnReason::GuardianSpawnReason.GUARDIAN | A dungeon guardian or a town's Voxelord. |
SpawnReason::PluginSpawnReason.PLUGIN | A plugin. |
LootSource
What loot is for.
One of a fixed set of values.
| Value | Meaning |
|---|---|
LootSource::ChestLootSource.CHEST | A chest in a town or the wild. |
LootSource::DungeonChestLootSource.DUNGEON_CHEST | A dungeon's chest. |
LootSource::SupplyCacheLootSource.SUPPLY_CACHE | A supply cache. |
LootSource::CreatureLootSource.CREATURE | A beaten creature. |
LootSource::BattleLootSource.BATTLE | A won battle. |
LootSource::FishingLootSource.FISHING | A fishing catch. |
LootSource::OtherLootSource.OTHER | Anything else. |
PlayerId
A player's lasting ID: the same each time they join, from their store account through Epic. Keep it as it is.
Written as type PlayerId = String;String (String).
CreatureId
A Voxelmon's lasting ID.
Written as type CreatureId = i64;long (int).
Duration
A length of time, in seconds.
Written as type Duration = f64;double (float).
Time
A moment, as seconds since 1970 (UTC).
Written as type Time = i64;long (int).