Orewell
一款 Minecraft 服务器插件,用于追踪玩家开采的自然生成方块数量,
不包括玩家放置的方块。支持使用方块 ID 和标签!
我制作这款插件是为了追踪玩家找到的钻石数量,
同时防止因同时使用精准采集和时运镐而导致分数膨胀。
由 Vilgot 制作 dev.vilgot@gmail.com
源代码:
功能
- 仅统计非玩家放置的方块
- 使用 Minecraft 标签追踪方块类别(例如普通钻石矿石和深板岩钻石矿石)。完整列表见此处。
- 使用 Minecraft 内置计分板系统
- 易于配置的 YAML 文件
要求
- Minecraft 服务器:Paper 服务器(已测试)或兼容服务器
- Java 版本:Java 21 或更高版本
- Minecraft 版本:1.21+(已在 1.21.7 上测试)
安装
- 下载最新版本(GitHub、Hangar、Modrinth)或从源码构建
- 将 Orewell.jar 文件复制到服务器的 plugins/ 目录中
- 启动服务器
- 配置插件(见下方的 Configuration 部分)
- 重启服务器以应用配置更改
配置
插件在首次运行时会在 plugins/Orewell/ 目录下创建一个 config.yml 文件。
默认配置
# 按材质名称单独追踪的方块
tracked-blocks:
- NETHER_QUARTZ_ORE
- ANCIENT_DEBRIS
# 要跟踪的标签(会跟踪该标签中的所有方块)
tracked-tags:
- diamond_ores
- gold_ores
- iron_ores
- coal_ores
- copper_ores
- emerald_ores
- lapis_ores
- redstone_ores
配置选项
大小写不敏感。
tracked-blocks
要追踪的单个方块类型列表。请使用 Bukkit/Spigot 中 Material 枚举的确切名称。完整列表在此
示例:
- DIAMOND_ORE
- DEEPSLATE_DIAMOND_ORE
- ANCIENT_DEBRIS
- BIRCH_PRESSURE_PLATE
tracked-tags
要追踪的 Minecraft 标签列表。这允许你追踪整个方块的类别。列表在此
目前,包含斜杠 "/" 的标签(例如 "mineable/axe")无法正常工作。
常见矿石标签:
diamond_ores - 所有钻石矿石变体(深板岩和普通)
gold_ores - 所有金矿石变体
iron_ores - 所有铁矿石变体
coal_ores - 所有煤炭矿石变体
copper_ores - 所有铜矿石变体
emerald_ores - 所有绿宝石矿石变体
lapis_ores - 所有青金石矿石变体
redstone_ores - 所有红石矿石变体
其他示例:
logs - 所有类型的原木
enderman_holdable
自定义标签:
你也可以(理论上可行,未经测试)使用来自数据包的自定义标签:
mypack:custom_ores - 来自数据包中的自定义矿石标签
用法
服务器管理
管理员可以使用标准的 Minecraft 记分板命令查看和修改玩家统计数据:
示例:
查看玩家的钻石矿石数量
/scoreboard players get PlayerName tag_diamond_ores
设置玩家的钻石矿石数量
/scoreboard players set PlayerName tag_diamond_ores 50
在每个人名字下方显示分数
/scoreboard objectives setdisplay below_name tag_diamond_ores
查看所有目标
/scoreboard objectives list
许可证
Orewell 根据 GNU 通用公共许可证第 3 版(或您选择的任何后续版本)条款提供。有关完整许可证文本,请参阅 LICENSE.md 和 LICENSE.LESSER.md。
Orewell
A Minecraft server plugin that tracks how many naturally generated blocks players have mined,
excluding player placed blocks. Works with block IDs and tags!
I made this plugin to track how many diamonds a player has found
while preventing inflation of score from using both silk touch and fortune pickaxes.
Made by Vilgot dev.vilgot@gmail.com
Source:
Features
- Only counts blocks not placed by players
- Track categories of blocks using Minecraft tags (for example both regular and deepslate diamond ore). Full list here.
- Uses Minecraft´s built in scoreboard system
- Easy YAML configuration
Requirements
- Minecraft Server: Paper server (tested) or compatible
- Java Version: Java 21 or higher
- Minecraft Version: 1.21+ (tested on 1.21.7)
Installation
- Download the latest release (GitHub, Hangar, Modrinth) or build from source
- Copy the Orewell.jar file to your server's plugins/ directory
- Start your server
- Configure the plugin (see Configuration section below)
- Restart your server to apply configuration changes
Configuration
The plugin creates a config.yml file in plugins/Orewell/ on first run.
Default Configuration
# Blocks to track individually by material name
tracked-blocks:
- NETHER_QUARTZ_ORE
- ANCIENT_DEBRIS
# Tags to track (tracks all blocks in the tag)
tracked-tags:
- diamond_ores
- gold_ores
- iron_ores
- coal_ores
- copper_ores
- emerald_ores
- lapis_ores
- redstone_ores
Configuration Options
Capitalization does not matter.
tracked-blocks
List of individual block types to track. Use the exact Material enum names from Bukkit/Spigot. Full list here.
Examples:
- DIAMOND_ORE
- DEEPSLATE_DIAMOND_ORE
- ANCIENT_DEBRIS
- BIRCH_PRESSURE_PLATE
tracked-tags
List of Minecraft tags to track. This allows you to track entire categories of blocks. List here.
Currently, tags containing slashes "/" (e.g "mineable/axe") do not work.
Common ore tags:
diamond_ores - All diamond ore variants (deepslate and regular)
gold_ores - All gold ore variants
iron_ores - All iron ore variants
coal_ores - All coal ore variants
copper_ores - All copper ore variants
emerald_ores - All emerald ore variants
lapis_ores - All lapis lazuli ore variants
redstone_ores - All redstone ore variants
Other examples:
logs - All kinds of logs
enderman_holdable
Custom tags:
You can also(in theory, not tested) use custom tags from datapacks:
mypack:custom_ores - Custom ore tag from datapack
Usage
Server Administration
Administrators can view and modify player statistics using standard Minecraft scoreboard commands:
Examples:
View a player's diamond ore count
/scoreboard players get PlayerName tag_diamond_ores
Set a player's diamond ore count
/scoreboard players set PlayerName tag_diamond_ores 50
Display score for everyone below their name
/scoreboard objectives setdisplay below_name tag_diamond_ores
View all objectives
/scoreboard objectives list
License
Orewell is provided under the terms of the GNU Lesser General Public License Version 3 or
(at your option) any later version. See LICENSE.md and LICENSE.LESSER.md for the full license text.
评论 0
登录后参与评分
还没有评论,来抢沙发吧