Commit Graph

34 Commits

Author SHA1 Message Date
Alexander Medvedev
7ec4cc7c2e Add Message types
aka chat types
2025-01-23 18:35:00 +01:00
Alexander Medvedev
57e54284c5 Translate when printing to console 2025-01-23 16:57:23 +01:00
Alexander Medvedev
709d222c23 add basic entity NBT storage 2025-01-19 19:30:32 +01:00
Alexander Medvedev
6415f697e5 parse Biome enum at compile time 2025-01-11 19:48:18 +01:00
Alexander Medvedev
aad1f91acb parse entity types at compile time 2025-01-11 17:59:36 +01:00
Alexander Medvedev
308c125a20 parse world events at compile time 2025-01-11 17:06:21 +01:00
Alexander Medvedev
03cb80b216 parse scoreboard display slot at compile time 2025-01-11 16:52:09 +01:00
Alexander Medvedev
621bc31f48 parse entity pose at compile time 2025-01-11 16:20:31 +01:00
Alexander Medvedev
c95b27eafb parse sound category at compile time 2025-01-11 16:11:51 +01:00
Alexander Medvedev
82386a57c4 parse game event at compile time 2025-01-11 15:54:26 +01:00
Alexander Medvedev
da268b548b parse ChunkStatus at compile time 2025-01-10 15:31:20 +01:00
Alexander Medvedev
03e81a1436 transfer packet id parsing to build time
This also allows now to create custom packets with a custom packet id which is not in the packets.json
2025-01-10 13:42:39 +01:00
Alexander Medvedev
29ed502aea extractor: extract entities 2024-12-26 22:10:12 +01:00
Snowiiii
35afc0bfb9 Port to 1.21.4 2024-12-03 23:34:59 +01:00
Snowiiii
796341be05 Extractor: minimize everything
- blocks.json 8.3MB -> 4.1MB
- items.json 988KB -> 548KB
- packets.json 6.9kb -> 4.2kb
- particles.json 3.5kb -> 1.6kb
- recipies.json 376kb -> 264kb
- screens.json 731b -> 315b
- sounds.json 72.2kb -> 42.2kb
- synced_registeries.json 143.3kb -> 87.6kb
- tags.json 335.4kb -> 165.8kb
2024-11-27 00:12:11 +01:00
Alexander Medvedev
402f3951f5 Move to own NBT crate (Mostly) (#100)
* Remove fastnbt as dependency

* Move to own NBT crate

* Added deserialization

Also replaced i8 bool's with bool's

* Use: fastnbt for pumpkin-world

Until i don't figure out why Arrays do not work, we can use fastnbt
2024-11-23 14:50:54 +01:00
Snowiiii
a23ce773ad Extract block hardness in block extractor
Fix: https://github.com/Snowiiii/Pumpkin/issues/297
2024-11-17 22:40:32 +01:00
Snowiiii
b01b276307 Optimize Item Extractor
Reduce JSON file size. All things we put in are already there as components
Replace item searching with a HashMap (which is faster)
2024-11-17 22:30:38 +01:00
Snowiiii
230a99adc5 Fix: Extractor Packet build 2024-11-17 22:02:33 +01:00
Alvsch
4348b56fbe Fix packet side in extractor (#294)
* fix packet side
2024-11-17 19:51:46 +01:00
Snowiiii
711e16528a Simplify Screens, Sounds and Particles Extractor
Particles: 6.6KB -> 3.5KB
Screens: 1.4KB -> 732B
Sounds: 118KB -> 72.2KB
2024-11-14 19:00:38 +01:00
Snowiiii
ac31d1c83b Improve Packet Extractor
Optimize packets.json
- Reduce lines from 1394 -> 256
- Reduces File size 23KB-> 6.9KB
2024-11-14 18:52:47 +01:00
Commandcracker
8767e66777 Add icon to windows binary (#257)
* Add icon for windows binary

* Add comment to FileDescription

FileDescription is handled as the Program name by Windows!
2024-11-12 19:51:25 +01:00
Snowiiii
b91825f507 Extractor: Add Tags 2024-11-10 17:14:48 +01:00
Snowiiii
df1d5fb580 Extractor: Export Recipes 2024-11-08 16:48:33 +01:00
Snowiiii
c470f94bc3 Fix: https://github.com/Snowiiii/Pumpkin/issues/236 2024-11-06 20:50:52 +01:00
Snowiiii
8f90b29cfe Extractor: Parse and use screens.json 2024-11-03 11:25:15 +01:00
Snowiiii
9e7adec16b Parse Registries from JSON 2024-11-02 16:34:35 +01:00
Snowiiii
460e9d3cae Add more informations about blocks
Also fixed light for transparent blocks
2024-11-01 11:01:25 +01:00
Alexander Medvedev
b17ade7b06 Add own Extractor (#201)
* Add custom extractor

* Add namespaces to blocks

* Fix: Errors
2024-10-27 12:21:55 +01:00
Alvsch
7de3e0e995 Improved pvp (#173)
* Added CSoundEffect packet

* Added sound macro

added a macro that turns sound namespaces to the sounds id

* added CEntitySoundEffect

* updated id to i32

* Added sound effects to pvp

* Added sweeping and particles

* Added I-Frames to living entity

* Refactored combat

split up the combat handling into multiple functions and a new combat module

* use new packet macro

* updated json files

* fixed attacking

* use builtin clamp
2024-10-24 17:49:23 +02: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
kralverde
6b7d6249de fix png encoding, default to ./icon.png, use built-in default 2024-10-18 15:58:12 -04:00
lukas0008
ee7d652bf1 Move assets folder outside of pumpkin-world 2024-09-18 17:06:55 +02:00