Commit Graph

1434 Commits

Author SHA1 Message Date
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
spr-equinox
fb3d6ba0d1 fix door sound (#926) 2025-06-24 11:35:11 +02:00
Omar Afet
f92f9f2ad7 Add /tick command (#932)
* Tick Command Implementation

* Send the current ticking state to the new player so they are in sync.

* extend `/tick query` command with performance tracking

* feat: enhance tick sprint reporting and message formatting

* Add suggestion hints for tick command arguments

* fix: update tick command permission level

* fix: resolve clippy pedantic warnings and refactor tick command

- Refactor oversized execute function in tick command into smaller helper methods:
  - handle_query() for query command logic
  - handle_non_sprinting_status() for status display
  - send_percentiles() for percentile calculations
  - handle_step_command() and handle_sprint_command() for respective operations
- Fix format string warnings by using inline format arguments ({tickrate:.1})
- Replace lossless casts (ticks as i64) with From::from() for type safety
- Use Self instead of explicit type name in tick_worlds method signature
- Add Default trait implementation for Ticker struct
- Ensure all match arms return proper Result types

Resolves all clippy::pedantic warnings including too_many_lines, uninlined_format_args, cast_lossless, and use_self violations.

* fix: replace hardcoded tick rate with configurable value from BASIC_CONFIG

* revert back the old comment
2025-06-24 11:30:26 +02:00
Maurice
eae230941b Update nix flake (#933)
rustc: 1.85.0 -> 1.87.0
2025-06-24 08:17:27 +02:00
Alexander Medvedev
8755908761 Add Anvil data Abstraction
this will help adding entity saving
2025-06-23 22:46:25 +02:00
Alexander Medvedev
0df97ad3aa Fix CI 2025-06-23 17:03:16 +02:00