Mod

NO Mining

Quick rating

NO Mining

No reviews yet

Players can dig blocks, but they are allowed to prevent blocks and entities from passing through. Suitable for PvP modpacks

Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

NoMining - 禁止挖掘模组

📖 简介

NoMining 是一个轻量级的 Minecraft Forge 模组,允许服务器管理员或地图制作者通过简单的游戏规则禁止玩家挖掘方块,同时保持放置物品的功能不受影响。

✨ 功能特性

  • 禁止挖掘 - 玩家无法破坏任何方块
  • 允许放置 - 放置物品完全正常
  • 游戏规则控制 - 通过 /gamerule 命令实时开关
  • 模式限制 - 只对生存模式玩家生效,创造/旁观模式不受影响
  • 无动画残留 - 不会留下方块破裂纹理
  • 不影响攻击 - 左键攻击生物完全正常
  • 轻量级 - 几乎零性能开销

🎮 使用方法

游戏规则

命令 说明
/gamerule disableMining 查看当前设置
/gamerule disableMining true 开启禁止挖掘(默认)
/gamerule disableMining false 关闭禁止挖掘

📝 工作原理

  1. 监听 BlockEvent.BreakEvent 事件,直接取消方块破坏
  2. 监听 PlayerEvent.BreakSpeed 事件,将挖掘速度设为0
  3. 客户端每帧重置挖掘进度,清除破裂纹理
  4. 通过游戏规则控制功能开关

NoMining - Mining Disabling Mod

📖 Introduction

NoMining is a lightweight Minecraft Forge mod that enables server administrators or map creators to prohibit players from mining blocks through simple game rules, while maintaining the functionality of placing items unaffected. ✨ Functional Features

  • Prohibition of Digging - Players are unable to destroy any blocks
  • Allowing Placement - Placing items works normally
  • Game Rule Control - Switches on and off in real time via the /gamerule command
  • Mode Restrictions - Only applies to players in survival mode; creation/view mode are unaffected
  • No Animation Residuals - No block break textures will remain
  • No Impact on Attacks - Left-click attacks on creatures are normal
  • Lightweight - Almost no performance overhead

🎮 Usage Instructions

Game Rules

Command Explanation
/gamerule disableMining View current settings
/gamerule disableMining true Enable mining prohibition (default)
/gamerule disableMining false Disable mining prohibition

📝 Working Principle

  1. Listen to the BlockEvent.BreakEvent event and directly cancel the block destruction.
  2. Listen to the PlayerEvent.BreakSpeed event and set the digging speed to 0.
  3. Reset the digging progress on each frame of the client and clear the breaking texture.
  4. Control the function switch through the game rules.

Screenshots

Gallery

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~5,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync