Page 1 of 1
Modded item dont showing in game
Posted: Sun Dec 12, 2021 5:51 pm
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
})
Re: Modded item dont showing in game
Posted: Sun Dec 12, 2021 6:34 pm
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.
Re: Modded item dont showing in game
Posted: Sun Dec 12, 2021 6:44 pm
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,
}
Re: Modded item dont showing in game
Posted: Sun Dec 12, 2021 7:27 pm
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?