? PermNodes
适用于 NeoForge 1.21.8+ 的模块化权限管理模组
作者:cptgummiball • 许可证:MIT
? 概述
PermNodes 是一款轻量级的服务端权限控制模组,支持 NeoForge 21.8.46+。
它可选集成 LuckPerms,允许对玩家行为进行细粒度控制,例如方块放置、破坏、合成、交互、PvP、动物、作物等。
? 适用于模组服务器、角色扮演场景或受控的社区环境。
⚙️ 功能特性
- ? LuckPerms 集成(可选 – 若未安装则优雅降级)
- ? 方块: 支持标签的细粒度放置/破坏权限
- ? 配方: 限制合成产物
- ? 物品:
use.* 权限用于物品使用
- ? 交互:
interact.* 用于箱子、门、按钮、拉杆、铁砧等
- ? 引燃:
ignite.* 用于 TNT 和火
- ? 传送门:
portal.* 用于维度访问
- ⚔️ PvP:
pvp.attack_players 及全局开关
- ? 动物: 繁殖、挤奶、剪毛、牵引、命名牌、攻击
- ? 村民: 交互(交易)、攻击
- ? 作物: 收获、踩踏、播种
- ? 流体: 拾取与放置控制
- ? 怪物: 限制攻击敌对生物
- ? 模组级绕过:
mod.allow.<modid>
? 安装指南
-
前置要求
- Minecraft 1.21.8+
- NeoForge 21.8.46+
- (可选)LuckPerms 模组
-
安装步骤
- 下载文件
permnodes-x.x.x.jar
- 将其放入服务器的
mods/ 目录中
-
运行验证
? 权限节点
| 类别 |
示例 |
| 方块 |
blocks.place.minecraft.dirt, blocks.break.tag.minecraft.logs |
| 物品 |
use.minecraft.bucket, use.* |
| 交互 |
interact.minecraft.chest, interact.* |
| 配方 |
recipes.craft.minecraft.torch, recipes.craft.* |
| 传送门 |
portal.minecraft.the_nether |
| PvP |
pvp.attack_players |
| 动物 |
animals.breed, animals.milk |
| 作物 |
crops.harvest, crops.trample |
| 流体 |
fluids.place, fluids.pickup |
| 怪物 |
monsters.attack.minecraft.creeper |
| 模组(全局) |
mod.allow.minecraft, mod.allow.create |
权限参考
? LuckPerms 会自动处理通配符。
? 在没有 LuckPerms 的情况下,.allow_default 节点将作为后备方案。
⚙️ LuckPerms 集成说明
LuckPerms 目前无法显示或自动发现来自 NeoForge 模组的权限。
PermNodes 中的所有权限检查均使用基于字符串的节点(例如 blocks.place.minecraft.dirt、use.minecraft.bucket)。
这些节点与 LuckPerms 完全兼容——可以正常分配、继承和检查——但它们只会在使用后出现在 LuckPerms Web 编辑器中(例如,一旦在游戏中触发了权限检查,或手动将其添加到某个组中)。
如果您希望所有可用的 PermNodes 权限预定义列表显示在 LuckPerms 中,您可以创建一个包含所需节点的 模板组。
此功能可能在未来的更新中实现自动化。
❤️ 致谢
- cptgummiball – 开发、设计与文档编写
- Lucko & Contributors – LuckPerms API
- NeoForge Team – 模组开发框架
? PermNodes
A modular permission management mod for NeoForge 1.21.8+
Author: cptgummiball • License: MIT
? Overview
PermNodes is a lightweight, server-side permission control mod for NeoForge 21.8.46+.
It integrates with LuckPerms (optional) to allow granular control over player actions such as block placement, breaking, crafting, interactions, PvP, animals, crops, and more.
? Ideal for modded servers, roleplay setups, or controlled community environments.
⚙️ Features
- ? LuckPerms Integration (optional – graceful fallback if not present)
- ? Blocks: fine-grained place / break permissions with tag support
- ? Recipes: restrict crafting outputs
- ? Items:
use.* permissions for item usage
- ? Interactions:
interact.* for chests, doors, buttons, levers, anvils, etc.
- ? Ignition:
ignite.* for TNT and fire
- ? Portals:
portal.* for dimension access
- ⚔️ PvP:
pvp.attack_players and global toggles
- ? Animals: breed, milk, shear, lead, name_tag, attack
- ? Villagers: ineract (trade), attack
- ? Crops: harvest, trample, seed
- ? Fluids: pickup and place control
- ? Monsters: restrict attacking hostile mobs
- ? Mod-wide bypass:
mod.allow.<modid>
? Installation
-
Requirements
- Minecraft 1.21.8+
- NeoForge 21.8.46+
- (optional) LuckPerms mod
-
Install
- Download the file
permnodes-x.x.x.jar
- Place it in your server’s
mods/ directory
-
Run
? Permission Nodes
| Category |
Examples |
| Blocks |
blocks.place.minecraft.dirt, blocks.break.tag.minecraft.logs |
| Items |
use.minecraft.bucket, use.* |
| Interactions |
interact.minecraft.chest, interact.* |
| Recipes |
recipes.craft.minecraft.torch, recipes.craft.* |
| Portals |
portal.minecraft.the_nether |
| PvP |
pvp.attack_players |
| Animals |
animals.breed, animals.milk |
| Crops |
crops.harvest, crops.trample |
| Fluids |
fluids.place, fluids.pickup |
| Monsters |
monsters.attack.minecraft.creeper |
| Mods (global) |
mod.allow.minecraft, mod.allow.create |
Permission reference
? LuckPerms handles wildcards automatically.
? Without LuckPerms, .allow_default nodes act as fallbacks.
⚙️ LuckPerms Integration Notice
LuckPerms does not currently display or auto-discover permissions from NeoForge mods.
All permission checks in PermNodes use plain string-based nodes (e.g., blocks.place.minecraft.dirt, use.minecraft.bucket).
These nodes are fully compatible with LuckPerms — they can be assigned, inherited, and checked normally — but they will only appear in the LuckPerms web editor after they have been explicitly created or used (for example, once a permission is checked in-game or manually added to a group).
If you want a predefined list of all available PermNodes permissions to appear in LuckPerms, you can create a template group containing the desired nodes.
This feature may be automated in a future update.
❤️ Credits
- cptgummiball – Development, design & documentation
- Lucko & Contributors – LuckPerms API
- NeoForge Team – Modding framework
评论 0
登录后参与评分
还没有评论,来抢沙发吧