Actions

Crafting

From Crea Wiki

Revision as of 20:12, 1 October 2014 by Overlord (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
English • ‎français

In Crea the majority of items are obtained through crafting them. Crafting is a simple process but in order to craft an item you first must obtain that item’s recipe. There are several means to acquiring recipes: monster loot; treasure chests; quests; and, most importantly, the Researcher NPC.

The Researcher NPC is specifically for discovering new recipes. First you provide the Researcher with materials. Upon returning to him after some time, you gain any recipes his research turned up. Upon request the research can provide hints as to what items he may need to discover more recipes.

After obtaining an item recipe, you must obtain the materials needed to craft the item. Additionally, many items will require you to be near “ crafting surfaces” such as an anvil or furnace. To make crafter lives easier, materials in nearby containers will be accessible during crafting. This means you can stash all of your ingots in a treasure chest next to your anvil. Then you do not have to move them from the chest to your inventory before crafting.


Modding

Creating new items to craft is quite simple. All it requires is to add a craft component to the item. Through this you can specify the item’s category, subcategory, surface requirement (if any), list of materials and quantity required, and the quantity produced.

#Example for Copper Ingot
craft = Craft('Recipes', 'Smelting', 'anvil')
craft.add('mods/base/tile/copper_ore.ce', 3)
craft.quantity = 1

The surface requirement can be left empty to designate that the item can be crafted anywhere. If it is specified, the surface requirement does not refer to a crafting surface item but to a crafting surface service. There is a “Surface” component which enables entities to provide any number of crafting services.

Most items requiring an anvil can be crafted with any anvil; however, some special items may need an upgraded anvil. This upgraded anvil would provide the services needed for both the special items and any other items requiring an anvil. Any item can provide any surface service, so it is entirely possible to create uber surface items. It is of course possible to create entirely new crafting surface services that new items can require.

#Iron Anvil
surface = Surface(["anvil"])
#Uber Anvil
surface = Surface(["anvil", “uber anvil”])

Recipes

There is a limit on the recipes you can research based off of your craft level. If there are remaining recipes to discover for an item then the category will have a red ‘!’ over it and the tooltip will mention requiring a higher craft level.

File:Collect icon.png Hand

Template:Hand recipes

Anvil.png Anvil

Template:Anvil recipes

Tanning Rack.png Tanning Rack

Template:Tanning Rack recipes

Furnace.png Furnace

Template:Furnace recipes

Smithing Tools.png Smithing Tools

Template:Smithing Tools recipes

Carpenter Tools.png Carpenter Tools

Template:Carpenter Tools recipes

Ingot Mould.png Ingot Mould

Template:Ingot Mould recipes

Workstation.png Workstation

Template:Workstation recipes