Commit Graph

1636 Commits

Author SHA1 Message Date
Jeromos Kovács
6591d3984d ci: always have a nightly release (#1188)
* ci: pre-release a nightly build on every push

* ci: upload only bin, with name `pumpkin-<arch>-<os>`

* ci: only run on push to `master`

* ci: create a nightly tag for the release

* ci: better nightly release artifact naming

* ci(release): use 7 chars commit hash

* ci: build for aarch64-macos and aarch64-linux as well
2025-12-06 10:18:18 +01:00
teknostom
168f885dda feat: prepare block light (#1127)
* add block light

* fmt

* fixes

* remove import

* remove unused state

* sky light

* Comment out Sky light

* Fix sky light

* fixes

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-12-05 18:44:01 +01:00
Alexander Medvedev
74deee228d fix typo 2025-12-05 17:39:03 +01:00
Alexander Medvedev
d31465386d fix: some water fixes
Co-Authored-By: teknostom <42341753+teknostom@users.noreply.github.com>
2025-12-05 17:35:41 +01:00
Alexander Medvedev
698589806a fix: don't crash when failed to lock session.lock
fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1212
fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1194
2025-12-05 16:57:41 +01:00
Alexander Medvedev
70b75a0ac5 remove async-trait entirely 2025-12-04 23:50:00 +01:00
Alexander Medvedev
ae751f3a83 remove #[async_trait] from many many places
Compile time got improved by 77% (including last commit)
2025-12-04 13:57:03 +01:00
Alexander Medvedev
71392b4a38 remove async_trait from Commands
This decreased compile time by 30%, Plugins also are not required anymore to use async_trait when adding custom Commands
2025-12-03 18:25:58 +01:00
dependabot[bot]
644023d89f build(deps): bump crate-ci/typos from 1.39.2 to 1.40.0 (#1222)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.39.2 to 1.40.0.
- [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.39.2...v1.40.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-12-01 11:25:38 +01:00
Alexander Medvedev
74c66e25e8 fix typo
and some compilation changes,
fix https://github.com/Pumpkin-MC/Pumpkin/issues/1010
2025-12-01 11:23:57 +01:00
Alexander Medvedev
6f7006fcb9 improve block to_props 2025-11-27 18:44:14 +01:00
Hendrik Lind
ed737dd75f Properly implement serialization / deserialization for NBT Arrays (#1213)
* fix: use int array instead of list for chunk entities

* just get the int array and don't fall back for the list

* update deserialization to use proper NbtTag

* dix deserialization of nbt arrays

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-11-27 17:36:02 +01:00
Alexander Medvedev
5e8d7221e3 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1174 2025-11-27 17:31:39 +01:00
dependabot[bot]
2e4ffa96ba build(deps): bump actions/checkout from 5 to 6 (#1218)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [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/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  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-11-25 10:41:44 +01:00
dependabot[bot]
29c5c25ae4 build(deps): bump crate-ci/typos from 1.39.0 to 1.39.2 (#1219)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.39.0 to 1.39.2.
- [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.39.0...v1.39.2)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.39.2
  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-11-25 10:41:28 +01:00
Alexander Medvedev
03b3ff5e15 This should prevent some dead locks 2025-11-23 20:08:47 +01:00
spr-equinox
577f51dc1b chunk: rewrite thread scheduling (#1210)
* fix render distance and faster chunklevel

* new schedule method

* clean up

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-11-23 19:49:12 +01:00
Arman
e0805fe406 fix: Prevent the server from binding to java or bedrock ports if they're configured to be disabled (fixes #1173) (#1178)
* fix: Prevent the server from binding to java or bedrock ports if they're configured to be disabled (fixes #1173)

* Fixed the formatting errors regarding the last commit
2025-11-23 18:55:57 +01:00
Alexander Medvedev
2104367d0e fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1216 2025-11-20 19:40:50 +01:00
kralverde
4d7342122a chore: Chunk generation optimizations (#1171)
* aquifer optimizations

* tweaks

* fix typo

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-11-19 15:11:29 +01:00
Jonas
32027121ce fix: using shears on pumpkin (#1203) 2025-11-19 15:06:09 +01:00
thedb
18486098d5 fix: Fixing flake (#1214)
Moving to the Rust toolchain provided by nixpkgs, and lowering the scope
of what the flake is supposed to do should prevent it from breaking
again.
2025-11-19 14:45:31 +01:00
Alexander Medvedev
0ce5471761 Overhaul registry loading
Registry data is now loaded dynamically for automatic future-proofing, ending the need for manual struct updates. Access to specific values now requires explicit data lookups.
2025-11-18 19:00:18 +01:00
とぴ。(おーけ
2c26124a90 use const instead of static in some places (#1198) 2025-11-12 18:18:59 +01:00
Omar Afet
2973436a9b feat(protocol): Add resource pack info, improve Ack limits & handle slot errors (#1189)
* Improve error handling for invalid slot action type

* Enforce maximum ACK record limit in packet parsing

* Add resource pack details to CResourcePacksInfo packet
2025-11-09 13:13:19 +01:00
Jonas
e3a565710c Metadata 1.21.9 (sneak problem) (#1191)
* 1.21.10

* sneaking in 1.21.9

* now cicd?
2025-11-09 12:54:32 +01:00
Alexander Medvedev
47bbc56591 this should fix plugin errors
at least for now
2025-11-01 12:13:28 +01:00
Alexander Medvedev
32b76fc730 Revert "ci: add multi-platform Docker image support for ARM64 (#1180)"
This reverts commit ddc57f21f9.
2025-11-01 11:07:52 +01:00
dependabot[bot]
b62b83ec0a build(deps): bump actions/upload-artifact from 4 to 5 (#1207)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  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-10-27 08:04:25 +01:00
Jonas
09240202fa Update Entity metadata to 1.21.10 (#1192)
* 1.21.10
2025-10-15 09:54:01 +02:00
unschlagbar
e154b394af update to bedrock 1.21.111 (#1193) 2025-10-15 09:52:30 +02:00
Adi
bb24726f5f feat: implement mangrove root block & barrier block (#1172)
* feat: implement mangrove root block

* feat: implement barrier block

* style: cargo fmt
2025-10-15 09:48:37 +02:00
Jonas
ca4f92153a Added Wind Charge and Armor Stand (#1153)
* fix: use rem_euclid for yaw and head_yaw calculations in CSpawnEntity | Thanks to @teknostom

* feat: Add ArmorStand Entity, EulerAngle & EquipmentSlot's

* feat: Add checking for if space is occupied of the armor stand

* feat: clippy

* feat: Enhance ArmorStandEntity with break and drop items functionality

* chore: cargo fmt

* feat: Add WindCharge entity and item with projectile deflection mechanics

* chore: clippy & fmt

* fix: use constant for default deflect cooldown in WindChargeEntity

* feat: add invisibility functionality to Entity and ArmorStandEntity

* refactor: remove EquipmentSlot and HasEquipment trait definitions since it was already existing oops

* feat: implement NbtTag conversion for PackedRotation and update ArmorStandEntity NBT handling

* refactor: fmt

* chore: clippy & fmt

* fix: update damage handling in ArmorStandEntity to use kill instead of remove

* feat: implement ticking behavior for WindChargeEntity to update deflect cooldown and process thrown item entity

* fix: remove unnecessary trailing comma in imports

* remove logging

* fmt

* refactor: simplify EulerAngle initialization and consolidate PackedRotation fields
2025-10-15 09:47:21 +02:00
Vianney Veremme
ddc57f21f9 ci: add multi-platform Docker image support for ARM64 (#1180)
* Add support for multiple platforms in Docker build

* Enhance Docker workflow with QEMU and Buildx setup

Added steps to set up QEMU and Docker Buildx, and login to GitHub Container Registry.

* Refactor Docker workflow for improved clarity

* Remove duplicate GitHub CR login step

Removed duplicate login step for GitHub Container Registry in the Docker workflow.

* Reorder Docker Buildx setup in workflow

* Rename step to 'Docker Buildx' in workflow
2025-10-15 09:44:38 +02:00
Harihar Nautiyal
46a3861825 fix(auth): Implement Secure Bedrock JWT Chain Validation (#1182)
* Implemented jwt validation.

* Formatted

* Fix: Linting

* Formatted again

* Migrated bedrock_jwt to paper_util and optimised validator
2025-10-15 09:43:55 +02:00
dependabot[bot]
7e1f7ce925 build(deps): bump crate-ci/typos from 1.37.2 to 1.38.1 (#1195)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.37.2 to 1.38.1.
- [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.37.2...v1.38.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-13 17:38:55 +02:00
Rafael
cc076f098d feat: Implement EnderChest (#1163)
* feat: Implement ender chest

* fix: Register block entity

* fix: Fix formatting
2025-10-10 21:54:03 +02:00
spr-equinox
e71bccf564 Load-level–based Chunk System (#1157)
* Make protochunk not have a lifetime

* Staged chunks

* fix

* new generation system init

* small optimize

* fix warning

* fmt

* new get chunk

* use write_radius

* save stage in protochunk

* clean up

* clean old fn

* fix bug

* support saving but broke shutdown

* fail to fix shutdown and still many problems need to solve

* fix shutdown

* fix chunk unload; give highest priority to get_chunk

* fix tick deadlock

* fix chunk level

* drop old channel

* rewrite run_decrease_update; fix a stupid error

* Update chunk_system.rs

* remove some log

* lighter dependency

* clean up

* fix ci

* clean up & merge

* Update chunk_system.rs

* fix a bug

* Proto Chunk Saving, safer io and remove debug output

Port Proto Chunk Saving From #1164

* fix a bug

* fetching chunk message level set to debug

* Update multi_noise.rs

---------

Co-authored-by: 4lve <72332750+4lve@users.noreply.github.com>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-10-10 21:52:56 +02:00
Alexander Medvedev
0c2b647a45 fix CI
Replaced old chunk files used for testing
2025-10-06 16:14:03 +02:00
Alexander Medvedev
58583da4c1 Port to 1.21.9
I did not update density functions because i'm too lazy to refactor a bunch of things because Mojang decided to remove "initial_density_without_jaggedness", but i will in the future
2025-10-02 18:27:10 +02:00
Alexander Medvedev
85a4d10a36 CI: add rustfmt on clippy step 2025-10-02 17:03:23 +02:00
Alexander Medvedev
932512b5d6 lets try fix CI 2025-10-02 16:54:48 +02:00
dependabot[bot]
58b4c6593a build(deps): bump crate-ci/typos from 1.36.2 to 1.36.3 (#1179)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.36.2 to 1.36.3.
- [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.36.2...v1.36.3)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.36.3
  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-10-02 16:47:27 +02:00
unschlagbar
26fadedca2 Goal system rework (life saving)! (#1177)
* initial

* fixed incorect type

* fixed spelling
2025-09-28 10:19:03 +02:00
C0j23T
09f96cc705 Implement equipping armor and resolve difficulty deadlock (#1170)
* feat: implement equipping armour for players

* fix: resolve deadlock when updating world difficulty

* fix: typo && forgot to clippy

* fix: fmt
2025-09-14 09:56:08 +02:00
dependabot[bot]
80741dd47a build(deps): bump crate-ci/typos from 1.35.5 to 1.36.2 (#1167)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.35.5 to 1.36.2.
- [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.5...v1.36.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 17:31:11 +02:00
Alexander Medvedev
bbf685622b Update RSA
this should fix some plugin issues
2025-08-31 15:56:46 +02:00
Theo Paris
3d7c416dc8 feat: add a rustfmt config file (#1160) 2025-08-31 11:35:36 +02:00
Alexander Medvedev
91e77c33a0 add more loot table conditions
fix https://github.com/Pumpkin-MC/Pumpkin/issues/1155
2025-08-30 11:58:43 +02:00
unschlagbar
0bc7405f12 fix world y offset & bedrock update (#1121) 2025-08-30 09:27:03 +02:00