Basic swimming

This commit is contained in:
2026-10-01 21:12:30 -03:00
parent 6e5703a482
commit d5015edfa1
10 changed files with 203 additions and 20 deletions
+6
View File
@@ -150,6 +150,12 @@ export interface BlockRegistry {
compiled_states?: CompiledStateDefinition[];
}
// water, and any other block entities pass through and players can place into. what entities swim in, and where
// falling doesn't hurt
export function is_liquid_block(block: BlockRegistry | undefined): boolean {
return block !== undefined && !block.has_collision && block.replaceable === true;
}
// what a tool is made of, like minecraft's ToolMaterial
export interface ToolProperties {
// like "pickaxe", matched against blocks' tool_to_break