18 Commits

Author SHA1 Message Date
7e7a98bd41 "deferred block updates": falling sand and flowing water 2025-09-27 22:07:26 +02:00
M6a5x98
b23e19ecd4 implement !msg and !help chat commands
* Added the !msg and !help command

* Started fixing issues

* Rewrote !msg processing in chat system

* cleanup

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
2025-09-19 01:20:50 +03:00
SDFTDusername
ba86dfd927 implement sheep shearing
* Added shearing sheeps

* Added empty line

* Changed comment in MobData to say what the middle 1 bit is used for

* Replaced if statements with a switch statement and early returns

* Send mob metadata to players that join

* Fixed mob metadata getting freed when exiting the switch statement

* remove currently unnecessary check

* use bitwise and in place of modulo

* style nitpicks

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
2025-09-16 13:36:42 +03:00
SDFTDusername
c5e8408052 implement player poses (sneak/sprint)
* Added sending player metadata with poses to everyone

* Renamed sendPlayerMetadataToAll to broadcastPlayerMetadata

* Made entity metadata system flexible

* Made broadcastPlayerMetadata create new metadata instead of using a global one

* Moved writeEntityData, sizeEntityData and sizeEntityMetadata to procedures

* style nitpicks

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
2025-09-15 22:01:22 +03:00
p2r3
e3589a02f0 fix player entities desyncing on join sometimes 2025-09-13 20:06:25 +03:00
anmol-patankar
ba03d92ad0 fix mobs spawning in water
* Fixed underwater under lava mob spawn issue #17

* made comment changes

* minor fix

* method name change

* method change

* fixed
2025-09-12 19:53:08 +03:00
p2r3
f3fbde3134 terminate connections on long network timeouts 2025-08-31 00:01:35 +03:00
p2r3
5e4462a3bc broadcast disconnecting players 2025-08-30 00:14:47 +03:00
p2r3
ecaa62da69 explicitly handle running out of block changes 2025-08-29 15:57:38 +03:00
p2r3
99a09dc59f debloat includes 2025-08-29 06:21:11 +03:00
p2r3
ca6f8afbea implement chests 2025-08-28 23:51:00 +03:00
p2r3
71737380d5 implement water flow 2025-08-26 22:54:48 +03:00
p2r3
ec83594f26 properly handle stack sizes 2025-08-24 14:47:52 +03:00
p2r3
0945de26f0 refactor use item handler 2025-08-23 17:54:05 +03:00
p2r3
3c86db75fb implement composter 2025-08-23 15:55:46 +03:00
p2r3
b020cec224 fix mobs spawning at bad Y coordinate 2025-08-23 02:13:51 +03:00
p2r3
e311b0cbe4 implement mob combat 2025-08-22 17:41:29 +03:00
p2r3
4da773b943 refactor game-specific tools into separate file 2025-08-22 14:00:38 +03:00