Commit Graph

1439 Commits

Author SHA1 Message Date
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
Alexander Medvedev
637aada913 More Bedrock work 2025-06-30 23:15:09 +02:00
AyaSanae
2d30f7af23 Recipes: add cooking recipes (#965)
* Recipes: add cooking recipes

* fix dead_code warn
2025-06-30 10:19:17 +02:00
Liyan Zhao
b31548e56a Feat: crafting system (#952)
* Added recipes.json basic deserialisation

* Basic crafting implementation

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix: add use_with_item method to CraftingTable

* chore: remove dbg!

* fix: crafting bug

* fix: avoid taking item from result slots

* fix

* fix: asymmetrical recipes

* fix: clippy

---------

Co-authored-by: Laurent Stéphenne <laurent@guibi.dev>
Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2025-06-29 23:56:32 +02:00
Alexander Medvedev
5b15f0b106 fix CI 2025-06-29 23:44:36 +02:00
spr-equinox
093f05047c support SkullBlock (#946)
* support SkullBlock

* Update skull_block.rs
2025-06-29 23:29:21 +02:00
Alexander Medvedev
b46fe83bcc Use TextComponent in Command Error
This allows plugins to throw a TextComponent instead of just a String as an Error, Nice
2025-06-29 22:58:55 +02:00
spr-equinox
e0cb262fd1 Resolve missing trapdoor sound for other players (#943)
retry ci
2025-06-29 21:29:54 +02:00
Clicks
cd4ee78815 fix resetting of block states for ignition (#951) 2025-06-29 21:25:18 +02:00
Alexander Medvedev
402b6b130a Implement Minecart spawning 2025-06-29 21:17:59 +02:00
Alexander Medvedev
b7ce059314 Fix pine tree foliage 2025-06-29 10:49:16 +02:00
Alexander Medvedev
b5bc279527 fix CI try 2
:D
2025-06-29 09:20:19 +02:00
Alexander Medvedev
b52d07993e fix CI 2025-06-29 00:53:01 +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
supercoolspy
6a620e4a9e return Path in data folder function (#953) 2025-06-29 00:02:58 +02:00
Liyan Zhao
d16b0f98c2 Implementation of QuickCraft, PickupAll, Clone and Throw in inventory (based on #862) (#940)
* initial test for pickupall

(cherry picked from commit a939804eff)

* added quickcraft right click and throw

(cherry picked from commit cdcbccd962)

* comments

(cherry picked from commit f23bc8fd4d)

* fix: QuickCraft handling and add drag slot support

* fix: enhance quick craft item handling in inventory

* fix

* fix clippy

* fix: drag

* fix: improve item throwing logic in screen handler

* fix: fix drag & throw

* fix: throw

* fix

* fix

* fix

* fix: PickupAll

* fix

* fix

---------

Co-authored-by: azomDev <dev@azom.ca>
2025-06-27 23:08:45 +02:00
spr-equinox
8089421f89 add CopperBulbBlock (#944) 2025-06-27 23:00:40 +02:00
Arrow
48f55f20d0 Implement Campfires (#921)
* fix: merge conflicts

* feat(blocks): campfires

* fix: merge conflicts (ideally works this time)

* cargo fmt

* rm: BlockFlags::NOTIFY_ALL_AND_REDRAW

* fix: satisfy cargo fmt

---------

Co-authored-by: arrow <arrow.tsx@gmail.com>
2025-06-27 22:52:01 +02:00
teknostom
cd1df40d0d Fix fire overflow (#945)
* Add Fire

* fixes

* fix dropping blocks

* fix logic

* Fix CI

* add support for waterlogged

* fmt

* fix comment

* remove particles and sound from fire breaking

* fmt

* fix overflow

* fix merge error
2025-06-27 20:43:48 +02:00
teknostom
2333d6b959 Add fire spreading (#931)
* Add Fire

* fixes

* fix dropping blocks

* fix logic

* Fix CI

* add support for waterlogged

* fmt

* fix comment

* remove particles and sound from fire breaking

* fmt
2025-06-27 16:08:05 +02:00
Alexander Medvedev
7395925a49 fix CI 2025-06-27 15:52:16 +02:00
とぴ。(おーけ
31bef9593b Add Gamerule (#929)
* make gamerules from assets at buildtime

* fix tests / add default functions

* add gamerule command
2025-06-27 15:28:12 +02:00
とぴ。(おーけ
fe5ab6876d Add Composter (#936)
* added composter

* separate into Extractor and pumpkin-data

* add game event
2025-06-27 14:18:51 +02:00
Alexander Medvedev
908a915b17 fix generated CI 2025-06-26 22:04:41 +02:00
Clicks
c39bc32c4b Fix Stripping Logs on some logs (#928) 2025-06-26 21:42:48 +02:00
Alexander Medvedev
a5b066d18f fix rust 1.88 lints 2025-06-26 20:47:15 +02:00
Arrow
be21e1381c Implement Game Mode Swapping (#922)
* feat: f3+f4 gamemode swapping

* fix: satisfy clippy

* fix: check permissions

* fix: move ChangeGameMode packet handling into its own function

* fix: imports

* fix: cargo fmt

---------

Co-authored-by: arrow <arrow.tsx@gmail.com>
2025-06-26 20:16:40 +02:00
Alexander Medvedev
03c71fc9f4 Less Allocations more Fun
this made things faster
2025-06-26 00:10:56 +02:00
Alexander Medvedev
bed8d5419d fix default_state 2025-06-25 22:05:57 +02:00
Dalt24
6d2803db4b Implement Flowerbedblock & leaf litter (#884)
* Issue #879: Implemented leaf-litter segmented placement logic

* addressed clippy lints: changed match to if/let for matching

* abstracted segmented logic to implement both leaf litter & flowerbedblock

* implemented state updates so segmented plants break when block broken
2025-06-25 21:58:58 +02:00
Alexander Medvedev
a31c9ec703 Implement Entity data Saving/Reading 2025-06-25 03:47:05 +02:00