Commit Graph

20 Commits

Author SHA1 Message Date
Edvin Bryntesson
8cde02e625 Add Shaped and Unshaped crafting support, as well as deserializing the entire recipe format (#165)
* add cleaner registry parsing

* start adding recipes

* add tags, and some crafting things

* Fix echest command

* add partly working crafting interface

* add generated assets

* fix container commands and clippy lints

* fix issues with resolving recursive item tags for crafting

* add flatten3x3 function

* add shapeless crafting

* add tests to and fix recipe flattening function

* refactor recipe system a bit

* add rayon to speed up initial loading of recipes

* almost working after rebase

* add deserialization for new crafting type "transmute"

* make crafting work again

* make shapeless recipes not require all permutations

* fixed visual bug with when taking out ingredients for crafting

* add support for new tags system
2024-11-12 12:57:14 +01:00
Snowiiii
9e7adec16b Parse Registries from JSON 2024-11-02 16:34:35 +01:00
Alexander Medvedev
e396399e66 Port to 1.21.2 (#171)
* Update JSON Files to 1.21.2

* Update constants to 1.21.2

* Port c_login_success to 1.21.2

* Fix: damage type

* Overhaul Packet ID system

We now use Packet IDS from enums.

1. This is very very nice for seeing which Packets are already implemented and which not.
2. This lets us easly port to newer Minecraft version, In vanilla there are no Packet ids hardcoded, Packet IDs will be parsed from a enum like this

* Port all Packets to 1.20.2

* Update README badge to 1.20.2

* Change doc for the new packet id system
2024-10-23 14:31:23 +02:00
Alexander Medvedev
91d190c212 Remove unused deps
to mention is the take_mut dep i removed. Its heavily outdated and uses unsafe combined with pointer magic.
2024-09-06 13:30:57 +01:00
lukas0008
8eb894ef13 Create pumpkin-core, and move pumpkin-text 2024-08-21 16:12:09 +02: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
Kolibroid
1a21290e0f Fix some minor typos 2024-08-19 17:52:04 +01:00
Snowiiii
8fa8b793ee improve doc 2024-08-14 23:16:02 +02:00
Snowiiii
5cf19a4e98 Add ChatType 2024-08-12 15:46:24 +02:00
Snowiiii
5b636111e4 Prepare ChatType registry 2024-08-11 17:55:41 +02:00
Snowiiii
414cf3190c Added RCON support 2024-08-10 23:53:32 +02:00
Snowiiii
50dcbfeb6d Add inventory support 2024-08-09 22:38:00 +02:00
Snowiiii
19af3618cb fix: all clippy warns 2024-08-04 00:40:27 +02:00
Snowiiii
ae69bbc7f1 Add pumpkin-world
also refactor player
2024-08-04 00:29:20 +02:00
Snowiiii
f779d31880 Add Clientbound Chunk Data and Update Light 2024-08-03 13:56:32 +02:00
Snowiiii
a45a43397c Add Serverbound Confirm Teleportation 2024-08-03 13:25:28 +02:00
Snowiiii
f111c7881c add damage type registries 2024-08-03 12:56:21 +02:00
Snowiiii
1f041cc7db Fix Clientbound Login 2024-08-03 11:25:38 +02:00
Snowiiii
2fd3585af7 Finally fix all registries 2024-08-03 01:01:15 +02:00
Snowiiii
fd9344a512 reorganize into different crates
Should help to get a more clear view and simplify things
2024-08-02 10:57:38 +02:00