6.7 KiB
PlayerBlockLife
English Version
🎮 Introduction
PlayerBlockLife is a unique Minecraft plugin that adds a novel gameplay mechanic to servers. Each player has 5 life blocks buried underground, which use the player's skin as their texture. When other players dig up all these blocks, the player dies.
✨ Features
- 🎭 Uses player skins as block textures
- ⚡ Real-time skin loading without pre-generation
- 🔄 Asynchronous data processing for optimal performance
- 📊 Complete health system and status effects
- 🎯 Beautiful particle effects and sounds
- 🔧 Highly configurable game rules
- 🗺️ Multi-world and region protection support
- 💾 Multiple data storage options
- 👨💼 Comprehensive admin tools
🚀 Quick Start
Installation
- Download the plugin from the ./Releases folder
- Place the JAR file in your server's
pluginsfolder - Restart your server
Player Commands
# Set your life blocks
/setlifeblocks
# View block locations
/checklifeblocks
# Reset block positions
/setlifeblocks reset
Admin Commands
# Reload configuration
/pblreload
# Delete player blocks
/pbldelete <playername>
# Revive eliminated player
/pblrevive [playername]
# View plugin statistics
/pblstats
# Set blocks for other player
/setlifeblocks other <playername>
⚙️ Configuration
The plugin configuration is located at plugins/PlayerBlockLife/config.yml. Key sections include:
- blocks: Block-related settings
- game: Game rules and mechanics
- skin: Skin system configuration
- storage: Data storage options
- messages: Customizable messages
- effects: Visual and audio effects
- protection: Protection and security settings
🛠️ Building from Source
If you want to build the plugin yourself:
Prerequisites
- Java 17 or higher
- Gradle 8.7 or higher
- IntelliJ IDEA (recommended) or another Java IDE
Build Steps
- Clone or download the source code
- Open the project in IntelliJ IDEA
- Wait for Gradle to sync dependencies
- Run the
shadowJartask in the Gradle panel - The compiled JAR will be in
build/libs/
📦 Releases
Pre-compiled versions are available in the ./Releases folder. We recommend downloading from there for stable builds.
🎯 Gameplay
Basic Rules
- Each player starts with 5 life blocks
- Blocks are buried underground near the player's location
- Blocks use the player's skin as their texture
- Other players can dig up these blocks
- When all blocks are dug up, the player dies
- Players can move freely while their blocks remain
Strategies
- 🎮 Hide your blocks in hard-to-find locations
- 🔍 Search for other players' blocks
- ⚔️ Form alliances or engage in competition
- 🏃 Keep moving to avoid being tracked
- 🎯 Target the most threatening players first
🐛 Troubleshooting
Common Issues
-
Skins not loading
- Check network connectivity
- Ensure players have been online before
- Verify skin cache directory permissions
-
Blocks not placing
- Ensure there's enough space around
- Check world protection settings
- Review console error messages
-
Plugin not loading
- Verify Java version compatibility
- Check server version matches
- Ensure dependencies are complete
🤝 Contributing
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
中文版本
🎮 简介
PlayerBlockLife 是一个独特的Minecraft插件,为服务器增加了一种新颖的游戏玩法。每个玩家拥有5个生命方块,这些方块埋藏在地下,并使用玩家的皮肤作为材质。当其他玩家挖完这些方块时,该玩家就会死亡。
✨ 特色功能
- 🎭 使用玩家皮肤作为方块材质
- ⚡ 实时皮肤加载,无需预生成
- 🔄 异步数据处理,不影响服务器性能
- 📊 完整的生命值系统和状态效果
- 🎯 精美的粒子效果和音效
- 🔧 高度可配置的游戏规则
- 🗺️ 支持多世界和地区保护
- 💾 多种数据存储方式
- 👨💼 完善的管理员工具
🚀 快速开始
安装方法
- 从./Releases文件夹下载插件
- 将JAR文件放入服务器的
plugins文件夹 - 重启服务器
玩家命令
# 设置你的生命方块
/setlifeblocks
# 查看方块位置
/checklifeblocks
# 重置方块位置
/setlifeblocks reset
管理员命令
# 重载配置
/pblreload
# 删除玩家方块
/pbldelete <玩家名>
# 复活被淘汰的玩家
/pblrevive [玩家名]
# 查看插件统计
/pblstats
# 为其他玩家设置方块
/setlifeblocks other <玩家名>
⚙️ 配置说明
插件配置文件位于 plugins/PlayerBlockLife/config.yml。主要配置项包括:
- blocks: 方块相关设置
- game: 游戏规则和机制
- skin: 皮肤系统配置
- storage: 数据存储选项
- messages: 可自定义的消息
- effects: 视觉和音频效果
- protection: 保护和安全性设置
🛠️ 从源码构建
如果你想自己构建插件:
环境要求
- Java 17 或更高版本
- Gradle 8.7 或更高版本
- IntelliJ IDEA(推荐)或其他Java IDE
构建步骤
- 克隆或下载源代码
- 在IntelliJ IDEA中打开项目
- 等待Gradle同步依赖
- 在Gradle面板中运行
shadowJar任务 - 编译后的JAR文件位于
build/libs/
📦 发布版本
预编译的版本可以在 ./Releases 文件夹中找到。我们建议从这里下载以获得稳定版本。
🎯 游戏玩法
基本规则
- 每个玩家初始有5个生命方块
- 方块埋藏在玩家位置附近的地下
- 方块使用玩家的皮肤作为材质
- 其他玩家可以挖掘这些方块
- 当所有方块被挖光时,玩家死亡
- 玩家在方块未被挖完时可以自由移动
策略技巧
- 🎮 将方块隐藏在难以找到的地方
- 🔍 寻找其他玩家的方块
- ⚔️ 与其他玩家结盟或对抗
- 🏃 保持移动,避免被追踪
- 🎯 优先攻击威胁最大的玩家
🐛 故障排除
常见问题
-
皮肤无法加载
- 检查网络连接
- 确保玩家之前在线过
- 检查皮肤缓存目录权限
-
方块无法放置
- 确保周围有足够空间
- 检查世界保护设置
- 查看控制台错误信息
-
插件无法加载
- 确认Java版本兼容性
- 检查服务器版本匹配
- 确保依赖完整
🤝 贡献指南
我们欢迎贡献!请按以下步骤:
- Fork 代码仓库
- 创建功能分支
- 进行修改
- 提交拉取请求
📄 许可证
本项目采用 MIT 许可证。详见 LICENSE 文件。