andrewvy / HHVMCraft

:package: Minecraft Beta 1.7.3 Server implemented in PHP/HHVM, powered by ReactPHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Things to make functional demo

andrewvy opened this issue · comments

commented

Required

  • Add EntityManager and create/manage player entities properly.
  • Add Block/Item Provider and all the blocks/items for lookup.
  • Add Region.
  • Add ChunkProvider.
  • Manage player inventories.
  • Send over compressed chunks.
  • Add Item NBT Data.
  • Add read/write floats and doubles

Packets

  • EntityVelocityPacket
  • DestroyEntityPacket
  • WIndowItemsPacket
  • SpawnPositionPacket
  • KeepAlivePacket
  • SetPlayerPositionPacket
  • TimeUpdatePacket
  • EntityTeleportPacket
  • EntityMetadataPacket
  • ChunkPreamblePacket
  • ChunkDataPacket
  • ChatMessagePacket
  • DisconnectPacket
  • PlayerGroundedPacket
  • PlayerPositionPacket
  • PlayerLookPacket
  • PlayerPositionAndLookPacket
  • PlayerDiggingPacket
  • PlayerBlockPlacementPacket
  • ChangeHeldItemPacket
  • PlayerActionPacket
  • ClickWindowPacket
  • CloseWindowPacket
commented

Holy crap! We're in the game!

commented

image

We're really close now. We can jump around, chat, and "place" blocks (client-sided)!

commented

2016-01-09_13 24 36

Now we have extremely buggy support for placing blocks! 💯 Slowly but surely.

commented

Block placement is no longer as buggy! And the /give command has been implemented, allowing for basic building now!

Next up: destroying blocks!

commented

Recently:

  • Destroying blocks has been implemented.
  • Chunks are now loaded instead of generated on the fly everytime.
  • Block changes now affect chunks / and as a result changes persist in chunks!
  • Disconnect works without crashing the server
  • Multiplayer actually works!

4 minecraft clients connected at the same time. Server is only at 130MB and 3% cpu utilization.

This is so cool. Amazing work!

I could contribute if needed. I just need help with setup, it wont work for me.