Craftorithm Wiki
  • Craftorithm
  • 开始
    • 安装
    • 默认配置
    • 命令和权限
    • 本地化
    • 升级Craftorithm版本
  • 物品系统
    • 配置构成
    • 物品的保存与使用
    • 自定义燃料
  • 配方编写
    • 配置构成
    • 有序配方
    • 无序配方
    • 烧炼配方
    • 锻造配方
    • 切石机配方
    • 随机烧炼配方
    • 酿造配方
    • 铁砧配方
    • 在配方中使用物品Tag
    • 在配方中使用其他插件的物品
    • 配方分类
    • 通过GUI创建配方
  • 动作系统
    • 基础
      • 在配方中使用
    • 语句
      • Perm
      • Level
      • Money
      • Points
      • Papi
      • If
      • All
      • Any
      • Take-Level
      • Take-Money
      • Take-Points
      • Command
      • Console
      • Return
    • 进阶
      • 函数
  • 开发者相关
    • 物品提供源
    • 注册配方
由 GitBook 提供支持
在本页
  • 配置文件
  • 合成配方
  • 物品
  1. 开始

默认配置

Craftorithm生成的默认配置文件

配置文件

#是否开启版本更新检查
check_update: true
#是否移除所有的原版配方
remove_all_vanilla_recipe: false
#含有此Lore的物品不能参与合成,可以使用正则表达式
lore_cannot_craft: '.*不可用于合成.*'
#是否将全部由插件定义的原版配方都为玩家在配方书中解锁,默认为true
#也可以在每个配方的配置文件里定义是否解锁,配方配置文件中的优先级高于此处的优先级
all_recipe_unlocked: false
#是否启用插件铁砧配方
enable_anvil_recipe: true
prefix: '&8[&3Craftorithm&8]'
unsupported_version: '<prefix> 不支持的版本'
new_version: '<prefix> &a检测到有新版本<new_version>, 请及时更新到新版本'

#使用命令的一些反馈消息
command:
  no_perm: '<prefix> &c你没有使用此命令的权限'
  player_only: '<prefix> &c只有玩家才能执行此命令'
  not_enough_param: '<prefix> &c命令缺少参数,缺少<number>个参数'
  undefined_subcmd: '<prefix> &c未定义的子命令'
  item:
    save:
      success: '<prefix> &a物品保存成功'
      failed_save_air: '<prefix> &c物品保存失败,原因:不能保存不存在的物品'
    give:
      success: '<prefix> &a物品获取成功'
      not_exist_item: '<prefix> &c不存在物品 <item_name>'
      player_offline: '<prefix> &c该玩家不在线或不存在'
  reload:
    success: '<prefix> &a插件重载成功'
    exception: '<prefix> &c插件重载过程中发生错误,请查看控制台'
  remove:
    success: '<prefix> &a配方删除成功'
    not_exist: '<prefix> &c配方不存在'
  disable:
    success: '<prefix> &c禁用配方成功'
    not_exist: '<prefix> &c配方不存在或已经被禁用'
    failed: '<prefix> &c配方禁用失败,可能已被禁用或不存在'
  version: '<prefix> &a插件版本:<version>'
  create:
    unsupported_recipe_type: '<prefix> &c不支持的配方类型'
    unsupported_recipe_name: '<prefix> &c不支持的配方名字,只能使用[a-z0-9/._-]+允许的内容'
    name_used: '<prefix> &c配方ID已经被使用'
    null_result: '<prefix> &c配方结果不允许为空!'
    null_source: '<prefix> &c配方原料不允许为空!'
    success: '<prefix> &a<recipe_type>类型配方<recipe_name>创建成功'
  run_arcenciel:
    success: '<prefix> &a运行成功,耗时<time>ms'
  list:
    unsupported_version: '<prefix> &c此功能只在1.16及以上版本可用'

menu:
  recipe_list:
    title: '&3&l配方列表'
    icon:
      frame: '&3&l配方列表'
      previous: '&a上一页'
      next: '&a下一页'
  new_recipe_list:
    title: '&3&lCraftorithm新增配方列表'
    icon:
      frame: '&3&l新增配方列表'
      previous: '&a上一页'
      next: '&a下一页'
  recipe_display:
    title:
      shaped: 有序配方
      shapeless: 无序配方
      furnace: 熔炉配方
      blasting: 高炉配方
      smoking: 烟熏炉配方
      campfire: 营火配方
      smithing: 锻造配方
      stone_cutting: 切石配方
      potion: 酿造配方
      anvil: 铁砧配方
  recipe_creator:
    title: '&3创建<recipe_type>配方: <recipe_name>'
    icon:
      frame: '&a创建配方'
      result_frame: '&a配方结果'
      confirm: '&3&l确认创建'
      cooking_frame: '&a烧炼原料'
      smithing_frame: '&a锻造物品'
      potion_frame: '&a酿造原料'
      anvil_frame: '&a打造原料'
      anvil_copy_nbt_toggle: '&a是否保留物品NBT'
      furnace_toggle: '&a熔炉配方'
      blasting_toggle: '&a高炉配方'
      smoking_toggle: '&a烟熏炉配方'
      campfire_toggle: '&a营火配方'


#Arcenciel脚本的提示消息
arcenciel:
  not_enough_param: '<prefix> &c语句"<statement>"不完整'
  unknown_token: '<prefix> &c未定义的关键词或函数<token>'

#插件加载的反馈信息
load:
  finish: '<prefix> &a插件加载完毕'
  recipe_load_exception: '<prefix> &c加载配方<recipe_name>时出现错误'
  item_load_exception: '<prefix> &c加载物品<item_name>时出现错误'
  hook_plugin:
    success: '<prefix> &a发现<plugin>,已挂钩'
    not_exist: '<prefix> &c未发现<plugin>'
example:
  - if any test2 || all test && test2 || true
  - |-
    command me hello
    command me nice to meet you
    return true
  - command me hello2
  - return run test2
  - command me hello3
test:
  - return false
test2:
  - return true

合成配方

example_shaped.yml

#配方的类型
type: 'shaped'
#配方的结果,使用items:<file_name>:<item_name>格式可以调用插件保存的物品
result: 'items:example_item:example_item'
#是否多种合成方式
multiple: true
#配方的形状
shape:
  - - 'aaa'
    - 'bbb'
    - 'ccc'
  - - 'dd'
    - 'ee'
#物品的映射表
source:
  a: 'bedrock'
  b: 'command_block'
  c: 'items:example_item:example_item'
  d: 'diamond'
  e: 'iron_ingot'
#是否在配方书中为玩家解锁此配方,默认为config.yml中的all_recipe_unlocked配置项
unlock: true

#可选的配置项:
#配方合成的条件配置
condition: 'if all perm craftorithm.perm.example && level >= 100 && papi %player_name% == Anisufia'
#配方合成之后执行的动作
actions:
  - 'example'

example_shapeless.yml

type: 'shapeless'
result: 'bedrock'
multiple: true
source:
  - - 'bedrock'
    - 'bedrock'
    - 'bedrock'
  - - 'command_block'
    - 'command_block'
    - 'command_block'

example_cooking.yml

type: cooking
result: bedrock
multiple: true
source:
  - block: furnace
    item: command_block
    exp: 20
    time: 100
  - block: smoker
    item: command_block
  - block: campfire
    item: command_block
  - block: blast
    item: command_block
exp: 10
time: 200

example_random_cooking.yml

type: random_cooking
result:
  - 'iron_ingot 0.8'
  - 'diamond 0.05'
  - 'copper_ingot 0.15'
multiple: true
source:
  - block: furnace
    item: bedrock
  - block: smoking
    item: bedrock
  - block: blasting
    item: bedrock
exp: 10
time: 100

example_smithing.yml

type: smithing
result: bedrock
multiple: true
source:
  - base: 'command_block'
    addition: 'command_block'
  - base: 'bedrock'
    addition: 'bedrock'

example_stone_cutting.yml

type: stone_cutting
result:
  - bedrock
  - diamond
  - iron_ingot
multiple: true
source:
  - command_block
  - bedrock

物品

example_item:
  material: STONE_PICKAXE
  amount: 10
  nbt:
    Damage: 78
上一页安装下一页命令和权限

最后更新于11个月前