Custom Workstations

插件

· 作者 Yassou

使用自定义配方、可配置的物品栏和资源包界面,创建自定义机器、工作台、工具和工作站,可能性无穷无尽。

0 本站下载 0 关注 更新于 2 个月前

最新 1.2.1 · 26.2 · Folia / Paper

一键开服(送7天)

CustomWorkstations overview

custom workstations features

如何安装插件

前置要求

  • Java 21
  • Paper 1.21.4 或更新的兼容 Paper 版本
  • Folia 1.21.4 或更新的兼容 Folia 版本
  • 如果你使用自定义物品、方块、家具、模型或字形,则需要一个受支持的资源包提供者

不支持 Spigot。Purpur 可能可用,但它不在认证的测试矩阵中。

受支持的提供者包括 ItemsAdder、Nexo、Oraxen、CraftEngine 和 ModelEngine。ModelEngine 用于实体触发器,并不通过 pack-provider 进行选择。

custom workstations plugins

安装步骤

  1. 停止服务器。
  2. 将 CustomWorkstations-<version>.jar 放入服务器的 plugins/ 文件夹中。
  3. 如果尚未安装,请安装你的服务器所使用的资源包提供者。
  4. 启动服务器一次,然后再次停止。
  5. 打开 plugins/CustomWorkstations/provider-packs/。
  6. 将与你的提供者匹配的文件夹复制到该提供者的文件夹中。
  7. 启动服务器并重新加载或重建提供者的资源包。
  8. 对于使用单个提供者的常规设置,请保持 pack-provider: auto。
  9. 运行 /cw reload。
  10. 获取包含的工作站:
/cw give YourPlayer wood_workbench
  1. 放置工作站并右键点击它以测试安装。

请勿使用 Bukkit 的 /reload。更改提供者插件后请重启服务器。对于 CustomWorkstations 配置更改,请使用 /cw reload。

有关特定提供者的资源包安装,请参阅完整安装指南。

配置预览

# 当捆绑的配置格式更改时递增。
config-version: 2

installation:
  # 内部安装状态。请勿更改此项。
  default-content-installed: true
  provider-pack-version: '1'

# 未带前缀的自定义内容 ID 使用的资源包提供者。
# 仅当启用零个或一个受支持的资源包提供者时才接受 Auto。
# ModelEngine 仅用于触发器,在此处不予考虑。
pack-provider: auto

# 当为 true 时,任何无效机器或配方文件都会拒绝启动或重载。
# 失败的重载后,上一个有效的定义集仍将处于活动状态。
fail-on-invalid-definition: true

# 将提供者生命周期和定义刷新详细信息写入服务器日志。
debug: false

# 从 plugins/CustomWorkstations/lang/<language>.yml 加载的语言文件。
language: en_US

menu:
  # 防止同一玩家、工作站和确切锚点重复打开。
  # 这会过滤重复的主手/副手提供者事件。
  open-cooldown-millis: 250

  # 制作时距离方块、家具或实体锚点的最大距离。
  # 便携式物品触发器由其原始快捷栏槽位保护。
  max-use-distance: 8.0

  tag-preview:
    # 目录物品标签预览中两个材质图标之间的时间间隔。
    # Minecraft 每秒运行 20 刻:30 刻 = 1.5 秒。
    # 为了保护服务器/客户端流量,接受的最小值为 10 刻。
    interval-ticks: 30

命令

主命令是 /workstation。/cw、/workstations 和 /customworkstation 是别名。

命令 玩家 控制台 权限
/cw wiki 是 是 customworkstations.admin
/cw help 是 是 customworkstations.admin
/cw reload 是 是 customworkstations.command.reload
/cw inspect 是 否 customworkstations.command.inspect
/cw give <player> <machine> [silent] 是 是 customworkstations.command.give
/cw open <machine> 是 否 customworkstations.command.open
/cw open <player> <machine> 是 是 customworkstations.command.open
/cw items category create <category> 是 是 customworkstations.command.items
/cw items category delete <category> 是 否 customworkstations.command.items
/cw items import <id> <category> 是 否 customworkstations.command.items
/cw items update <imported-id> 是 否 customworkstations.command.items
/cw items delete <imported-id> 是 是 customworkstations.command.items

权限

命令权限

权限 默认值 用途
customworkstations.admin 操作员 访问帮助、绕过内容限制并使用管理命令
customworkstations.command.reload 操作员 重载定义和语言文件
customworkstations.command.inspect 操作员 识别手持的提供者物品
customworkstations.command.give 操作员 给予工作站物品
customworkstations.command.open 操作员 直接打开工作站
customworkstations.command.items 操作员 管理导入的物品类别和快照

工作站与配方权限

每个加载的工作站都会获得:

customworkstations.machine.use.<machine-id>

配方的可见性和制作使用单独的权限:

customworkstations.recipe.view.<machine-id>.<recipe-id>.<output-id>
customworkstations.recipe.craft.<machine-id>.<recipe-id>.<output-id>

将 view 设置为 false 以隐藏结果。将 craft 设置为 false 以保持其可见但禁止制作。

搜索权限

每个可搜索的工作站视图都会获得:

customworkstations.search.use.<machine-id>.workstation
customworkstations.search.use.<machine-id>.catalog
customworkstations.search.use.<machine-id>.details

父级权限

权限 作用范围
customworkstations.machine.use 所有工作站
customworkstations.recipe.view 所有配方菜单项
customworkstations.recipe.craft 所有合成事务
customworkstations.search.use 所有搜索视图
customworkstations.* 所有 CustomWorkstations 权限

添加或移除工作站或配方后,请运行 /cw reload,以确保生成的权限与实际配置保持一致。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源