• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“Magic/Crafting”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“Magic can add custom crafting recipes for wands or magic items. The default recipes provided in the survival configs can be seen here: [http://magic.elmakers.com/#c…”)
 
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
Magic can add custom crafting recipes for wands or magic items.
+
Magic 可以添加自定义合成配方以合成法杖或魔法物品
  
The default recipes provided in the survival configs can be seen here: [http://magic.elmakers.com/#crafting Crafting Recipes]
+
默认的生存配方可以在这里找到: [http://magic.elmakers.com/#crafting Crafting Recipes]
  
The configs for these recipes can be seen here: [https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival/crafting Survival Crafting Configs]
+
配方的配置可以在这里找到: [https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival/crafting 生存配方配置]
  
== Knowledge Books ==
+
== 知识之书 ==
  
You can create knowledge books (1.13 and up) containing one or more crafting recipes.
+
你可以创建知识之书 (1.13+) ,它可以包含一或多个配方
  
<code>/mgive recipe:wand</code> will give a book containing the wand recipe.<br />
+
<code>/mgive recipe:wand</code> 可以给予一个包含法杖配方的书<br />
<code>/mgive recipe:*</code> will give a book containing all recipes.
+
<code>/mgive recipe:*</code> 则可以给予一个包含全部配方的书
  
When used by a player, the recipes will be added to their crafting book.
+
当玩家使用时,配方将会添加至他们的合成之书中。
  
== Modifying recipes ==
+
== 修改配方 ==
  
Modified recipes go in crafting.yml or in the crafting folder. First look at the recipe you want to change, then copy the part you want to change into your config files and modify it.
+
crafting.yml 中或在crafting文件夹中可修改配方。找准你要改的配方,然后复制一个副本到你的配置文件里再改
  
Recipes may require a complete server restart to take effect, though you may try <code>/magic load</code> first.
+
修改配方可能需要服务器完全重启才能有效, 虽然你也可以用 <code>/magic load</code> 先试试看能不能用
  
== Custom Recipes ==
+
== 自定义配方 ==
  
As always, looking at one of the default configs is the best way to learn how to make your own.
+
照旧,翻翻默认配置可以帮助你学习怎么自建配方
  
Take the default wand recipe, for instance:
+
拿默认的法杖配方举例:
  
<pre class=""># This is a unique name for this recipe
+
<pre class=""># 这是配方独一无二的名称
  
 
wand:
 
wand:
  
   # This defines the recipe output, this can be wand,item,spell or brush
+
   # 此处说明了配方输出的结果,可以是法杖wand、物品item、法术spell或刷子
 
+
 
 
   output_type: wand
 
   output_type: wand
  
  
  
   # This defines the item that will be crafted, this will be a wand, item or spell key
+
   # 此处决定了被合成的物品是什么,可以是法杖wand、物品item或法术关键词spell key
  
   # depending on the output type
+
   # 依赖于上面output_type配置
  
 
   output: wand  
 
   output: wand  
第44行: 第44行:
  
  
   # This defines the materials that will be required to craft this wand
+
   # 此处说明了需要的材料是什么,o意味着下界之星,i意味着烈焰棒
  
 
   materials:
 
   materials:
第54行: 第54行:
  
  
   # This defines the shape of the recipe, row_1 is the top. Each row may
+
   # 此处描绘了配方的形状, row_1即为第一行
 
 
  # have up to 3 characters that map to the materials listed above.
 
  
 +
  # 每一行最多写三个字符,而且只能是materials:里的
 +
 
   row_1: o
 
   row_1: o
  

2021年5月31日 (一) 23:57的最新版本

Magic 可以添加自定义合成配方以合成法杖或魔法物品

默认的生存配方可以在这里找到: Crafting Recipes

配方的配置可以在这里找到: 生存配方配置

知识之书

你可以创建知识之书 (1.13+) ,它可以包含一或多个配方

/mgive recipe:wand 可以给予一个包含法杖配方的书
/mgive recipe:* 则可以给予一个包含全部配方的书

当玩家使用时,配方将会添加至他们的合成之书中。

修改配方

在 crafting.yml 中或在crafting文件夹中可修改配方。找准你要改的配方,然后复制一个副本到你的配置文件里再改

修改配方可能需要服务器完全重启才能有效, 虽然你也可以用 /magic load 先试试看能不能用

自定义配方

照旧,翻翻默认配置可以帮助你学习怎么自建配方

拿默认的法杖配方举例:

# 这是配方独一无二的名称

wand:

  # 此处说明了配方输出的结果,可以是法杖wand、物品item、法术spell或刷子
  
  output_type: wand



  # 此处决定了被合成的物品是什么,可以是法杖wand、物品item或法术关键词spell key

  # 依赖于上面output_type配置

  output: wand 



  # 此处说明了需要的材料是什么,o意味着下界之星,i意味着烈焰棒

  materials:

    o: nether_star

    i: blaze_rod



  # 此处描绘了配方的形状, row_1即为第一行 

  # 每一行最多写三个字符,而且只能是materials:里的
 
  row_1: o

  row_2: i

  row_3: