mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add simple movements with /move command
- Determine if we can move to the specified direction - Add moving ability to the specified direction - Add /move command for triggering moves - Add move decomp. into steps (more natural) - Add pathfinding routines (still WIP) - SO YES YOU CAN NOW WALK USING MCC!!!
This commit is contained in:
parent
00131de08b
commit
b0c8f82697
9 changed files with 475 additions and 17 deletions
|
|
@ -342,5 +342,24 @@
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if the provided material is a liquid a player can swim into
|
||||
/// </summary>
|
||||
/// <param name="m">Material to test</param>
|
||||
/// <returns>True if the material is a liquid</returns>
|
||||
public static bool IsLiquid(this Material m)
|
||||
{
|
||||
switch (m)
|
||||
{
|
||||
case Material.Water:
|
||||
case Material.StationaryWater:
|
||||
case Material.Lava:
|
||||
case Material.StationaryLava:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue