Commit Graph

194 Commits

Author SHA1 Message Date
Alexander Medvedev
d47ac2cd51 feat(loot-table): add luck 2026-05-21 22:20:00 +02:00
Alexander Medvedev
2fcc9bcf4a chore: enforce some more clippy lints
pumpkin contributors will love me :cap:
2026-05-20 22:27:54 +02:00
Laptop59
6f2b137e70 feat(command): implement list_suggestions for some argument types (#2101)
* implement suggestions for everything we have right now

* use `translate_cross` instead

* fixed tests

* fix SNBT tests and suggestions to how they should be

* fixed `parse_for_suggestion`'s signature to only take a `SuggestionBuilder`

* added suggestions for vec3 and block pos

* add `Default` and `Debug` trait to `Vec3ArgumentType`

---------

Signed-off-by: Alexander Medvedev <lilalexmed@proton.me>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-05-18 21:55:39 +02:00
Demetrius Kanios
81f9f51d39 feat: Implement Bedrock NBT (network variant) (#2148)
* Implement Bedrock (Network) NBT

* Refactor to reduce dup between Java and Bedrock impls.

* Add tests, fuzzers, and benchmarks for Bedrock
2026-05-18 21:46:29 +02:00
Alexander Medvedev
d3d13323b2 fix: don't store empty chunks
should be fixed
2026-05-17 13:47:34 +02:00
Alexander Medvedev
966fbec3d3 feat(plugin-api): add java/bedrock abstraction 2026-05-16 09:56:18 +02:00
Alexander Medvedev
5aafff35e8 feat: add bedrock forms 2026-05-15 18:24:28 +02:00
SomeYellowGuy
f383c88c76 feat(codec): implement Encode and Decode for some pumpkin-util items and convenience codec macros (#2111)
* added identifier codec

* added codec impls for `Vector2<T>` and `Vector3<T>`

* added codec impl for `BlockPos`

* added codec impls for `BlockBox` and `EulerAngle`

* fixed formatting and clippy

* added `BlockPos` test

* fixed clippy and formatting

* fixed codec mapping macros and started using them in tests

* fixed formatting
2026-05-15 08:45:49 +02:00
RB007
b2b10f3323 feat: chest loot tables (#2084)
* feat: add vanilla chest loot table json files

* feat: codegen and chest loot logic

Co-authored-by: Copilot <copilot@github.com>

* fix: monster_room loot chests

* fix: nether_fortress loot chests

* fix: shuffle item stacks and fmt/clippy

Co-authored-by: Copilot <copilot@github.com>

---------

Signed-off-by: Alexander Medvedev <lilalexmed@proton.me>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-05-15 08:43:51 +02:00
Laptop59
bf296ee5a8 feat: implement UuidArgumentType (#2117) 2026-05-15 08:40:38 +02:00
Alexander Medvedev
5c90387b02 refactor: move block entities from pumpkin-world -> pumpkin 2026-05-07 19:35:17 +02:00
Alexander Medvedev
44c162df6d fix: broadcast correct protocol version in status response 2026-05-06 15:34:11 +02:00
YAJ-54S12G-1
aa5b6db50b feat: lzh translation (#2078)
* feat: lzh translation

* fix and format translation.rs
2026-05-05 10:43:46 +02:00
Alexander Medvedev
9b88ef56e4 feat: bedrock translations 2026-05-03 21:31:46 +02:00
Alexander Medvedev
fb5ede696c chore: some more bedrock work 2026-05-03 19:16:21 +02:00
Alexander Medvedev
af10507137 feat: add chunk blender 2026-05-03 11:11:42 +02:00
Demetrius Kanios
081e1d7e64 feat(bedrock): Update Bedrock support to 26.10 (#2067)
* Update Bedrock support to 26.10

Co-authored-by: A. Jakubiak <contact@jakubiak.fr>

* Fix key extraction for self-signed

* Restructure login to fix resource pack race condition

* Undo unrelated changes to blocks

* Fix relavent clippy warnings.

---------

Co-authored-by: A. Jakubiak <contact@jakubiak.fr>
2026-04-30 20:22:59 +02:00
Alexander Medvedev
1d671504d1 fix: tests 2026-04-29 23:18:24 +02:00
Alexander Medvedev
427df56935 chore: parse double perlin noise samplers amplitude at compile time 2026-04-29 16:08:21 +02:00
Alexander Medvedev
a36240dd40 fix: height maps 2026-04-27 23:16:19 +02:00
Alexander Medvedev
6ea869c4a0 fix: entity spawn height 2026-04-26 15:59:52 +02:00
Laptop59
fa833ba439 added identifier and its argument type (#2000) 2026-04-17 12:03:16 +02:00
RB007
39a2677f87 feat: snow and ice feature (#1886)
* feat: snow and ice feature

* fix: update configured_feature.rs

---------

Signed-off-by: Alexander Medvedev <lilalexmed@proton.me>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-04-09 22:22:08 +02:00
Alexander Medvedev
878116ceff fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1976 2026-04-08 11:01:29 +02:00
RB007
161b90ed28 fix: nether noise sampling... take 2 (#1983)
* fix: noise sampling calcs

* fix: correct formulas and 684.412 constant

* chore: fmt

* fix: nether temperature and vegetation in ShiftedNoise and add skip fn in LegacyRand
2026-04-08 09:22:04 +02:00
Alexander Medvedev
82ce8e9633 chore: chunk gen just got a bit faster 2026-04-06 13:07:53 +02:00
Laptop59
d78ecce368 feat(command): reimplement /list (#1968)
* reimplemented `/list` & new join methods for `TextComponent`

* switched to use `register_permission_or_panic`
2026-04-05 11:57:55 +02:00
SomeYellowGuy
73a5288aea feat(command): implement Vec3 argument type (#1943)
* added `Vector3` dot and cross methods and added both coordinate types

* added parsing for coordinates and created `vec3` file

* finished `vec3` argument type and implemented parsing for local coordinates
2026-04-03 20:47:38 +02:00
SomeYellowGuy
c7cbf37cc2 feat(command): implement entity selectors and entity argument type for new command system (#1925)
* mostly added new entity selector and started entity argument type

# Conflicts:
#	pumpkin/src/command/argument_types/mod.rs

* mostly completed entity selectors

* added bounds and started entity selector parser

* implemented basic selector parsing

* implemented bounds parsing, added `EntitySelectorOption` and implemented more of the parser

* implemented `EntityArgumentType`'s parsing

* implemented entity selector options and used `bitflags`

* removed unnecessary unimplemented error type
2026-04-03 20:42:48 +02:00
SomeYellowGuy
1437f33864 chore(command): add register_permission_or_panic method and fix grammar mistake (#1948)
* added `register_permission_or_panic` method and fixed grammar mistake

* fixed formatting
2026-04-03 19:11:43 +02:00
Alexander Medvedev
4848ca52cc chore: finish 26.1 chunk generation port 2026-04-02 17:12:10 +02:00
Laptop59
5a0db0f50d chore(command): reimplemented /difficulty (#1924) 2026-03-30 20:51:05 +02:00
Alexander Medvedev
0635b048b5 Port to 26.1 2026-03-30 16:43:15 +02:00
HairlessVillager
974bdd98a6 chore: add license to Cargo.toml files (#1927) 2026-03-28 15:47:15 +01:00
SomeYellowGuy
a6efe7ec7a feat(command): reimplement /seed (#1919)
* reimplemented /seed

* used `send_feedback` instead
2026-03-26 22:45:33 +01:00
Laptop59
0b15f29f90 feat: integrate command dispatchers + reimplement /help (#1700)
* initial commit

* added more functions

* ported /help command to new dispatcher

* /? shows similar usage to /help instead of `-> help`

* fixed /help bugs

* change min limit in `read_boxed_slice` to 0 so that empty command (`/`) doesn't cause an error

* fixed clippy errors

* formatted

* added convenience for fetching world and server from context

* fixed `min` mistakes to `max` instead

* changed node to now store a list of predicates as its requirement (permission included)

* added easier way to register aliases

* prevent unauthorized usage of command when aliased

* added `TextComponent::empty()` to create empty text only for the purpose of adding children to it

* added more documentation

* make argument more obvious

* fixed some issues (not done yet)

* added more clarification in comments & docs

* fixed fn docs

* fixed order of arguments in translated error

---------

Signed-off-by: Alexander Medvedev <lilalexmed@proton.me>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-03-19 17:17:57 +01:00
Alexander Medvedev
d41e5b9b98 fix: structures 2026-03-06 22:01:39 +01:00
Alexander Medvedev
3f4cdd0695 feat: Nether Fortress
Co-Authored-By: Richard Marshall <29306641+Purdze@users.noreply.github.com>
2026-03-06 09:42:54 +01:00
Alexander Medvedev
7248f942e7 fix: latest rust clippy lints 2026-03-05 21:34:47 +01:00
Illyrius
c1dbf6d3d2 docs: pumpkin-util (#1719)
* init

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* part 1

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* finished math section

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* fmt

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* finished text and some initial work on other unfinished folders

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* fmt

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* fmt

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* finish noise

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

* finish random

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>

---------

Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
Signed-off-by: Illyrius <28700752+illyrius666@users.noreply.github.com>
2026-03-03 19:47:19 +01:00
Illyrius
4054be056b feat: brb translation (#1727)
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
2026-03-03 17:27:57 +01:00
Illyrius
b66a9a3342 feat: add Italian translation (#1718)
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
2026-03-03 17:26:56 +01:00
Greened
d1d465ab1f feat: add ka_ge translation (ქართული) (#1625)
* feat: add ka_ge translation

* chore: fix a typo

---------

Signed-off-by: Greened <108997309+GreenedDev@users.noreply.github.com>
2026-03-03 01:07:34 -05:00
Jonas
7d6141b024 feat: add nds_de translation (Plattdüütsch) (#1763)
* Added de_nds ("Plattdüütsch") translation

Signed-off-by: Jonas <158217095+R40fendt@users.noreply.github.com>

* Rename de_nds.json to nds_de.json

Now matching with minecraft's language codes

Signed-off-by: Jonas <158217095+R40fendt@users.noreply.github.com>

* Added registration in translation.rs

* Cargo fmt fix

---------

Signed-off-by: Jonas <158217095+R40fendt@users.noreply.github.com>
2026-03-02 10:17:34 +01:00
Cos-Cos-Cos
ccfb3433c4 feat: Add Polish translation (pl_PL) (#1776)
* Add polish translation (pl_PL)

Signed-off-by: Cos-Cos-Cos <daniel997.321@gmail.com>

* Update translation.rs

Signed-off-by: Cos-Cos-Cos <daniel997.321@gmail.com>

---------

Signed-off-by: Cos-Cos-Cos <daniel997.321@gmail.com>
2026-03-02 10:12:55 +01:00
Grooble
cbdc919aff fix: boss bars & effects (#1766)
* fix: integer overflow & infinite effects

* fix: bossbar encoding

* fix formatting
2026-02-28 17:00:01 -05:00
YAJ-54S12G-1
de1dd65db3 ko_kr translation (#1728) 2026-02-26 01:26:57 -05:00
miutonic
9e256d2228 feat: add Romanian (ro_RO) translation (#1724) 2026-02-26 01:25:40 -05:00
Richard Marshall
c74a72a176 fix(translation): fix off-by-one crash in locale array and bounds check (#1725)
the translations array was sized as Locale::last() (127) but needed
128 elements, causing out-of-bounds access for the last locale variant.
also added bounds check in reorder_substitutions to prevent panic when
% appears near the end of a translation string.

closes #1709
2026-02-26 02:01:02 +00:00
Illyrius
4d0c089e9a init (#1627)
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
2026-02-24 19:48:07 -05:00