Modded item dont showing in game

Place to get help with not working mods / modding interface.
ewrcraft
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Dec 11, 2021 2:15 pm
Contact:

Modded item dont showing in game

Post by ewrcraft »

I'm create a mod with item and recipe but recipe don't showing. How I can fix it?

Code:

Code: Select all

local coin = {
	type = "recipe",
	name = "ewrycoin",
	ingridients = {
		{"iron_plate", 2},
	},
	result = "ewrycoin",
	enabled = true,
}

data:extend({
	coin
})
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Modded item dont showing in game

Post by DaveMcW »

You have 3 errors in that code. If you don't see any error message it means it's not being read.

Try editing an existing mod before you create your own.
Pi-C
Smart Inserter
Smart Inserter
Posts: 1759
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: Modded item dont showing in game

Post by Pi-C »

ewrcraft wrote: Sun Dec 12, 2021 5:51 pm I'm create a mod with item and recipe but recipe don't showing. How I can fix it?

Code:
This should work if the result item exists, except for the obvious mistakes (typos) that will cause a crash on loading the game:

Code: Select all

local coin = {
	type = "recipe",
	name = "ewrycoin",
--	ingridients = {
	ingredients = {
--		{"iron_plate", 2},
		{"iron-plate", 2},
	},
	result = "ewrycoin",
	enabled = true,
}
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
ewrcraft
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Dec 11, 2021 2:15 pm
Contact:

Re: Modded item dont showing in game

Post by ewrcraft »

I have a problem with showing recipe in craft menu, it don't shows anywhere. it not in mod category and I don't see it in all vanilla categories.
I can fix it?
Post Reply

Return to “Modding help”