SmeltTouch
自动熔炼挖掘到的方块,使物品以加工后的状态掉落,仿佛刚从熔炉中取出一般。
打破铁矿石即可获得铁锭,打破沙子即可获得玻璃。服务器熔炉配方支持的所有内容均可生效,包括由数据包或其他插件添加的配方。
配置
SmeltTouch 会在首次启动时向 plugins/SmeltTouch/(Paper)或 config/smelttouch/(Fabric、NeoForge)写入三个文件:config.json、enchantment.json 和 messages.json。每次加载时,缺失的选项将使用默认值填充;若文件损坏,则会被重命名为 <name>.json.broken,而不会导致服务器停止运行。
有关这三个文件中每个字段的用途、过滤器使用的 ID 列表语法以及示例配置,请参阅 CONFIGURATION.md。
命令
/smelttouch
| 子命令 |
描述 |
权限 |
status [player] |
显示效果是否激活 |
smelttouch.admin(针对其他玩家) |
toggle [player] |
为自己开关效果 |
smelttouch.admin(针对其他玩家) |
on / off [player] |
显式设置状态 |
smelttouch.admin(针对其他玩家) |
reload |
重新读取配置与配方索引 |
smelttouch.admin |
权限
| 节点 |
默认值 |
含义 |
smelttouch.use |
everyone |
启用效果所必需(可通过 general.permission 配置) |
smelttouch.admin |
operators |
执行重载操作,以及切换其他玩家的效果 |
在 Paper 上,该节点声明为 default: true,因此开箱即用,且可通过任何权限插件撤销。Fabric 和 NeoForge 使用原版权限原子(smelttouch:use);由于原版没有“默认授予”的概念,未授予的节点仅在开启 general.strictPermissions 时才拒绝访问。
SmeltTouch
Mined blocks are smelted automatically, so the items can be picked up in their processed state, as
if they had come fresh out of a furnace.
Break an iron ore and you get an iron ingot. Break sand and you get glass. Everything the server's
furnace recipes know about works, including recipes added by datapacks or other plugins.
Configuration
SmeltTouch writes three files - config.json, enchantment.json and messages.json - to
plugins/SmeltTouch/ (Paper) or config/smelttouch/ (Fabric, NeoForge) on first start. Missing
options are filled in with their defaults on every load, and a broken file is moved to
<name>.json.broken instead of stopping the server.
See CONFIGURATION.md for what every field in the three files does, the id list
syntax used by filters, and example configs.
Command
/smelttouch
| Sub command |
Description |
Permission |
status [player] |
show whether the effect is active |
smelttouch.admin for other players |
toggle [player] |
switch the effect on/off for yourself |
smelttouch.admin for other players |
on / off [player] |
set the state explicitly |
smelttouch.admin for other players |
reload |
re-read the config and the recipe index |
smelttouch.admin |
Permissions
| Node |
Default |
Meaning |
smelttouch.use |
everyone |
required for the effect (configurable through general.permission) |
smelttouch.admin |
operators |
reload, and toggling other players |
On Paper the node is declared with default: true, so it works out of the box and can be revoked
through any permission plugin. Fabric and NeoForge use the vanilla permission atoms
(smelttouch:use); because vanilla has no "granted by default" concept, an ungranted node only
denies when general.strictPermissions is turned on.
评论 0
登录后参与评分
还没有评论,来抢沙发吧