Commit Graph

2346 Commits

Author SHA1 Message Date
kedor
fda79cbc41 feat: adding barebone advancement codegen (#2251)
* implementing the barebone generation of

* cargo fmt

* fixing CI

* fixing unused import

* updating advancements.json file

* remove useless modification for identifier.rs

* fixing CI and typos

* remove bad modification

* update pumkin-plugin-wit
2026-06-12 07:07:10 +02:00
Alexander Medvedev
b4a652c68c fix: ci 2026-06-12 06:58:14 +02:00
Alexander Medvedev
acb295b250 fix: ci/test 2026-06-11 23:02:42 +02:00
Alexander Medvedev
5b8eab0f56 feat: initial village support 2026-06-10 23:07:10 +02:00
Daniil Nartsissov
30303a8cbd chore(nix): fix and update flake (#2252) 2026-06-10 14:41:39 +02:00
Alexander Medvedev
7bff068dff fix: discord links 2026-06-09 16:49:32 +02:00
Alexander Medvedev
dd524b6ef9 Revert "feat: implementing the base generation of advancement (#2236)"
This reverts commit decfc460b2.
2026-06-09 16:49:14 +02:00
ChocoDev
636331ead3 chore update world generation benchmark (#2216)
* benchmark

* clippy
2026-06-09 16:01:40 +02:00
kedor
decfc460b2 feat: implementing the base generation of advancement (#2236)
* implementing the barebone generation of

* cargo fmt

* fixing CI

* fixing unused import

* updating advancements.json file
2026-06-09 16:00:37 +02:00
Greened
046894c371 chore: code tweaks (#2245)
* chore: utilize player.rotation() for yaw and pitch

* chore: remove duplicate shooter id

* chore: introduce is_sneaking() is_sprinting() and is_fall_flying() functions

---------

Signed-off-by: Greened <108997309+GreenedDev@users.noreply.github.com>
2026-06-09 15:47:50 +02:00
Alexander Medvedev
3d15f6fecd feat(plugin-api): add some more stuff 2026-06-09 15:46:05 +02:00
Glory
dc6ad807ce fix(items): ender pearl logic and item cooldown (#2189)
* fix: throw sound pitch

* fix: ender pearl teleporting player to wrong position

* impl: spawn endermite on ender pearl collision

* fix: check world rules before spawning endermites

* impl: ender pearl damages collided entity

* impl: item use cooldown

* fix: cooldown_group in pumpkin-codegen

* resolve merge conflict

---------

Signed-off-by: Glory <89966094+gloryrunner@users.noreply.github.com>
Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-08 13:27:29 +02:00
dependabot[bot]
707186ddab build(deps): bump crate-ci/typos from 1.47.0 to 1.47.2 (#2249)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.47.0 to 1.47.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.47.0...v1.47.2)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.47.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>
2026-06-08 08:14:34 +02:00
Alexander Medvedev
b08be9e158 feat(bedrock): add container open 2026-06-07 21:12:16 +02:00
Alexander Medvedev
e47695d810 feat(bedrock): add item drops 2026-06-07 14:34:54 +02:00
Greened
3a5f2d0855 chore: Only send some packets to players who are tracking the chunk (#2241)
* chore: replace player.living_entity.entity with player.get_entity()

* chore: replace more

---------

Signed-off-by: Greened <108997309+GreenedDev@users.noreply.github.com>
2026-06-07 08:17:53 +02:00
Demetrius Kanios
2283048b9b feat(bedrock): Initial inventory setup (#2215)
* Initial asset prep, and `CItemRegistry` packet (vanilla; no Java fixes).

* Fix definition component NBTs.

* Packet fixes and dummy stick.

* Map actual player inventory & add stack UIDs

* Cleanup

* Update assets README
2026-06-07 07:59:06 +02:00
Greened
1bd6eef2a4 feat: Implement TakeItemActor for bedrock (#2239)
* fix: only send TakeItem packet to tracking players. implement TakeItemActor packet for bedrock

* fix: clippy warnings

* feat: introduce macros for VarLong and VarULong

* chore: change source

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-06-06 16:10:51 +02:00
Alexander Medvedev
c17e7124d8 feat: extend packet send and receive events 2026-06-06 10:13:53 +02:00
Alexander Medvedev
376001dbd4 fix: register packet send and receive events 2026-06-06 09:31:44 +02:00
Demetrius Kanios
2de2bd43b1 fix: RakNet frame split threshold (#2198)
Signed-off-by: Demetrius Kanios <demetrius@kanios.net>
2026-06-06 09:15:42 +02:00
Alexander Medvedev
6c1dd012bf fix: register packet send and receive events 2026-06-06 09:14:39 +02:00
Alexander Medvedev
96af1fdbf6 chore: expose packet events 2026-06-06 08:52:54 +02:00
Alexander Medvedev
96a9328af8 chore: expose packet events 2026-06-06 07:48:05 +02:00
Alexander Medvedev
9898896bbb fix: some bedrock fixes 2026-06-05 20:27:21 +02:00
Alexander Medvedev
65bfbe89b9 feat: add packet receive and send events 2026-06-05 18:03:44 +02:00
Alexander Medvedev
f19eee2d70 fix: some bedrock fixes
also added join and leave translated messages
2026-06-04 20:54:48 +02:00
とぴ。(おーけ
a2f0122503 chore(pumpkin-util): gate codegen deps behind feature flag (#2127)
Make `syn`, `quote`, and `proc-macro2` optional in pumpkin-util,
exposing them via a new `codegen` feature. `pumpkin-codegen` opts in
explicitly, so downstream consumers no longer pay the proc-macro
build cost when they don't need `ToTokens` impls.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-04 11:12:55 +02:00
AurelienFT
2b13d6303d fix: chests not openable after generation (#2187)
Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-04 11:08:06 +02:00
Laptop59
2966a21fd6 feat(command): implement gamemode argument type (#2186)
* to be completed

* removed block state parser for now

* gamemode argument type

* plugin wit submodules

* fixed submodules

---------

Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-04 11:07:42 +02:00
Greened
deb853d15a fix: crossbow in creative (#2201)
* fix: crossbow in creative

* fix: clippy warning

---------

Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-04 10:35:49 +02:00
Matthieu B
e1c715b59b fix(bedrock): allow larger login payloads (#2206) 2026-06-04 10:26:28 +02:00
shaches
1f63fae486 fix(world): handle unsupported custom anvil compression (#2217) 2026-06-04 10:24:36 +02:00
Marshall-67
9158109043 fix(command): prevent panic in SuggestionsBuilder when start exceeds input length (#2207)
remaining() and remaining_lowercase() at suggestions.rs:39,45 perform an
unbounded slice &self.input[self.start..], which panics with:

  'start byte index N is out of bounds for string of length M'

when the start position exceeds the input string length.

This was reachable via:
- The console completer passing cursor position unadjusted for the
  stripped '/' prefix
- create_offset() constructing a builder with start > input.len()
- entity_selector parser's builder.start - 1 underflowing when
  start == 0

Changes:
- Clamp start to input.len() in remaining() and remaining_lowercase()
  so an empty string is returned instead of panicking
- Use saturating_sub(1) in entity_selector parser to prevent
  debug-mode underflow when start is already 0
2026-06-04 10:22:22 +02:00
Laptop59
70a3847ed7 fix(command): make commands with slash not crash (#2149)
Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-04 10:21:56 +02:00
shaches
440d222f8a fix: stale proto chunk generation tasks (#2214) 2026-06-04 10:18:24 +02:00
Mathis
463c25d42d Fix: messed up terminal after "stop" (#2192)
Co-authored-by: Mathis Cavalli <mcavalli@uth.fr>
Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-03 22:44:48 +08:00
Greened
0fd6fef6d3 fix: item pickup animation (#2199)
* fix: broadcast item pickup packet instead of only sending it to the collector player

* fix it for shot arrows too.

* fix: clippy warning

---------

Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-06-03 17:54:19 +08:00
Marshall-67
24e3b59712 Merge pull request #2212 from Marshall-67/fix/golden-apple
fix(living): prevent panic when applying effects with attribute modifiers
2026-06-02 22:46:03 +08:00
Missing_Love
5ca3d37a3e Merge pull request #2208 from Pumpkin-MC/dependabot/github_actions/crate-ci/typos-1.47.0
build(deps): bump crate-ci/typos from 1.46.3 to 1.47.0
2026-06-01 16:31:04 +08:00
dependabot[bot]
f5971ca2b7 build(deps): bump crate-ci/typos from 1.46.3 to 1.47.0
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.46.3 to 1.47.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.46.3...v1.47.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-01 00:59:50 +00:00
Nicolai Van der Storm
42f6b9ce3f fix(protocol): remap item/block state IDs and entity metadata for older Java clients (#2185)
* fix(protocol): remap item/block state IDs and entity metadata for older Java clients

The server was using reversed ViaVersion mappings (designed for old→new)
to downgrade packets for older clients, which produced ID collisions and
incorrect fallbacks for 26.1-exclusive items and block states.

Changes:
- Replace ViaVersion with ViaBackwards mapping files for item ID and
  block state remapping, which provide the correct new→old direction
  with proper closest-item fallbacks for 26.1-exclusive content
- Fix CSetEntityMetadata to remap ItemStack item IDs per client version,
  matching the version-aware handling already done for inventory packets
  and block state metadata
- Fix TrackedData codegen to resolve Java JSON keys correctly by trying
  both bare names and DATA_-prefixed names, and iterate the union of all
  version keys instead of only the latest (Bedrock) version
- Fix LootCondition::MatchTool to default to false instead of true,
  preventing silk-touch loot table branches from always winning and
  causing ores to drop themselves instead of their correct items

Fixes: block drops invisible on older Java clients
Fixes: leather showing as milk bucket on 1.21.11
Fixes: coal ore dropping coal ore instead of coal
Fixes: 26.1-exclusive blocks showing as wrong blocks on older clients

* fix(codegen): remove #[must_use] from trait impl methods in generated code

* fix(codegen): switch entity, sound and block state remapping to ViaBackwards mappings

---------

Co-authored-by: Missing_Love <42416195+Q2297045667@users.noreply.github.com>
2026-05-27 15:22:17 +02:00
dependabot[bot]
d29e4c18bd build(deps): bump crate-ci/typos from 1.46.2 to 1.46.3 (#2184)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.46.2 to 1.46.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.46.2...v1.46.3)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.46.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>
2026-05-27 15:11:58 +02:00
Alexander Medvedev
3399f51671 feat(bedrock): add block update packet 2026-05-26 18:15:28 +02:00
Illyrius
7481a6e703 chore: re-export EntityType and Dialog related stuff (#2190) 2026-05-26 14:55:26 +02:00
Alexander Medvedev
fa5e07f8da feat(bedrock): add basic combat 2026-05-25 13:52:26 +02:00
Alexander Medvedev
e1967bed2b feat: bedrock & java cross play 2026-05-25 11:53:37 +02:00
Alexander Medvedev
100b8791cf fix: revert bedrock buffer read 2026-05-24 17:36:27 +02:00
Alexander Medvedev
d9312141f6 chore(net): don't run keep alive on player tick 2026-05-24 11:45:40 +02:00
Alexander Medvedev
f981126cfb Update pumpkin-plugin-wit 2026-05-23 18:37:31 +02:00