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

Magic/Crafting

来自Minecraft插件百科
炫宙菌留言 | 贡献2021年5月29日 (六) 08:20的版本 (创建页面,内容为“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…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

Magic can add custom crafting recipes for wands or magic items.

The default recipes provided in the survival configs can be seen here: Crafting Recipes

The configs for these recipes can be seen here: Survival Crafting Configs

Knowledge Books

You can create knowledge books (1.13 and up) containing one or more crafting recipes.

/mgive recipe:wand will give a book containing the wand recipe.
/mgive recipe:* will give a book containing all recipes.

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.

Recipes may require a complete server restart to take effect, though you may try /magic load first.

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:

# This is a unique name for this recipe

wand:

  # This defines the recipe output, this can be wand,item,spell or brush

  output_type: wand



  # This defines the item that will be crafted, this will be a wand, item or spell key

  # depending on the output type

  output: wand 



  # This defines the materials that will be required to craft this wand

  materials:

    o: nether_star

    i: blaze_rod



  # This defines the shape of the recipe, row_1 is the top. Each row may

  # have up to 3 characters that map to the materials listed above.

  row_1: o

  row_2: i

  row_3: