Rename engine to cubi

This commit is contained in:
2026-11-03 17:17:37 -03:00
parent 68b78f053a
commit 98fa45ebd1
109 changed files with 643 additions and 788 deletions
+2 -2
View File
@@ -1623,7 +1623,7 @@ export class GameServer {
// the engine's own commands, registered like mods' so they're in /help and suggested the same way
#register_commands() {
const register = (node: CommandNode<ServerCommandSource>) => this.mods.register_command("engine", node);
const register = (node: CommandNode<ServerCommandSource>) => this.mods.register_command("cubi", node);
// TODO: only let operators do this
// with data, any json, like { "damage": 10 } on a tool, or a fluid container full of a fluid with its data
@@ -2563,7 +2563,7 @@ function death_message(name: string, source: DamageSource) {
// the states a block is placed with: its defaults, and a "facing" state turned towards whoever placed it, like
// minecraft's getStateForPlacement with getHorizontalDirection().getOpposite(). facing is 0 north, 1 east, 2 south,
// 3 west, and variants turn the model with it (its north side is the front, like engine:cube's). they look along
// 3 west, and variants turn the model with it (its north side is the front, like cubi:cube's). they look along
// (-sin yaw, -cos yaw), so the way back to them is (sin yaw, cos yaw)
// where a player is now, for everyone else
function player_move(player: ServerPlayer): ServerMessage {