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:
ORelio 2015-12-12 16:48:29 +01:00
parent 00131de08b
commit b0c8f82697
9 changed files with 475 additions and 17 deletions

View file

@ -215,7 +215,7 @@ namespace MinecraftClient.Protocol.Handlers
break;
case 0x23: //Block Change
if (Settings.TerrainAndMovements)
handler.GetWorld().SetBlock(Location.FromLongRepresentation(readNextULong(packetData)), new Block((ushort)readNextVarInt(packetData)));
handler.GetWorld().SetBlock(Location.FromLong(readNextULong(packetData)), new Block((ushort)readNextVarInt(packetData)));
break;
case 0x26: //Map Chunk Bulk
if (Settings.TerrainAndMovements)