Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
Game mechanicsNovember 22, 20266 min read

How to Make a Crafting System

Crafting turns things players find into things they want. Here is how to model recipes, price them, reveal them and keep the whole system from leaking or duplicating items.

Startbase Team
Editorial ink illustration of a wooden workbench with a hammer, sticks and flint beside a finished hand axe, the axe's flint head in ember orange

Key takeaways

  • A recipe is data: output, inputs with counts, station, unlock rule and craft time. Keep all recipes in one table.
  • Crafting must be atomic. Check ingredients and space first, then remove and add in one step, or players lose materials and find duplicates.
  • Price recipes by how long the ingredients take to gather, and make every craft change what the player can do or where they can go.

To make a crafting system, define each recipe as data (the item it makes, the ingredients and counts it needs, the station it needs, how it is unlocked), show players the recipes they know with what they are missing, and craft in one atomic step: check ingredients and bag space, then remove the inputs and add the output together. The design work is in the recipe list itself: what each craft costs in gathering time, and what it lets the player do next.

Pick the kind of crafting first

Crafting systems look alike from far away but play very differently. Choose one model and stick to it:

  • Recipe list. Players see known recipes and press Craft. Fast, clear and phone-friendly. The right default for most games.
  • Pattern grid. Players arrange ingredients in a shape on a small grid to discover recipes. Memorable and good for discovery, but it needs a recipe book once players know dozens, and arranging items is fiddly on touch.
  • Free combination. Players drop any two or three items into a pot and see what happens. Great for alchemy and cooking games where experimenting is the fun; you need sensible failure results so random mixes are not frustrating.
  • Upgrade crafting. Players do not make new items, they improve existing ones (sword level 1 to 2 costs 5 ore). Simple, and it fits action games where the inventory is small.

Survival games use crafting as their progression tree; the survival game guide shows how tiers of recipes map to where the player can go. This article covers the machinery under any of these models.

The recipe as data

Every recipe is one row in a single table. A useful set of fields:

  • id: stable, like `axe_stone`.
  • output: item id and count (some recipes make several: 4 arrows from one craft).
  • inputs: a list of item ids and counts. Optionally an ingredient tag instead of an id ("any wood", "any meat"), so players are not blocked because they have birch instead of oak.
  • station: none (craft anywhere), workbench, furnace, campfire, alchemy table. Stations create places that matter in the world.
  • time: 0 for instant, or seconds for crafts that take a while.
  • unlock: known from the start, learned from a scroll, unlocked by crafting a previous tier, or discovered by first picking up an ingredient.
  • tools (optional): items needed but not consumed, like a hammer or a mold.

Keep the table readable by you, not only by code. You will rebalance it many times, and asking the agent "make the iron sword cost 4 ingots instead of 6" is easy when the recipe is one row in one file.

Pricing recipes: gathering time is the currency

The honest cost of a craft is how long its ingredients take to collect. Estimate, for each raw material, roughly how many seconds of play one unit takes (a stick: 3 seconds, iron ore: 40 seconds including the walk to the cave). Then a recipe's cost is the sum. Starting targets that work in most games:

  • First useful craft within 1 to 2 minutes. The first tool should be reachable almost immediately, so crafting is taught by doing.
  • Each tier costs 3 to 5 times the previous one, while the reward roughly doubles power or opens a new area. Rising cost with rising impact keeps crafting feeling earned.
  • 3 to 4 distinct ingredients at most for normal recipes. More becomes a shopping list.
  • Intermediate items (planks from logs, ingots from ore) add depth cheaply: one smelting step makes iron feel valuable without new ingredients.
  • Consumables should be cheap enough to use. If a healing potion costs ten minutes of gathering, players will hoard it until the credits roll.

Tip

Every craft should change something: a new action (an axe cuts trees), a new place (a torch makes the cave safe), or a clear number going up. Recipes that make decorative clutter early on dilute the list. Save them for later, or put them in their own tab.

Showing recipes: discovery without guesswork

Players should always know what to craft next. A few rules keep the crafting screen helpful:

  1. 01Show "almost craftable" recipes with the missing ingredients highlighted and counts shown as held over needed (2/3). This pulls players toward the next goal.
  2. 02Unlock recipes on first contact. When a player picks up their first iron ore, reveal the recipes that use it. Discovery feels natural and nobody needs a wiki.
  3. 03Group by purpose (tools, building, food, gear), and sort craftable recipes first within each group.
  4. 04Show the result's effect, not just its name: "Stone axe: cuts trees twice as fast".
  5. 05Mark new recipes with a dot until they are viewed.

Bugs crafting usually causes

  • Half-paid crafts. Ingredients are removed, then the output fails to fit, and they are gone. Always check every input and the space for the output before changing anything, then do both changes together.
  • Free crafts. The output is added before the inputs are checked (or the check counts an item twice for two different ingredients of the same tag). Count requirements per item id after resolving tags, then compare.
  • Duplication by spam. Tapping Craft quickly fires two crafts before the first finishes updating the bag. Disable the button for the duration of the craft, or queue crafts and process them one at a time.
  • Timed crafts and closing the screen. If a craft takes 5 seconds and the player closes the menu or walks away from the furnace, decide whether it continues, pauses or refunds. Continuing in the background (and showing progress on the station) is what players expect.
  • Equipped ingredients. A recipe that uses an iron sword as an ingredient should not consume the one the player is wielding without asking. Exclude equipped items from crafting by default.
  • Recipe loops. Two recipes that convert items into each other with a profit (1 log makes 4 planks, 3 planks make 1 log) create infinite resources. Check conversion recipes for loops when you balance.

Most of these are really inventory bugs; crafting just triggers them faster. If your inventory has a single add and remove path that reports leftovers, as described in the inventory system guide, crafting stays safe.

How crafting combines with other systems

  • Gathering and loot feed the ingredients. If an ingredient only drops from enemies, its drop rate is part of the recipe's price.
  • Stations and base building give crafting a place. A furnace the player built and placed is a reason to come home.
  • Day and night can shape crafting: some stations only work by day, some ingredients only appear at night.
  • Quests can reward recipes instead of items, which keeps rewards useful for longer.
  • Economy needs a check: if crafted items sell for more than their ingredients, crafting becomes a money machine. Sell crafted goods at roughly the value of their inputs, or less.

A crafting brief to paste

Add a crafting system on top of the existing inventory. All recipes live in one data file with id, output item and count, inputs (item ids or tags like any_wood, with counts), station (none, workbench, furnace), craft time in seconds and unlock rule (start, first pickup of an ingredient, or a recipe scroll). Start with 12 recipes in three tiers: stone tools and a campfire with no station, a workbench and wooden gear at the workbench, iron ingots smelted at the furnace and iron tools. The first stone axe should take about a minute of gathering. Crafting is atomic: check every input and room for the output first, then remove inputs and add the output together; if the bag is full, refuse with a message. Disable Craft while a craft runs. Timed crafts keep running if the menu closes and show progress over the station. Equipped items are never used as ingredients. The crafting screen groups recipes by purpose, lists craftable ones first, shows almost-craftable ones with missing items as 2/3 in orange, and marks new recipes with a dot.

Play the first ten minutes after it is built and write down every moment you did not know what to do next; those are the recipes to reorder or the ingredients to place closer. Save a checkpoint before each rebalance so you can compare. For more on making systems like this pull players forward, see core game loops.

Frequently asked questions

How many recipes should a crafting system have?

Fewer than you think at first. 10 to 20 well-chosen recipes in three or four tiers are enough for a small survival or adventure game. Add more once players have used the first set and you know what they want.

Should crafting be instant or take time?

Instant for tools and anything crafted often, so the game keeps moving. A few seconds for bigger items like smelting or furniture, with progress shown on the station, adds weight without making players wait in a menu.

How do players learn recipes?

The friendliest way is to reveal recipes when the player first picks up an ingredient and to show almost-craftable recipes with what is missing. Recipe scrolls and experimentation work too, as long as there is a recipe book to look things up later.

How do I stop crafting from breaking my game's economy?

Make crafted items sell for about the value of their ingredients or less, and check conversion recipes for loops that turn a resource into more of itself.

On this page

  • Pick the kind of crafting first
  • The recipe as data
  • Pricing recipes: gathering time is the currency
  • Showing recipes: discovery without guesswork
  • Bugs crafting usually causes
  • How crafting combines with other systems
  • A crafting brief to paste

Keep reading

More in Game mechanics
Editorial ink illustration of a wooden toy figure in mid-air above a gap, the puff cloud under its feet in ember orange
Game mechanicsNovember 22, 2026

How to Add a Double Jump to Your Game

A double jump is one counter and one reset rule, but the details decide whether it feels like control or like cheating. Here are the values and the bugs to watch for.

8 min read
Editorial ink illustration of a small figure streaking along a stone floor with faded ghost copies behind it, the front figure's scarf in ember orange
Game mechanicsNovember 22, 2026

How to Add a Dash Move

A dash is a short burst of fixed speed that overrides normal movement. Get its distance, its ending and its refill rule right and it becomes the move players use most.

7 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.