Commit Graph

1066 Commits

Author SHA1 Message Date
Alexander Medvedev
a2d8ca8d98 fix: pumpkin-world external crate compilation 2025-12-06 10:30:03 +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
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
Alexander Medvedev
5e8d7221e3 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1174 2025-11-27 17:31:39 +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
Jonas
32027121ce fix: using shears on pumpkin (#1203) 2025-11-19 15:06:09 +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
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
Alexander Medvedev
47bbc56591 this should fix plugin errors
at least for now
2025-11-01 12:13:28 +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
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
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
932512b5d6 lets try fix CI 2025-10-02 16:54:48 +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
Alexander Medvedev
bbf685622b Update RSA
this should fix some plugin issues
2025-08-31 15:56:46 +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
vyPal
6cac55e0f0 Repurpose Event trait as generic Payload trait (#1116)
* Repurpose Event trait as generic Payload trait

* Fix clippy

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-08-27 18:00:55 +02:00
Alexander Medvedev
c066787cc1 feat: implement Mob Spawners 2025-08-24 23:02:59 +02:00
Alexander Medvedev
46c048483c fix: thanks typos 2025-08-22 12:31:14 +02:00
Alexander Medvedev
c5c3ffc005 feat: add name tag logic 2025-08-22 12:09:30 +02:00
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
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
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
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
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