Shard
Shard
A lightweight, fast Minecraft server implementation written in Crystal with MiniMessage support for beautiful MOTDs.
Features
- ✨ MiniMessage Support - Full support for MiniMessage format with gradients, colors, and decorations
- 🎨 Hex Color Support - Use any hex color in your MOTD
- ⚡ Fast & Lightweight - Built with Crystal for optimal performance
- 🔌 Server List Ping - Full status response and ping/pong implementation
- 📊 Latency Display - Shows connection latency in milliseconds
Installation
- Make sure you have Crystal installed
- Clone this repository
- Build the project:
crystal build src/shard.cr -o shard.exe
Usage
Basic Usage
Run the server:
./shard.exe
The server will start on 0.0.0.0:25565 by default.
Customizing MOTD
The MOTD uses MiniMessage format. You can customize it in src/motd_handler.cr:
# Simple gradient
MOTDHandler.set_motd("<gradient:#00B7FF:#0043FF>Shard Server</gradient>")
# Multiple colors and decorations
MOTDHandler.set_motd("<gray>Running a <gradient:#00B7FF:#0043FF><bold>Shard</bold></gradient> Server")
# Rainbow gradient
MOTDHandler.set_motd("<gradient:#ff0000:#ff7f00:#ffff00:#00ff00:#0000ff:#4b0082:#9400d3>Rainbow!</gradient>")
MiniMessage Format Reference
Colors:
- Named:
<red>,<blue>,<green>,<yellow>,<gold>, etc. - Hex:
<color:#RRGGBB>text</color>or<#RRGGBB>text</#RRGGBB> - Gradient:
<gradient:#color1:#color2>text</gradient>
Decorations:
<bold>or<b>- Bold text<italic>or<i>- Italic text<underlined>or<u>- Underlined text<strikethrough>or<st>- Strikethrough text<obfuscated>or<obf>- Obfuscated text
Special:
<reset>- Reset all formatting
See motd_examples.md for more examples.
For full MiniMessage documentation: https://docs.papermc.io/adventure/minimessage/format/
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/ShardiumMC/Shard/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- ezTxmMC - creator and maintainer
- SyntaxJason - creator and maintainer
Repository
Shard
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- about 8 hours ago
- November 26, 2025
License
MIT License
Links
Synced at
Wed, 26 Nov 2025 08:06:34 GMT
Languages