HomeJavaModsNO Mining
NO Mining
ModsJava

NO Mining

by NimShade · on Modrinth

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

⬇ Download on Modrinth

NoMining - 禁止挖掘模组

📖 简介

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

✨ 功能特性

🎮 使用方法

游戏规则

命令 说明
/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

🎮 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.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more