Commit Graph

172 Commits

Author SHA1 Message Date
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
Illyrius
645cb9afb5 feat: nl_be translation (#1628)
* init

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

* fix missing bracket

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-02-24 19:42:30 -05:00
YAJ-54S12G-1
21b22ff63a Add Traditional Chinese, Fix Simplified Chinese (#1705)
* zh_tw translation

* zh_hk translation

* translation fix: zh_cn, zh_hk, zh_tw
2026-02-24 19:24:15 -05:00
Illyrius
483e872d09 feat: de_de translation (#1629)
Signed-off-by: illyrius666 <28700752+illyrius666@users.noreply.github.com>
2026-02-24 08:52:06 +01:00
とぴ。(おーけ
44989c86f4 feat: More compatible Java Edition versions (>=1.21) (#1435)
* 1.21.9

* 771: 1.21.6

* 770: 1.21.5

* 769: 1.21.4

* better impl

* missing data

* 768: 1.21.2

* added >=1.21.2 mapping

* impl abstract remapper.

* added entity_id remap

* fix commands packet (<1.21.6)

* fix 1.21.4 level_chunk_with_light

* fix reading packet

* fix sneak <=1.21.6

* Merge branch 'master' into protocol

* fixed `level_chunk_with_light` packet (<=1.21.4)

* 767: 1.21

* fixed `login_finished` packet (<=1.21.1)

* fixed `login` packet (<=1.21.1)

* fixed `player_position` packet (<=1.21.1)

* fixed `set_held_slot` packet (<=1.21.1)

* fixed `set_time` packet (<=1.21.1)

---------

Signed-off-by: とぴ。(おーけ <support@topi-banana.com>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-02-23 12:06:37 +01:00
Illyrius
c929d54b8a feat: nl_nl translation (#1626) 2026-02-22 19:44:52 +01:00
RB007
2996487160 refactor: parse placed and configured features at compile time (#1680)
* refactor: parse placed and configured features at compile time

* fix: remove serde_json from pumpkin-world

* fix: lib.rs imports

* 🥀

* refactor: stripped serde from features and moved generated code to pumpkin-data

* Remove: include_json_static

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-02-22 11:55:08 +01:00
Alexander Medvedev
4afe60aca9 chore: i'm back 2026-02-21 20:52:37 +01:00
RB007
b3fc910579 fix: lava and fire behavior (#1509)
* fix: item burning (except netherite), proper lava damage, and eliminate ghost lava

* fix: soul fire damage

* fix: fire spreading behavior

* chore: clippy and formatting

* fix: add on_entity_step for magma block damage

* chore: clippy and formatting

* fix: remove item.rs edit and hardcode is_fire_immune for now

* fix: compare biome ids and restore a fn name

* fix: god mode gamerule hack

* feat: DamageResistantImpl

* refactor: remove campfire damage fixes

* refactor: shared fire collision fn

* fix: typos

* fix: i did now 💀

* fix: gamerule and fire resistance now prevent magma block damage

* fix: fire_damage gamerule only for players

* fix: better on_entity_step detection (block edges)

* fix: on_entity_step now fires with bool flag (for detection under non-solid blocks)

* fix: rip

* fix: infiniburn tags and damage

* fix: send_pos_rot

* fix: restore adjust_movement_for_collisions logic and fmt

---------

Signed-off-by: RB007 <36972202+RoosterBooster007@users.noreply.github.com>
2026-02-17 22:49:58 +00:00
Axillux
3a48274d7b Added russian and ukrainian translation (#1586)
* added russian and ukranian

* forgot to change the translation.rs

* remove the double pt_br parsing

---------

Co-authored-by: Rocker <sanatnurasyl@outlook.com>
2026-02-17 16:40:05 +00:00
Tyler Critchlow
11545cfe73 Prevent subtraction overflow in translation_to_pretty (#1511)
* Prevent subtraction overflow in `translation_to_pretty`

* build translation strings from parts instead of mutating in place
2026-02-15 16:24:39 +00:00
Mikhail Reznichenko
e438e09991 fix: collision (#1522)
* fix cactus collision

* use proper blocks_movement

* change collision check

* add atomic f32

* fix mistake
2026-02-12 00:24:12 +00:00
zicstardust
8995214eef feat: add pt_br translation (#1529) 2026-02-11 19:17:16 +00:00
Alexander Medvedev
f60a77c5d9 chore: decrease compile time
Instead of parsing pumpkin-data for everyone who compiles lets have it as static files, pumpkin-codegen is a standalone parser now
2026-02-09 15:52:46 +01:00
vyPal
8b6c8bbee6 feat: Basic pathfinder impl from vanilla (#1456)
* Basic pathfinder impl from vanilla

* Satisfy clippy

* Forgot to save

* Fix compilation issues

* Finally fix clippy

* implement swing

* fix pathfinder a* algorithm, mob look system, and rotation packets

* fix cargo fmt

* implement zombie melee attack, fix a* target-reached threshold

* fix cargo fmt

* physics-based mob movement, position sync, and speed fixes

* fix mob step height

* made TargetPredicate more complete

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
Co-authored-by: Purdze <r.s.sutton@hotmail.co.uk>
2026-02-08 21:14:30 +01:00
Laptop59
3e82875e4f feat: add string reader from Brigadier and its errors (#1427)
* added StringReader and its errors

* fixed clippy errors in tests

* removed unnecessary '_ from &

* removed unnecessary `Box`

* removed Simple and Dynamic error types in favor of one struct and changed size of `TextComponent`

* formatted with `cargo fmt`

* fixed spelling error

* removed unnecessary (default) leftover from experimentation
2026-02-07 21:52:45 +01:00
ChocoDev
fee9fa3d76 feat: vietnam(vn) translation (#1455) 2026-02-07 10:46:58 +01:00
とぴ。(おーけ
707d1e9a92 chore: add ja_jp translations (#1439) 2026-02-05 18:03:53 +01:00
Alexander Medvedev
835262a85a chore: move chunk gen settings from runtime to compile time parsing
Bin size decreased, Startup time decreased by a lot in debug, lower memory usage
2026-02-03 23:35:31 +01:00
Alexander Medvedev
05688ade9e fix: structure connection through chunks
still needs a bit more work, also changed the license,
2026-02-01 23:03:15 +01:00
Alexander Medvedev
72bd4dfbef feat: add from_legacy_string to TextComponent 2026-01-30 23:12:54 +01:00
Alexander Medvedev
be322123cf chore: make chunk gen usable in debug mode 2026-01-30 00:57:55 +01:00
Laptop59
54d99b8ae6 commands: added out of bounds checking for some commands and added strict mode for setblock (#1408) 2026-01-29 16:38:52 +01:00