0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin synced 2025-04-15 21:05:38 +00:00

1249 Commits

Author SHA1 Message Date
75bf6e0047 fix master merge 2025-04-13 11:46:57 +02:00
05550219f5 Merge branch 'master' into chunk-features 2025-04-12 15:47:57 +02:00
c138775169 only set max lightning for sky
the old thing was setting block light to max as well which looked normal in vanilla but is wrong and caused issues with shaders
2025-04-12 13:00:22 +02:00
aedb29f3fc Only store state id in RawBlockState
This theoretically cuts the internal memory usage of chunk data in half since we no longer save the block id
2025-04-12 12:57:09 +02:00
7180ea69ee Remove non-vanilla Slot and replace with ItemStackSeralizer (#726)
* replace slot with ItemStackSeralizer

* Fix ItemStack

* Fix pickup and remove faulty crafting (getting reworked in inv revamp)

* re-add component check

---------

Co-authored-by: kralverde <github@email.kralverde.dev>
2025-04-12 11:28:36 +02:00
77846fc7d0 Add food components to item (#711)
* Add food component to item

* Ran and fixed cargo --fmt check

---------

Co-authored-by: Akash Beh <akashsebastianbeh@gmail.com>
2025-04-11 15:52:04 +02:00
f2b91850d2 add block_position to BlockBreakEvent (#723) 2025-04-11 08:49:04 +02:00
85c7afad8f Merge branch 'master' into chunk-features 2025-04-10 21:29:31 +02:00
4bccba7b20 fix some typos
- also moved tempfile dep to dev-dependencies
- removed the noise crate
- renamed some things
2025-04-10 21:21:43 +02:00
fbd95cb693 Read and Write light data using Anvil
Now we are reading and writing light data to and from the anvil format and send it in the chunk and light packet
2025-04-10 19:09:27 +02:00
71d0489a53 add more heightmaps 2025-04-09 11:28:02 -10:00
f0636bb924 Memory and binary size decreases and chunk generation code cleaning (#715)
* initial work

* refactor perlin noise function & re-add tests

* make the biome tree compile time

* seperate density function stacks
2025-04-09 10:39:45 -10:00
bfa3b5a848 Fixed fall damage (#712)
* Fixed fall damage

* Removed print statements

---------

Co-authored-by: Akash Beh <akashsebastianbeh@gmail.com>
2025-04-09 21:58:50 +02:00
8210588f47 Harden docker and other small changes (#695)
* harder better faster stronger

* add image to docker compose

* Comment out image
2025-04-09 08:57:49 +02:00
335d6f0449 change things 2025-04-08 18:17:29 +02:00
91ef79325a Network Serialization Quality of Life and Safety Improvements (#701) 2025-04-07 07:59:00 -10:00
e9056bb6d9 base tree impl 2025-04-06 23:07:02 +02:00
67f26cf9bd fix 1.21.5 item and entity hover 2025-04-06 14:07:17 +02:00
80e6da9ffb Add memory profiler feature (#706)
* add memory profiler feature

* fix clippy
2025-04-05 16:12:03 -10:00
055a5d0feb Various essential chat improvements (#692)
* fully validate chat messages

* remove unnecessary stuff

* remove lies

* building errors

* Separate last_seen from signature_cache to mirror Vanilla behavior

* full cache management

* better obj management

* change inline values to const

* change unneccesary new to default

* better comments

* derive defaults

* remove random debugs

* Fix magic numbers

* pretty sure an EnumSet should be u8

* Add assert for allow_chat_reports config option

* Verify chat message expiry and order

* Implement chat session validation

* Set all `ChatError` to `Level::Warn`

* Truncate full_cache correctly

* move java hash functions together

* remove extra use

* `full_cache` as `VecDeque`

* Set `full_cache` capacity

* Remove length check for `key_signature`

* Move `PlayerInfoFlags`

* Move `fetch_mojang_public_keys`

* clippy fix
2025-04-05 22:23:24 +02:00
9b53abcec0 Add docker to dependabot (#694) 2025-04-05 22:16:13 +02:00
7bc1e5ef86 Fix File IO Lock Manager (#703)
* fix file locker

* fix linear bounds check
2025-04-05 08:25:56 -10:00
9cd1377091 change stuff 2025-04-05 16:17:08 +02:00
bea31defba Fix fluid weirdness (#704)
* Fix fluid weirdness

* fmt
2025-04-05 14:06:00 +02:00
3e1c9f735c README: check Liquid Physics 2025-04-05 11:55:36 +02:00
08ed44e7bc Implement Flowing Fluids (#643)
* Water flow downwards

* working impl falling

* remove unused code

* format

* finish up default implementations

* Full water physics

* merge from master

* More like vanilla

* Deterministic fluid sim

* Fix warning

* fix clippy

* fix fmt

* Add lava support

* move fluids to block

* fmt fix

* add neighbor updates

* fix clippy

* Fix Dissapearing fluids

* Fix air spread and add static water updates

* fix lint

* fixes

* fmt
2025-04-05 11:54:40 +02:00
bc1a3a6689 Fix creative block breaking bug (#699) 2025-04-05 11:23:54 +02:00
33d9010c8f Add useful docker tags (#682)
* Better tags

* remove - form mc

* update tagging version extraction
2025-04-04 08:37:05 +02:00
e589460fb2 Move Docker annotations to CI (#697)
* Remove annotations from Dockerfile

* Add annotations in CI
2025-04-04 08:27:52 +02:00
e03e05ddad Refactor unnecessary unsafe code and add safety comments (#698)
* refactor unsafe code

* fix unwrap in forbidden block
2025-04-04 08:25:36 +02:00
b6185f8218 new things 2025-04-03 22:34:09 +02:00
8b5ba33b4a Merge branch 'master' into chunk-features 2025-04-03 19:37:09 +02:00
dda7cac329 Save/Read and broadcast biomes (#678)
* send biomes in packet

* fix single pallet

* complete logical palette container

* refactor codecs

* palette work

* palette work

* fix palettes

* clean up palette logic

* better handling of chunk loading channel errors

* fix encompassing bits

* fix network serialization

* fix typos

---------

Co-authored-by: kralverde <github@email.kralverde.dev>
2025-04-03 19:06:40 +02:00
11c2336556 Never strip debug symbols (#679)
* use cargo strip

* Never strip debug symboles

* looks like i had format on save on in nvim

* change the version back

* remove nl

* remove new line
2025-04-03 19:03:00 +02:00
2742086e69 Make coarse and rooted dirt work as intended with the hoe (#688)
* fix: redesign of hoe logic

* refactor + tests passed

* delete .clone + return the location on the match face
2025-04-03 19:02:11 +02:00
ae53d93f8e fix rust 1.86 clippy warns 2025-04-03 18:24:19 +02:00
be19110a24 change version policy
this will make it easier for people to see what mc version the pumpkin version is at
2025-04-01 20:50:09 +02:00
a2d9396bbd parse protocol version
one thing less to care about when porting
2025-04-01 16:06:51 +02:00
bfdd57b88f added some fun
😉
2025-04-01 15:45:23 +02:00
d36102dc69 Make To-Do more precise (#689)
- Moved "Biomes" to be alongside completed features
- Marked "Commands" and "Redstone" as W.I.P (#15 and redstone is a basic implementation
2025-04-01 07:28:10 +02:00
dd5793c010 add simple random selector 2025-03-31 23:34:21 +02:00
778d4d431c add simple BlockPredicate 2025-03-31 23:11:47 +02:00
045bca37a0 make it parse 2025-03-31 22:21:39 +02:00
30231ca8b9 Merge branch 'master' into chunk-features 2025-03-31 17:11:59 +02:00
4db3ac6926 Bump crate-ci/typos from 1.30.0 to 1.31.0 (#686)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.30.0 to 1.31.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.30.0...v1.31.0)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  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>
2025-03-31 08:09:54 +02:00
f71ba0c3e8 add some features
still no result, but we are getting there...
2025-03-30 23:47:17 +02:00
a63b49a095 add Secure Chat (#656)
* Add secure chat configuration option

* Add secure chat bool to login packet

* change name of config flag

* add packet deserializer for player session packet

* make session update async

* Change config option

* Formatting

* Add chat configuration option

* Basic custom chat formatting

* formatting

* Add chat session to Player

* fix duplicate imports

* Formatting

* chat validation mostly working

* add registry for custom raw message

* chat formatting working with secure chat

* don't share session tokens if reporting blocked

* add received message index

* add custom registry without modifying asset files

* resolve color decorator before MESSAGE so player can't inject color codes by default

* move comment

* update all player sessions on join

* better previous message handling

* fix multiplayer bugs

* send new players existing signatures

* clean stuff up

* only send ChatSession if reports are enabled

* make clippy happy
2025-03-30 21:31:55 +02:00
8f8013932a add more things
great title i know
2025-03-30 17:14:30 +02:00
513dbff7d9 make vertical gradient condition cache thread local (#684) 2025-03-29 11:51:58 -10:00
d54325113f Biome & surface generation fixes (#648)
* add biome test

* tweak biome data

* add multi noise sample test

* multi noise work

* extract tree itself

* tweak tests

* chunk tests complete

* add surface test

* fix badlands

* refactor perlin noise

* frozen ocean tests

* fix glaciers

* cache optimization

* cache block lookup

* update asset files

* add second badlands test

* add biome blend test

* add more tests
2025-03-29 21:23:27 +01:00