Commit Graph

10 Commits

Author SHA1 Message Date
spr-equinox
8ce65cc42d Refactor ItemStack to Support Vanilla-Like Data Components (#1059)
* improve tag v1

* improve tag v2

* fix typo and make BlockPredicate better

* improve get state from state id

* impl DataComponent

* make tag pub

* make component work

* apply clippy

* apply clippy

* remove unused crate

* apply to itemstack and no lifetime mark anymore

* Update tag.rs

* use Cow

* remove unnecessary lazy_static and Cow

* Update mod.rs

* Update mod.rs

* make DataComponent dyn

* remove unused crate

* fix error

* Update Cargo.toml

* Update Cargo.lock

* fix

* Update composter.rs

* update rust-version, remove unused crate, and merge

* Update furnace.rs
2025-07-28 12:24:40 +02:00
Rafael
3d72b72639 feat: Implement hand swing animation for beds (#1025)
* feat: Swing hand like vanilla

* feat: Make it more vanilla

* fix: Remove comment

* fix: Stop action if the block it too be stopped

* fix: rename to match vanilla

* fix: Add missing comment

* fix: clippy

* fix: Use names from yarn mappings

* fix: Make clippy happy
2025-07-27 10:35:39 +02:00
unschlagbar
2e2236bf3b Bedrock player joining (#1063)
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
Co-authored-by: unschlagbar <adrian@kuhlmann@gmx.de>
2025-07-26 17:31:00 +02:00
spr-equinox
0d649a87d5 support offhand (#1047)
* support offhand

* Update play.rs

* Update play.rs

* Update play.rs

* Update play.rs
2025-07-11 20:27:25 +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
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
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
とぴ。(おーけ
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
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
Alexander Medvedev
e0c91b3edc Initial Bedrock support
You can't join the World, But the base is ready
2025-06-29 00:33:44 +02:00