Basic swimming
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user