Commit Graph

1700 Commits

Author SHA1 Message Date
Alexander Medvedev
f7b70bafb6 ci: build using x86-64-v3 2026-01-20 20:39:57 +01:00
Jinx
a6a09a9eca feat: implemented item/armor durability (#1343)
* Added durability for items and armor

* Run rustfmt
2026-01-20 19:16:56 +01:00
spectradevv
1cc35e482d fix: fire damage after death & when switching to creative (#1342)
* fix: entities taking fire damage after dying

* fix: being on fire after switching to creative

* fixed clippy warning
2026-01-20 19:07:09 +01:00
Clicks
1c6d9e2a3e feat: implement command_blocks_work gamerule (#1340) 2026-01-20 19:00:39 +01:00
Alexander Medvedev
afc4cb0cd3 chore: this should speed things up 2026-01-20 18:59:05 +01:00
Clicks
d737b56cbc perf: improve performance of has_random_ticks by 3x (#1296)
* bitsets!

* add benchmark to confirm

* assert same output (this will become outdated on the next version
upgrade)

---------

Co-authored-by: CuzImClicks <cuzimclicks@proton.me>
2026-01-20 12:42:44 +01:00
Alexander Medvedev
a59a8bc12d fix: dark oak tree trunk placment 2026-01-20 12:04:43 +01:00
Alexander Medvedev
bcdde4526f fix: fixed entity knockback 2026-01-18 10:41:37 +01:00
acopier
2461f85978 fix: make seed random by default (#1339) 2026-01-18 09:28:00 +01:00
Alexander Medvedev
49490237d4 chore: replaced rustyline-async with rustyline
also added console tab support
fixes https://github.com/Pumpkin-MC/Pumpkin/issues/429
2026-01-17 21:59:51 +01:00
Alexander Medvedev
3fbefafe4d feat: some more entity AI work 2026-01-17 19:26:25 +01:00
Alexander Medvedev
ba13f8a6c7 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1331 2026-01-17 10:57:17 +01:00
Alexander Medvedev
16abf08de3 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1334 2026-01-17 10:52:34 +01:00
Alexander Medvedev
6f18d16581 fix: the chunk unloading issue
at least hopefully, i think it was an Ticket Overlap, By adding the new ticket before removing the old one, the ChunkLoading system always sees at least one valid path for the chunks that overlap between the two view distances.
The fix seems to made the system slower but atleast it seems to not bug anymore
2026-01-16 17:48:30 +01:00
Hendrik Lind
1e691c71b9 refactor: use macros & remove need for temp buffer (#1313) 2026-01-16 16:39:38 +01:00
Alexander Medvedev
526c9cc465 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1298 2026-01-16 16:24:13 +01:00
Alexander Medvedev
ff1f3a0fbd remove: pumpkin-registry
it is gone for good, i made the new registry be parsed from compile time in pumpkin-nbt and even parse the nbt code at compile time as well, And like expected this gives a massive speedup in first time parsing and also decreased bin size
2026-01-15 21:10:18 +01:00
Alexander Medvedev
db486d5572 fix: make item drops fall smooth 2026-01-15 20:29:30 +01:00
Alexander Medvedev
0ef17af5d0 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1283 2026-01-15 17:47:30 +01:00
Alexander Medvedev
2faf24bb42 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1286 2026-01-15 16:51:37 +01:00
Pon easwaran
578bab259a fix(bed): remove paired bed half on state replacement (#1285)
Implement on_state_replaced for BedBlock to ensure both halves
are removed when one half is broken or replaced. This prevents
invalid block states and fixes the headless piston exploit.
2026-01-15 12:23:42 +01:00
Sclock
3558a4d058 feat(plugin): add API version compatibility check for native plugins (#1237) 2026-01-15 12:20:15 +01:00
Clicks
6178de5b07 fix: variety of small things (#1265)
* scheduled ticks for banners

* scheduled ticks and can place at for cakes

* add pitch to world spawn and setworldspawn command

* add ability migrate LevelDat from SpawnAngle to SpawnYaw

* backwards compatibility

* use minecraft name for setworldspawn
make PlayerSpawnPosition not panic anymore
fix infinite skipping of night when no players were online

* fix more clippy lints

* send abilities update on initial spawn

* Revert "fix more clippy lints"

This reverts commit 19d4ae56f8.

* .-.

* implement advance time gamerule

* still tick world_age

* advance weather

* add dropping of inventory on death

* keep inventory gamerule

* clippy

---------

Co-authored-by: CuzImClicks <cuzimclicks@proton.me>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-01-15 12:15:12 +01:00
Broken Cloud
1ff5f717b7 fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1284 (#1294)
* Add leaf litter filter, fixes #1284

* fix format

* fix fmt

* some adjustments

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-01-15 12:10:39 +01:00
Alexander Medvedev
b8e0dc85e8 chore: batch some things together
also added DrownedEntity
2026-01-14 22:31:58 +01:00
Alexander Medvedev
6889399e65 fix: use the correct health for entities 2026-01-14 19:55:34 +01:00
AyaSanae
1b4b6121eb fix: fluid incorrectly treating air as flowing water by validating state ids (#1249) 2026-01-14 18:43:54 +01:00
Zimbobub
e4cb225df9 fix: Client desync on container close (#1295)
* Fix incorrect cliend update packet on container close

* formatting
2026-01-14 18:26:02 +01:00
Alexander Medvedev
0555f804e0 feat: guess living entities 2026-01-13 23:36:49 +01:00
dependabot[bot]
57db90ce1a build(deps): bump crate-ci/typos from 1.41.0 to 1.42.0 (#1266)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.41.0 to 1.42.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.41.0...v1.42.0)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.42.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>
2026-01-13 22:48:13 +01:00
Alexander Medvedev
e46459915c feat: Implement fireworks
also fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1217
also includes some bedrock work, but still broken
2026-01-13 19:09:19 +01:00
Alexander Medvedev
60d65f1f48 Revert "Reuse TickData allocations between cycles (#1250)"
This reverts commit 0e5eaf5500.
2026-01-11 23:16:18 +01:00
NailLegProcessorDivide
0e5eaf5500 Reuse TickData allocations between cycles (#1250) 2026-01-11 22:48:34 +01:00
Ben Landon
9319bedac5 feat: Implement Command Blocks (#1223)
* Fix /transfer permission

* It's actually permission level three, not permission level two.

* Move dispatcher.register call to correct place

* Implement command blocks

* satisfy clippy

* satisfy formatter

* fix NBT typo

* Fix command block entity handling & ignore starting "/"

* fix: use @ for command block sender name

* feat: correctly load command block entities

* feat: send message when command block is changed

* feat: implement conditional flag for command blocks

* feat: implement chain command blocks

* fix: resolve clippy errors

* feat: implement command block previous output mode

* feat: implement comparator output for command blocks

* fix: check redstone conditions for repeating command blocks

---------

Co-authored-by: MollTheCoder <mollthecoder@programmer.net>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2026-01-11 15:32:04 +01:00
Alexander Medvedev
a44a5babe3 feat: partially implement Stronghold
also fixed some bugs
2026-01-10 17:56:25 +01:00
とぴ。(おーけ
f36baa6f44 fix: deadlock on PlayerInteractEvent (#1259)
* lifetime

* fix deadlock
2026-01-10 09:38:06 +01:00
Clicks
f34c3cf179 feat: layered snow (#1264)
* scheduled ticks for candles

* add layered snow

---------

Co-authored-by: CuzImClicks <cuzimclicks@proton.me>
2026-01-10 09:37:46 +01:00
sprinox
4254dbcbcc fix: deadlock in chunk system (#1263) 2026-01-10 09:36:57 +01:00
pom
7c8252d713 chore: update license year (#1261) 2026-01-06 09:09:23 +01:00
とぴ。(おーけ
ecae463291 fix: EventHandler lifetime args (#1255) 2026-01-05 11:47:50 +01:00
dependabot[bot]
7f86331182 build(deps): bump crate-ci/typos from 1.40.0 to 1.41.0 (#1257)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.40.0 to 1.41.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.40.0...v1.41.0)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.41.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>
2026-01-05 11:46:53 +01:00
Alexander Medvedev
ce652860e0 fix nether 2026-01-04 20:28:51 +01:00
Alexander Medvedev
01d3be963d feat: Structures 2026-01-03 23:36:19 +01:00
Clicks
714e970292 feat: Sweet Berry Bushes (#1248)
* switch to btreemap to comply with lint

* amplifier i32 -> u8

* switch allow to expect lint

* remove many many unnecessary clippy lints

* dont use expect inside quotes

* beetroot chance 1/3

* prevent sugar cane from growing more than 3 high

* add sweet berry bush

* check for block above

* start nether warts

* nether warts with random ticks

* cargo fmt

* bamboo!

* pass when using bone meal on sweet berry bush with age < 3

* fix first two bamboo not being wide

* use early returns to flatten nesting

* switch damage and damage context to take references instead of arcs

* entity collision damage with sweet berry bush and campfire

* prevent panic and instead just reject placement if y < 0

* fix cactus growing and add cactus flowers

* cargo fmt
2026-01-03 13:44:20 +01:00
Clicks
70b3132396 chore: Remove Redundant Clippy Allows (#1247)
* switch to btreemap to comply with lint

* amplifier i32 -> u8

* switch allow to expect lint

* remove many many unnecessary clippy lints

* dont use expect inside quotes
2025-12-30 12:16:31 +01:00
Hendrik Lind
b84e2e7153 feat: add times subcommand to title command (#1246)
* feat: add `times` subcommand to `title` command

* chore: make clippy happy
2025-12-30 12:14:55 +01:00
Clicks
24fff00425 Make All Dependencies Workspace Dependencies (#1245) 2025-12-30 12:13:51 +01:00
AyaSanae
10f19a93da feat: Implement blast furnace and smoker (#1253)
* implment blasting_furnace

* add smoker block entity

* add smoker block

* refactor furnace_block_entity using macros

* fix fmt
2025-12-30 12:10:32 +01:00
Alexander Medvedev
42c903493a port to 1.21.11 2025-12-24 13:09:01 +01:00
Bjorn Beishline
7ac20597fb Fix compilation of plugins and add examples (#1241)
* Add examples of plugins

* Fix plugin compilation

* Fix logging not working

* Remove dead code warning

* Fix all clippy lints

* Fix handle_blocking not working

* Add back .block_on

* Remove examples
2025-12-22 15:11:12 +01:00