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
2025-06-22 23:28:59 +02:00
2025-07-02 10:45:32 +02:00
2025-02-20 18:42:20 +01:00
2025-06-29 00:33:44 +02:00
2025-06-29 00:33:44 +02:00
2025-06-26 20:47:15 +02:00
2025-06-29 00:33:44 +02:00
2025-06-27 16:08:05 +02:00
2025-03-29 13:25:37 +01:00
2025-05-10 12:46:42 +02:00
2025-06-08 11:59:48 +02:00
2025-07-02 10:45:32 +02:00
2025-07-02 10:45:32 +02:00
2024-08-02 12:33:51 +02:00
2025-05-10 12:46:42 +02:00
2025-02-06 18:08:56 +01:00
2025-06-24 08:17:27 +02:00
2025-05-10 12:46:42 +02:00
2025-01-01 13:05:17 +01:00
2025-07-02 10:45:32 +02:00
2024-12-04 11:37:41 +01:00
2025-05-10 12:46:42 +02:00

Pumpkin

CI Discord License: MIT Current version)

Pumpkin is a Minecraft server built entirely in Rust, offering a fast, efficient, and customizable experience. It prioritizes performance and player enjoyment while adhering to the core mechanics of the game.

chunk loading

Goals

  • Performance: Leveraging multi-threading for maximum speed and efficiency.
  • Compatibility: Supports the latest Java & Bedrock/Pocket Minecraft server version while adhering to Vanilla game mechanics.
  • Security: Prioritizes security by preventing known security exploits.
  • Flexibility: Highly configurable, with the ability to disable unnecessary features.
  • Extensibility: Provides a foundation for plugin development.

Important

Pumpkin is currently under heavy development

Features

  • Configuration (toml)
  • Server Status/Ping
  • Networking
    • Encryption
    • Packet Compression
  • Player Configuration
    • Registries (biome types, paintings, dimensions)
    • Server Brand
    • Server Links
    • Set Resource Pack
    • Cookies
  • World
    • World Joining
    • Player Tab-list
    • Scoreboard
    • World Loading
    • World Time
    • World Borders
    • World Saving
    • Lighting
    • Entity Spawning
    • Item drops (W.I.P)
    • Bossbar
    • TNT
    • Chunk Loading (Vanilla, Linear)
    • Chunk Generation
    • Chunk Saving (Vanilla, Linear)
    • Biomes
    • Redstone (W.I.P)
    • Liquid Physics
    • Vegetation
    • Structure Generation
  • Player
    • Skins
    • Client brand
    • Teleport
    • Movement
    • Animation
    • Inventory
    • Combat
    • Experience
    • Hunger
    • Off Hand
    • Advancements
    • Eating
  • Entities
    • Non-Living (Minecart, Eggs...) (W.I.P)
    • Entity Effects
    • Players
    • Mobs (W.I.P)
    • Animals (W.I.P)
    • Entity AI (W.I.P)
    • Boss
    • Villagers
    • Mobs Inventory
    • Entity Saving
  • Server
    • Plugins (W.I.P)
    • Query
    • RCON
    • Inventories
    • Particles
    • Chat
    • Commands (W.I.P)
    • Permissions
    • Translations
  • Proxy
    • Bungeecord
    • Velocity

Check out our Github Project to see current progress.

How to run

See our Quick Start guide to get Pumpkin running.

Contributions

Contributions are welcome! See CONTRIBUTING.md

Docs

Pumpkin's documentation can be found at https://pumpkinmc.org/

Communication

Consider joining our Discord server to stay up-to-date on events, updates, and connect with other members.

Funding

If you want to fund me and help the project, check out my GitHub sponsors.

Description
Languages
Rust 100%