Commit Graph

1581 Commits

Author SHA1 Message Date
Connor
736f073b3c fix: Remove liftimes from CStatusResponse and CPlayerPosition (#1128)
* fix: Remove liftimes from CStatusResponse and CPlayerPosition

* fix: Add lifetimes to CachedBranding and fix tests

* fix: Remove lifetimes from CLoginDisconnect packet, data is dropped immediately after the packet is constructed

* fix: Apply formatting to packet_encoder.rs

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-22 09:57:55 +02:00
Sunset Mikoto
23b3517ae5 fix: use static files by include_json_static (#1123) (#1146)
* fix: use static files by include_json_static (#1123)

* chore: add workflow_dispatch to workflows
2025-08-22 09:57:28 +02:00
Alexander Medvedev
8feb6c9b93 feat: add end crystals 2025-08-21 17:54:07 +02:00
Alexander Medvedev
94bdae9684 feat: make totems work 2025-08-21 16:43:13 +02:00
spr-equinox
75afdd059c feat: add /enchant command (#1143)
* add enchant command

* fmt

* use err
2025-08-21 14:45:04 +02:00
Alexander Medvedev
4ad4498380 fix https://github.com/Pumpkin-MC/Pumpkin/issues/1145 2025-08-21 10:35:51 +02:00
KP64
80d0482c78 build: nix user development simplification (#1141)
* chore: add treewide nix formatting

This allows nix users to format more filetypes than just the `.nix` files. Treefmt-nix is partitioned to a `dev` flake. Refer to the corresponding flake description as to why this was done.

* style: nix fmt

* build: nix caching, sync nix toolchain to rust-toolchain.toml

Nix triggers a full rebuild on any file change. Even for changes on 'non src' relevant files, like e.g. the readme file. This fixes the caching issues, syncs the 'nixified' rust toolchain with the rust-toolchain.toml file, and moves checks and devShells to the development partition.

* chore: add rust-analyzer and rust-src components

Unless the rust-analyzer & rust-src components are installed somewhere else developers will not have a LSP and the rust std docs available. This installs those components for the specified channel, which is especially useful for Nix users.

* chore: remove taplo

Taplo defaults to 2 Spaces, but setting them to 4 doesn't work either for whatever reason. Therefore the removal.

* style: 4 instead of 2 spaces

Reverts the "mistake" by the taplo formatter

* chore: re-add taplo but with 4 spaces

* style: revert unnecessary Cargo.toml formatting
2025-08-21 10:03:27 +02:00
Alexander Medvedev
f0668ec746 readme: check eating as complete 2025-08-20 16:31:07 +02:00
Alexander Medvedev
bc2bdb87b2 fix shield blocking
(shields still don't reduce/block damage, but you can block with it)
2025-08-20 16:11:48 +02:00
Alexander Medvedev
684db059e5 feat: Support for eating food 2025-08-19 20:46:52 +02:00
Alexander Medvedev
314547eb5f entity: Arc<RwLock<Arc<World>> to Arc<World>
This removed a bunch of locks and .awaits, now instead of switching the world inside a entity we will just recreate it in a new World
2025-08-19 13:03:52 +02:00
ht06
36d6356532 fix: end rod: delete particles (#1137) 2025-08-18 23:25:40 +02:00
ht06
3b1fffcb6e feat: add french translation (#1135) 2025-08-18 18:23:57 +02:00
ht06
c3e933e6eb Implement End rod (#1136)
* feat: end rod placement + particles (almost work)

* fix: placement + particles (all Done)

* fix: clippy
2025-08-18 18:21:57 +02:00
Bram
56ad480ba2 Fix redstone wire with non-solid blocks (#1124)
* Fix redstone wire when interacting with glass and non-full blocks

* Use is_solid_block to determine whether redstone wire should be blocked

* Fix: incorrect uses of BlockState.is_solid()

* run cargo fmt

* split state_flags into 2 u8's and remove BlockState.blocks_wire() methods

* Resolve clippy warning

* Revert state_flags back to a single u16

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-18 18:11:42 +02:00
Alexander Medvedev
47254b14ba Structures: begin adding Nether Fortress 2025-08-18 17:59:14 +02:00
Crefax
398ba39233 feat(tr): Add Some Turkish translations (#1132)
* feat(tr): Add Turkish translations

* Fix formatting issue in translation.rs
2025-08-18 09:12:04 +02:00
dependabot[bot]
2bf30cc875 Bump actions/checkout from 4 to 5 (#1133)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-18 09:11:00 +02:00
dependabot[bot]
17135acebc Bump crate-ci/typos from 1.35.3 to 1.35.4 (#1134)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.35.3 to 1.35.4.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/typos/compare/v1.35.3...v1.35.4)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.35.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-18 09:10:54 +02:00
Alexander Medvedev
a65b30db02 fix typos 2025-08-17 22:17:06 +02:00
Alexander Medvedev
53cef4b050 Add structures
this is by far not done and the implementation is not correct in many ways, but it is still something
2025-08-17 22:12:38 +02:00
Missing_Love
b741881729 Added some Simplified Chinese translations. (#1129)
* Added some Simplified Chinese translations.

This is my first Pumpkin PR, and it means the world to me. (≧∇≦)🎃

* Added Simplified Chinese

* Added Simplified Chinese
2025-08-16 17:23:49 +02:00
spr-equinox
4205befa5d DataComponent serialize, deserialize and nbt. Enchantment and Damage implement (#1117)
* add

* fix hash

* Update data_component_impl.rs

* write nbt

* update enchantments

* Update data_component.rs

* fix enchant

* Update login.rs

* remove 1 todo

* KnownPack version

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-16 17:20:56 +02:00
Alexander Medvedev
c1b6044457 Parse SocketAddr
this allows for Ipv6 addresses
2025-08-16 17:02:25 +02:00
Alexander Medvedev
273803fbb0 fix: tests 2 2025-08-15 16:04:51 +02:00
Alexander Medvedev
034399aeb5 fix: test 2025-08-15 15:35:30 +02:00
Alexander Medvedev
fbbade23dc Improved chunk deserializing performance
doing `let _ = io::copy(&mut self.reader.by_ref().take(count), &mut io::sink())` was just crazy slow when skipping bytes in NBT, we now instead use `seek`

The Palette was also changed and does not use a HashMap anymore
2025-08-15 14:57:43 +02:00
CrabbyDisk
ea2678a235 Fix broken nix flake, add rust-analyzer to devshell and move to fenix from rust-overlay (#1126) 2025-08-15 10:02:05 +02:00
MrMelther
f4eadc5681 feat: Added custom translations (#1109)
* Custom translations!

Added to TextComponents custom translations, allowing to send commands in the current player locale.

* Ignoring locale's typos

* Paired reorder_substitutions with vanilla

Changed how reorder substitutions work to match how vanilla allows to join next and numeral substitutions.
2025-08-15 09:59:47 +02:00
Alexander Medvedev
3407404e95 pumpkin-world(structure): add BuriedTreasureGenerator 2025-08-14 23:35:38 +02:00
Connor
71dd912eb1 fix: Make all client packet members public. (#1125) 2025-08-14 09:52:12 +02:00
4lve
c4f922d27c Rework chunk generation system (#1115)
* Workers instead of spawning on chunks

* Piority

* Remove piority - broken

* Non arbitary worker threads number

* Make info to debugs

* fix clippy

* New rust version clippy fixes

* Use the same system for entity chunks

* Fix all warnings

* Fix clippy

* Fix benchmark
2025-08-13 22:05:04 +02:00
Alexander Medvedev
fae24008db pumpkin-world(structures): Add structure placement calculation 2025-08-13 17:11:56 +02:00
Tom
f63a039918 Add carved pumpkin and jack o lantern roation (#1108)
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-13 17:10:08 +02:00
ht06
ccb9b883f1 Implement chain and lantern placement (#1050)
* feat: chain placement

* feat: lantern placement

* fmt + clippy

* all good

* all good

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-13 16:20:10 +02:00
Ancient77
46d82db4a4 implement basic sign edit behavior (#1016)
* implement basic sign edit behavior

* add sign edit behavior

* WIP: add sign waxing

* fix is_facing_front_text

* signs: add dye and ink sac mechanic

* fix: update sign block entity and dont replace it

* sign: update entity and send packet

* signs: add currently editing

* refactor sign code

* add as_any to items

* make items public

* move sign application code to Items

* fmt

* fmt

* fmt

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-12 18:33:27 +02:00
Alexander Medvedev
308ca77440 I give up 2025-08-12 18:05:04 +02:00
Ancient77
b6e55cfbd2 build: Make file generation deterministic & skip unchanged files (#1119)
* update build.rs formatting code

* update build.rs don't save generated file when no change

* generated files use BTreeMap no build changes

* disallow HashMap in build scripts

* fmt
2025-08-12 17:34:01 +02:00
Alexander Medvedev
f8b896092c Update rust.yml 2025-08-12 17:32:17 +02:00
Alexander Medvedev
d38f5a51da maybe this 2025-08-12 17:00:53 +02:00
Alexander Medvedev
1fc3de914d Update rust.yml 2025-08-12 16:44:22 +02:00
Alexander Medvedev
4b2a8b9fca Update rust.yml 2025-08-12 16:34:57 +02:00
Alexander Medvedev
60dda6ecf1 Update rust.yml 2025-08-12 15:52:30 +02:00
Alexander Medvedev
a12f8c38e5 😞 2025-08-12 15:12:52 +02:00
Alexander Medvedev
f5bc7982f6 lets try that 😞 2025-08-12 14:53:19 +02:00
Alexander Medvedev
8da91bae6b lets try this 2025-08-12 14:26:00 +02:00
Alexander Medvedev
cb3483372c hope that this fixes CI 2025-08-12 14:09:10 +02:00
Alexander Medvedev
86f3f5794d fix: tests 2025-08-12 13:57:15 +02:00
Alexander Medvedev
472946f85d fix clippy 2025-08-12 13:08:21 +02:00
Alexander Medvedev
6a1cd304d7 Add release per commit workflow 2025-08-12 12:57:05 +02:00