azom
488e4de586
the fix ( #772 )
2025-04-26 20:33:14 -10:00
akashbeh
604d5bae2f
Un-option item_name ( #771 )
...
* Remove option
* Removed todo line
---------
Co-authored-by: Akash Beh <akashsebastianbeh@gmail.com >
2025-04-26 20:32:10 -10:00
Liyan Zhao
360b834bcf
Revert packet name change from #742 ( #768 )
...
* revert: Revert packet name change from 48e2cf6b42
* fix: add comments
2025-04-26 20:31:21 -10:00
unschlagbar
b997687e8b
implement Door placement & pumpkin_data changes ( #713 )
...
* fix: view distance goes no above 16
* fix: cargo fmt
* removed the floating point conversation
* fixed spelling
* renamed the test for the capacity estimation
* edit: replaced division with bitshifting
* added more ()
* extendet test and fixed missing chunks when the view distance is very low
* added commentar
* fixed door placement & fence connection
* fix linting
* fmt
* fix clippy
* removed useless borrow
* fix all clippy warnings
* bro i changed so much
* added const to fn
* Update block_state.rs
* added bunch of things
* fix
* lol
* fmt
* fix: player is able to place where it stands
* fix: spelling
* upd2
* upd 4
* remove Option types from blockstate
* resolve conflicts
* Update player.rs
* fix
* fmt
* remove uninit
* fix
* resolved conflicts
* fmt
* remove dupe code
---------
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
2025-04-26 10:27:37 -10:00
Liyan Zhao
b8bd0acc78
Fix dead lock ( #756 )
...
* fix: typo
* fix: dead locks
* style
* style
* fix clippy
* fix: added_to_server_listing to avoid overflow panic
* fix: use AtomicBool
* fix
* add comment
* fix: remove unnecessary clones
* chore
* chore
* chore
* chore
* fix
* fix: remove unnecessary loop in loop
* fix
* fix
* fix
* fix
* fix
2025-04-25 22:31:52 -10:00
kralverde
1915691e2f
Fix spelling lint ( #770 )
2025-04-25 11:06:08 -10:00
Laurent Stéphenne
dd8a8fb96e
Rails support ( #760 )
...
* Moved liquids
* Added rail with correct placement logic
* Refactor and elevation support
* Rail placement fully works
* Rail placement fully works
* RailProperties in now an enum
* Added dummy powered rails
* Rail placement fully works for straight rails
* Now using HorizontalFacing
* Used match instead of reverse+clockwise
* Rail not break properly
* Common rail code
* Rename
* Added Activator and Detector rails
* Clippy
* Typo
* Rename + reorder
2025-04-25 10:39:01 -10:00
TheDarkSword
9db3603395
Fix fall damage when in water ( #761 )
...
* Fix fall damage when in water
* fix(cargo fmt --check) typo
* fix Handle under-block not exists
* clippy: fix option_if_let_else lint with is_ok_and
2025-04-25 10:08:43 -10:00
ht06
0495211744
Finalise the /effect command ( #759 )
...
* feat: add amplifier + hide particles (but the infinite time is missing)
* fix effect duration
* /effect give fully work
* feat: add basic remove effect (should work?)
* fix the import of remove_entity_effect packet
* /effect clear fully work + translation ok
* feat: command /effect is now complete
* fix visual bug when the duration is infinite
* Finalization
* Everything work fine now
2025-04-25 09:47:05 -10:00
azom
85dedf3c29
Fixing repeater power on placement ( #763 )
...
* added check for power on repeater placement
* added block update on redstone shape change
* added comments if needed
* removed the redstone wire change since it seems to be a bigger problem.
* make clippy happy
* removed unnecessary check
* simple enough to not have the comment
2025-04-25 09:44:10 -10:00
Alvsch
b811ab57d7
Add whitelist feature ( #741 )
...
* added whitelist feature
* add whitelist command
2025-04-25 09:43:45 -10:00
Alvsch
5d15feeb59
fix #728 ( #747 )
2025-04-25 09:42:17 -10:00
z0x
84dd6a7935
Fix rustyline-async division by zero panic ( #755 )
...
[ #594 ](https://github.com/Pumpkin-MC/Pumpkin/issues/594 )
2025-04-25 09:36:13 -10:00
suprohub
cda41d0d78
Plugin improvements ( #725 )
...
* Test impl
* onefix
* Fix commands
* Fix
* Fmt
* Fix clippy
* Fix clippy
* Run non blocking in parralel
* Add server to event calls
* Fmt
* Fixes
* Fix lifetimes
* Fix
* Update mod.rs
* Update mod.rs
* Update mod.rs
* Fix
2025-04-25 09:35:53 -10:00
azom
a9b35fbf8d
fixed rotate_ccw ( #767 )
2025-04-25 15:09:30 +02:00
Alvsch
48e2cf6b42
Fix position desync between clients ( #742 )
...
* fix teleport desync
* fix: move to fast desync
2025-04-24 14:38:03 +02:00
Commandcracker
a3169725e9
Use none root user inside docker container ( #680 )
...
* Never use root :D
* Change to 2613
2025-04-24 14:31:58 +02:00
Alvsch
abb4e5412e
fix #732 ( #745 )
2025-04-20 10:26:27 +02:00
kralverde
fbf18cc16d
Harden palette (de)serialization ( #733 )
...
* initial_commit
* double check palette data
2025-04-18 06:26:34 -10:00
Niels
7f800c768a
Fix max water flowing distance bug ( #750 )
...
* fix(fluid): fix flowing mechanics
* clean up code
* Revert "fix(fluid): fix flowing mechanics"
* fix water flow issues
2025-04-18 09:38:46 +02:00
Alvsch
7f2c8b73f5
serialize without length prefixes ( #748 )
2025-04-18 09:27:59 +02:00
Alvsch
4b82acc258
Fix gamemode switcher ( #743 )
...
* fix #718
* implement code that ultimately doesn't do anything
2025-04-17 19:55:56 +02:00
Alvsch
35d3aa49c0
use latest position for player hitbox ( #746 )
2025-04-17 19:54:27 +02:00
Alexander Medvedev
254982f745
Allow Up and Down direction for blocks
...
now we only calculate the direction if we need and also can calculate up and down which can be used for blocks like Observers or Pistons.
Fixes https://github.com/Pumpkin-MC/Pumpkin/issues/738
2025-04-14 17:02:09 +02:00
Alexander Medvedev
7611427f92
rework block registration
...
this should now take less memory and enabled better compiler optimizations, also the piston facing got fixed
2025-04-14 11:39:58 +02:00
Alexander Medvedev
d9c63cfb08
add comparator add block entity
2025-04-13 17:11:46 +02:00
Alexander Medvedev
d76d449cba
add bed as block entity
2025-04-13 17:11:35 +02:00
4lve
0dd176e8e2
add Block Entities ( #737 )
...
* Start implemetnign block entities
* fix
* Move block entites
* bruh wtf
* fix
* Add seralizers for compund
* don't panic on unknown block enity types
* Move block entites to pumpkin-world
* begin implementation
* Chunk packet works
* fix signs
* fix clippy
* merge
* Fix signs
* merge
* fix
* merge
* fix
* remove println
* move folder
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-04-13 16:22:12 +02:00
Alexander Medvedev
929388fc9d
added more heightmaps
...
thanks to kralverde
Co-Authored-By: kralverde <80051564+kralverde@users.noreply.github.com >
2025-04-12 16:52:16 +02:00
Alexander Medvedev
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
Alexander Medvedev
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
4lve
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
akashbeh
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
Nick Pisciotta
f2b91850d2
add block_position to BlockBreakEvent ( #723 )
2025-04-11 08:49:04 +02:00
Alexander Medvedev
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
Alexander Medvedev
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
kralverde
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
akashbeh
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
Commandcracker
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
kralverde
91ef79325a
Network Serialization Quality of Life and Safety Improvements ( #701 )
2025-04-07 07:59:00 -10:00
Alexander Medvedev
67f26cf9bd
fix 1.21.5 item and entity hover
2025-04-06 14:07:17 +02:00
kralverde
80e6da9ffb
Add memory profiler feature ( #706 )
...
* add memory profiler feature
* fix clippy
2025-04-05 16:12:03 -10:00
Andrew Neeley
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
Commandcracker
9b53abcec0
Add docker to dependabot ( #694 )
2025-04-05 22:16:13 +02:00
kralverde
7bc1e5ef86
Fix File IO Lock Manager ( #703 )
...
* fix file locker
* fix linear bounds check
2025-04-05 08:25:56 -10:00
teknostom
bea31defba
Fix fluid weirdness ( #704 )
...
* Fix fluid weirdness
* fmt
2025-04-05 14:06:00 +02:00
Alexander Medvedev
3e1c9f735c
README: check Liquid Physics
2025-04-05 11:55:36 +02:00
teknostom
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
teknostom
bc1a3a6689
Fix creative block breaking bug ( #699 )
2025-04-05 11:23:54 +02:00
Commandcracker
33d9010c8f
Add useful docker tags ( #682 )
...
* Better tags
* remove - form mc
* update tagging version extraction
2025-04-04 08:37:05 +02:00