Commit Graph

245 Commits

Author SHA1 Message Date
Alexander Medvedev
8a716b0586 Merge pull request #40 from Erb3-forked/format-docs
docs: format markdown
2024-08-20 17:10:07 +01:00
Snowiiii
938a415f77 Add Play Ping/Pong
Used for Debug, F3+3
2024-08-20 18:07:22 +02:00
Erb3
fcceb59abe docs: format contributing 2024-08-20 18:05:16 +02:00
Erb3
09ce32ab45 docs: run formatter 2024-08-20 17:50:28 +02:00
Snowiiii
5122097d0d Add Clientbound Acknowledge Block Change
Acknowledges a user-initiated block change. After receiving this packet, the client will display the block state sent by the server instead of the one predicted by the client.
2024-08-20 17:33:03 +02:00
Alexander Medvedev
589d2585b8 Merge pull request #39 from user622628252416/master
Command Parser
2024-08-20 16:31:50 +01:00
user622628252416
fd544b52ed add todo to CommandTree formatting 2024-08-20 17:09:03 +02:00
user622628252416
92e6d264b4 format code 2024-08-20 17:01:25 +02:00
user622628252416
413f88d145 suppress dead_code warning on Literal command node 2024-08-20 16:51:44 +02:00
user622628252416
4bc1f7b0b2 fix clippy lints 2024-08-20 16:32:39 +02:00
Snowiiii
66ce63b880 Add Block Breaking 2024-08-20 14:30:54 +02:00
Snowiiii
7d89a4e9be Add Clientbound Set Block Destroy Stage 2024-08-20 14:25:48 +02:00
Snowiiii
ace7a77046 Add Clientbound World Event 2024-08-20 14:12:05 +02:00
Snowiiii
49dfc18818 Fix: Clippy & fmt 2024-08-20 13:23:32 +02:00
Snowiiii
b7a4b9da2c CI: Check Linting and Format 2024-08-20 13:20:28 +02:00
Snowiiii
a6fbc3d13a Fix: Serverbound Chat Message 2024-08-20 13:19:50 +02:00
Alexander Medvedev
5445975238 Merge pull request #38 from Bryntet/master
Add Player Inventory
2024-08-20 12:01:01 +01:00
Bryntet
006eacfadf Merge branch 'master' into master 2024-08-20 12:56:00 +02:00
Edvin Bryntesson
e86889f4c0 fix so that right-clicking with non-blocks is possible 2024-08-20 12:50:35 +02:00
Edvin Bryntesson
65d9f39455 better naming 2024-08-20 12:45:21 +02:00
user622628252416
23458e85b8 Merge remote-tracking branch 'origin/master' 2024-08-20 12:39:15 +02:00
user622628252416
3ec539d418 resolve merge conflicts 2024-08-20 12:38:54 +02:00
Edvin Bryntesson
c18cbdc06b add logic for placing blocks 2024-08-20 12:32:05 +02:00
Edvin Bryntesson
1b1300e194 make registries public 2024-08-20 12:31:46 +02:00
Edvin Bryntesson
f4ab2ce585 fix global registry and add function to easily access minecraft ids 2024-08-20 12:30:42 +02:00
Edvin Bryntesson
47a7117fea fix error message 2024-08-20 12:29:39 +02:00
user622628252416
0a690513dd resolve merge conflicts 2024-08-20 12:26:52 +02:00
user622628252416
d221f8900f add documentation 2024-08-20 12:09:25 +02:00
Edvin Bryntesson
23613194a7 fix off by one error 2024-08-20 11:35:28 +02:00
Edvin Bryntesson
b2430ce3d4 make block place the item that is held. 2024-08-20 11:23:21 +02:00
Edvin Bryntesson
3d21a991a0 rename item_categories.rs 2024-08-20 10:13:19 +02:00
lukas0008
3b55bc428c Fix: make PacketEncoder work again 2024-08-20 00:11:08 +02:00
Edvin Bryntesson
2cf844536a add basic logic for set slot in player inventory 2024-08-19 23:41:44 +02:00
Edvin Bryntesson
3d8c9cc62e use usize for selected slot 2024-08-19 23:40:43 +02:00
Edvin Bryntesson
658cb297f1 add item category checks
this is for if a specific slot can only accept a specific category of items, like you can only put helmets in the helmet armor slot
2024-08-19 23:39:39 +02:00
Edvin Bryntesson
918364f536 add item id and count to item struct 2024-08-19 23:38:05 +02:00
Edvin Bryntesson
9e14952046 fix typo 2024-08-19 23:37:35 +02:00
Edvin Bryntesson
9223c8bf54 Add missing slots in inventory 2024-08-19 23:36:21 +02:00
Alexander Medvedev
222b40c8bd Add World struct
We also check now if world exits
2024-08-19 21:14:48 +01:00
Alexander Medvedev
de7b3aa2ea Fix: all clippy warns 2024-08-19 20:08:02 +01:00
Snowiiii
a6d9ed216d Use Cow's in TextComponent
We now don't always convert &str to Strings allowing us to use stack allocations
2024-08-19 20:05:18 +02:00
user622628252416
bfb3840b94 add help command 2024-08-19 19:55:50 +02:00
Alexander Medvedev
dfc0b8afe9 Merge pull request #37 from KolibroidAmy/typo_fix
Fix some minor typos
2024-08-19 18:06:50 +01:00
Kolibroid
1a21290e0f Fix some minor typos 2024-08-19 17:52:04 +01:00
user622628252416
40b2fdc45f add command usage hint after syntax error 2024-08-19 18:33:06 +02:00
Snowiiii
43fbb6a68d Fix: Resource pack 2024-08-19 15:05:16 +02:00
user622628252416
943f8fcd4c add tree-style command parsing utilities, heavily inspired by Mojang's Brigadier and adjust existing commands to use them 2024-08-19 00:31:24 +02:00
Snowiiii
77b205ada0 Fix: Rotation 2024-08-18 20:16:28 +02:00
Snowiiii
4c34a98ad5 Fix: Knockback calculation
Now only our yaw rotation is broken but not the knockback calculation
2024-08-18 19:32:22 +02:00
Snowiiii
c7b3ce6391 Fix: Serverbound Interact 2024-08-18 18:38:49 +02:00