跳到正文

OreDetector

作者:HelluPeptic

A server-side Minecraft Fabric mod that detects and logs ore mining activities with permission support

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

OreDetector – Minecraft Fabric Mod

A server-side Minecraft Fabric mod for Minecraft 1.21.1 that detects and logs ore mining activities with permission support.

Features

⛏️ Vein Detection

  • Groups connected ore blocks into veins
  • Sends single notification per vein (not per block)
  • Prevents spam when mining large ore deposits

🔐 Permission System

  • Integrates with LuckPerms (optional)
  • Two permission nodes:
  • oredetector.detectionmessages – Receive real-time mining notifications
  • oredetector.orelog – Access to ore log command
  • Falls back to operator permissions if LuckPerms unavailable

📊 Real-time Notifications

  • Instant notifications when players discover ore veins
  • Shows player name, ore count, ore type, and coordinates
  • Messages include dimension information

📋 Ore Logging & History

  • Persistent logging of all mining activities
  • Command: /orelog [hours] (default: 24 hours)
  • Searchable history with timestamps
  • Memory-efficient with automatic cleanup

Commands

/orelog [hours]

View ore mining history for the specified time period.

Examples:

  • /orelog – Show last 24 hours
  • /orelog 6 – Show last 6 hours
  • /orelog 168 – Show last week (max)

Output includes:

  • Timestamp of mining event
  • Player name
  • Number of ores in vein
  • Ore type
  • Exact coordinates
  • Dimension

Permissions

| Permission | Description | Default |
|————|————-|———|
| oredetector.detectionmessages | Receive real-time ore mining notifications | Operators |
| oredetector.orelog | Access to /orelog command | Operators |

Installation

  1. Download the latest release
  2. Place the .jar file in your server’s mods folder
  3. Install Fabric Loader if not already installed
  4. (Optional) Install LuckPerms for advanced permission management
  5. Restart your server

Configuration

Currently, the mod works out-of-the-box with no configuration required.

Technical Details

  • Mod Loader: Fabric
  • Dependencies: Fabric API
  • Optional Dependencies: LuckPerms
  • Server-side only: Yes

Example Usage

When a player mines a diamond vein:

[OreDetector] HelluPeptic mined 8 diamond ore in Overworld at 123, -45, 678

Using the log command:

/orelog 2
=== Ore Log - Last 2 Hours ====
Found 3 mining events:
[Jan 03 14:32:15] HelluPeptic mined 8x diamond at 123, -45, 678 (Overworld)
[Jan 03 13:45:22] HelluPeptic mined 12x iron at 234, 56, 789 (Overworld)  
[Jan 03 13:12:08] GoodbyePeptic mined 4x gold at -45, 32, -123 (Nether)

常见问题

OreDetector 支持哪些 Minecraft 版本?

OreDetector 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

OreDetector 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

HelluPeptic 的其他作品

查看全部 →