Liyan Zhao
d34b3eb3f7
Macroize serde ( #1029 )
...
* macroize serde
* fix
2025-07-10 10:52:28 +02:00
spr-equinox
c965a2ff1f
Change BlockRegistry and ItemRegistry to use u16 ( #1035 )
...
* optimize
* fix
* fix the weird indent
* Update fluid.rs
* Update blocks.rs
* fmt
* use hash block
* apply to item
* fix incorrect name
2025-07-10 10:43:47 +02:00
Clicks
c1af97d2b4
Fix Ghost Blocks on Candle Cakes ( #1043 )
2025-07-10 10:34:58 +02:00
LCW
b1098bfbc1
Optimization ChunkNoiseFunctionComponent ( #1037 )
...
* feat(chunk): optimize heap allocations of destiny function
* refactor: applied `cargo fmt` and linting error
* fix(benches): fix lint errors
2025-07-10 10:30:14 +02:00
MollTheCoder
ef658a906d
Update permission level for /transfer ( #1039 )
...
* Fix /transfer permission
* It's actually permission level three, not permission level two.
* Move dispatcher.register call to correct place
2025-07-10 10:25:01 +02:00
Alexander Medvedev
6ea5da408a
Fix https://github.com/Pumpkin-MC/Pumpkin/issues/964
...
this was because of the light level not being checked, now there are too few mushrooms but i think still better
2025-07-10 10:22:30 +02:00
4lve
60d83022be
Optimize everything ( #1032 )
...
* Start fixing block entities
* Fix
* Begin performance fixing
* Fix stuff
* cleanup
* fix clippy
* Fast as fuck
* fix clippy
* Write chunks concurrently
* Disable random ticks for now
* Fix
* Merge
* fix merge errors
* Fix clippy
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-09 23:53:50 +02:00
とぴ。(おーけ
1c97edb360
replace to static Fluid / impl ToResourceLocation and FromResourceLocation traits ( #1023 )
2025-07-09 18:00:52 +02:00
Clicks
90fe277dbe
Reduce LLVM IR to cut down on compile times ( #1027 )
...
* cleanup entity_prevents_sleep
* ups
2025-07-09 17:52:40 +02:00
ht06
7332c5f6a3
Fix random_tick for potted_open_eyeblossom and potted_closed_eyeblossom ( #1031 )
...
* fix: random_tick for potted_open_eyeblossom and potted_closed_eyeblossom
* fix: random_tick for open_eyeblossom and closed_eyeblossom
* clippy
* fmt
2025-07-09 17:17:42 +02:00
Commandcracker
928e1a3d97
Add Paper and Vanilla files to .gitignore ( #1020 )
2025-07-09 17:17:12 +02:00
Ancient77
10e2a76db9
Pressure Plates & Redstone Gates handle invalid placement ( #1000 )
...
* redstone_gates should drop themselves
* pressure plate handle invalid placement
* fix clippy
* fix merge
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-09 17:11:50 +02:00
Alexander Medvedev
0c717e2d0e
move to pure rust zstd
2025-07-09 16:50:02 +02:00
Alexander Medvedev
e96dc4d98e
Improve compile time
2025-07-09 16:26:16 +02:00
Alexander Medvedev
8fec1d56cd
Improve compile time by a bit
2025-07-08 23:58:00 +02:00
Commandcracker
a3c8a7831d
Add rayon to data build.rs ( #1033 )
...
* Add rayon to data build.rs
* make clippy and fmt happy
2025-07-08 20:02:05 +02:00
Omar Afet
776da02c39
Implement Powering Logic for Powered & Activator Rails ( #1030 )
...
* implement powered & activator rails powering logic
* fix errors/warnings
* clippy
* cargo fmt
2025-07-08 17:24:17 +02:00
Alexander Medvedev
c19e6135d3
use get_state_id instead of get_state when loading Chunks
2025-07-08 17:13:36 +02:00
teknostom
a18d399ad1
Add random block ticks and crop impls ( #935 )
...
* add random block ticks
* fix linx
* fmt
* fix performance
* remove log
* fix ci
* fix data
* Crop growing
* fix
* fix crops
* optimize
* fix
* fmt
* performance
* fmt
* remove chunk checking
* fix deadlocks
* final fixes
* clippy
* fix
2025-07-08 15:06:34 +02:00
spr-equinox
8ce27b9b65
feat: support dropper ( #977 )
...
* support dropper screen
* support drop item
* fix block_receives_redstone_power
* Update mod.rs
* Update mod.rs
* fix
* Update dropper.rs
* fix
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-07 21:01:49 +02:00
Greened
46d63e9a90
limit tp command range ( #1015 )
...
* fix: /tp command server crash
Set bounds for /tp command arguments
* fix: formatting
fixed formatting
* Update teleport.rs
switched from else to return
* Update teleport.rs
Switch to is_valid method added in world
* Update mod.rs
Added is_valid_horizontally, is_valid_vertically, and is_valid functions.
* Update teleport.rs
fixed if checks
* Update mod.rs
Fixed error. switched to .contains() instead of checking bounds with >= <=
* Update mod.rs
added must use. (because of test error)
* chore: Switch to return Err() instead of manually sending error message.
* fix: formatting
* removed unused sender variables
* chore: fix formatting again
2025-07-07 20:36:36 +02:00
Clicks
6461067b60
Add Candles, Cakes and Candle Cakes ( #907 )
...
* feat: basic implementation of sea_pickles
* feat: sea pickle placement done
* feat: sea_pickle growing done
* fix: remove unused function
* fix: clippy time
* fix: variable name
* fix: rng
* add candle block
* add to registry
* add fire charge
* implement putting out campfires
* fix adding the wrong color of candle
* FIXME: placing underwater and on top of waterlogged blocks
* fix trying to place inside of water
* cargo fmt
* clippy :)
* prevent fire and candles from being placed ontop of waterlogged blocks
* clipppyyyyy
* .-.
* fix missing negation
* putting candles on cakes and lighting them
* hard code ids
* add eating candle cakes
* implement @Snowiiii's suggestion
* prettier :D
* fix merge
* fix resetting of block states
* fix creative mode
* fmt
* fix ignition of candle cakes
* fix cakes in creative
* switch to args as structs
* fix ci
* cargo fmt .-.
---------
Co-authored-by: ht06 <hthug06@gmail.com >
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-07 20:23:48 +02:00
Alexander Medvedev
b9f2de33f4
Fix dead locks, vanilla chunk loading and packet issues
2025-07-07 19:36:45 +02:00
Rafael
c61572d776
feat: Implement ChiseledBookshelf ( #1003 )
...
* feat: Add basic ChiseledBookshelf block
* feat: We now know what slot the player pressed
* feat: Add block entity
* feat: Implement logic
* fix: Make clippy happy
* feat: Refactor item interact system to be more like vanilla
* feat: Add ActionResult to non item function
* fix: Some cleanup
* fix: Make rust-fmt happy
* feat: Remove useless use_with_item functions
* fix: Broken block placement
* fix: Crash
* fix: Make clippy happy
* fix: Remove unused function
* fix: Noteblocks can be placed on eachother without sneaking
* feat: Add check for creative
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-07 14:56:34 +02:00
dependabot[bot]
ce9c29891d
Bump crate-ci/typos from 1.33.1 to 1.34.0 ( #1022 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.33.1 to 1.34.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.33.1...v1.34.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-version: 1.34.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>
2025-07-07 13:13:43 +02:00
Tom
bf13cb129f
Fix wall mechanics ( #1007 )
...
* begin wall mechanic fix
* finished wall
* walls fixes
* clippy fixes
* fix args field name
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-06 22:28:17 +02:00
Firelop
e99e12fd54
Fixed weird behavior of fall damage when player is in water #507 ( #882 )
...
* Reset fall distance for entities in water or powder snow
* Fixed formatting
* F*** ing semicolon
* Removed useless mut
2025-07-06 21:46:37 +02:00
Commandcracker
c80dfcbf0b
Skip unloadable plugins and log loaded plugins ( #1009 )
...
* Small plugin loading improvement
* fmt
* Delete plugins directory
oops
2025-07-06 21:04:15 +02:00
AyaSanae
e73541a12e
pumpkun-data: Add fuels ( #1005 )
2025-07-06 20:44:09 +02:00
Liyan Zhao
f7218a8b63
feat: logging to file ( #958 )
...
* feat: logging to file
2025-07-06 20:12:52 +02:00
Alexander Medvedev
2f6c484b2b
Protocol refactor ( #1006 )
...
* fixes
* Fixed missing ACKs (#1002 )
* sefesf
* efrgf
* efes
---------
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
* Refactor Protocol
* Add CStartGame
currently broken, i will try to fix it tomorrow
* fix start packet
* more bedrock (#1014 )
* srgjtdrwa
* sgs
* reg
* rg
* rgth
* ef
* rfrgreg
---------
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
* rename locations to position
---------
Co-authored-by: unschlagbar <153451111+unschlagbar@users.noreply.github.com >
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
2025-07-06 15:43:53 +02:00
Tom
5b63104c1c
Add anvil block rotation ( #998 )
...
* Add anvil rotation
* simplify to single impl
* remove unused code comments
* refactor to struct args
2025-07-05 22:35:48 +02:00
Alexander Medvedev
85007547c4
Initial Enchantment work
2025-07-03 16:41:57 +02:00
Commandcracker
fcf2700d65
Drop items & xp and reset hunger on death ( #972 )
...
* Drop items & xp and reset hunger on death
resolves #955
* clippy and fmt
* reset xp and hunger on respawn instead on death
2025-07-03 09:39:22 +02:00
とぴ。(おーけ
8ee7150715
Use structs for PumpkinBlock trait function arguments ( #962 )
...
* Make all arguments structs
* use_with_item
* use_with_item
* explode
* on_synced_block_event
* on_place
* random_tick
* remove lifetime names
* can_place_at
* can_update_at
* placed
* player_placed
* broken
* on_neighbor_update
* prepare
* get_state_for_neighbor_update
* on_scheduled_tick
* on_state_replaced
* emits_redstone_power
* get_weak_redstone_power/get_strong_redstone_power
* get_comparator_output
* remove BlockDirection borrow
* #939
2025-07-03 09:37:18 +02:00
Rafael
70dd33eb09
fix: Add rust-src as extension ( #1001 )
2025-07-03 09:26:29 +02:00
Alexander Medvedev
2e643cdeb1
add more packets
2025-07-02 15:48:57 +02:00
ht06
f21f552680
Placement for Glazed Terracottas ( #974 )
...
* feat: add placement for glazed_terracottas
* fmt
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-02 14:35:52 +02:00
Commandcracker
febe897510
Add Mace and Trident to no creative mining item ( #975 )
...
* Add Mace and Trident to no creative mining item
resolves #941
* move mace to seperate meta item
2025-07-02 14:28:42 +02:00
unschlagbar
2f5bb83a28
Fixed id parsing & fragmenting work ( #994 )
...
* ug
* clippy fix
* i hate clippy
* IOjeliufrhgiufehiuf
---------
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
2025-07-02 14:28:03 +02:00
Omar Afet
0d2db86a3b
Fix straight rail placement not connecting to elevated rails ( #985 )
...
* feat: Improve straight rail placement logic
Refactors the `compute_placed_rail_shape` function in common.rs to use a more sophisticated logic for determining the shape of placed straight rails. The new logic checks for connections in all four cardinal directions (East, South, West, North) and prioritizes forming straight lines or ascending/descending shapes based on neighboring rails' elevations. If no connections are found, the rail's shape defaults to the player's facing direction. This change aligns the straight rail placement behavior more closely with that of normal rails.
* fix clippy + cargo fmt
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-02 14:16:32 +02:00
Alexander Medvedev
630560e1d8
Update README gif
2025-07-02 10:45:32 +02:00
4lve
622e2a13d2
Improve chunk generation speed by 5x ( #988 )
...
* Fewer locks and limit chunk gen to 2x per core
* remove logs
* Fix server shutdown
* Always use static blockstate
* Remove clone from block
* Fix clippy
* Imporve perf
* Implement FyorDev & MartV0 lookup tables
* Add chunk benchmark (FyorDev)
* fix c
* Fix CI
* fix clippy
* Format
* fix CI fr
* format
* Update benchmark to 1000 chunks
2025-07-02 09:48:36 +02:00
unschlagbar
5dac015dd9
Fixed gamepacket parsing ( #987 )
...
* grg
* ef
* gg
* refwd
---------
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
2025-07-01 21:33:45 +02:00
spr-equinox
55737505ca
improve fill command ( #959 )
...
* improve fill command
* clippy
* optimize tag checking
* apply some translations
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-01 20:50:58 +02:00
Alexander Medvedev
e2dec9b5e2
try to implement game packet
2025-07-01 19:44:21 +02:00
unschlagbar
8d934e31c7
First valid Raknet Frame set Packet :) ( #983 )
...
* hhlzuui
* gg
* reufef
* fix
---------
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de >
2025-07-01 14:04:23 +02:00
Alexander Medvedev
5db9bba5b7
some more bedrock work
2025-07-01 10:13:07 +02:00
ht06
0804a07626
Implement Flower pot and change the state of eye blossom flower ( #930 )
...
* feat: place flowers, saplings, ... inside the pot
* feat: remove flowers, saplings, ... inside the pot and check when placing block next to the pot
* feat: add changement for eye blossom flower state (open and closed)
* fix: adapt to the BlockState commit (8ebc9ee )
* fix: delete unused import
* fix: refactor
* cargo clippy + fmt
* feat: use extractor to place the flower inside the pot
* All done
* fix: replace blocking_lock() by lock().await
---------
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me >
2025-07-01 08:50:52 +02:00
Alexander Medvedev
c67d4cfd2e
Update to 1.21.7
2025-06-30 23:41:23 +02:00