Jump to content

Recommended Posts

Uh, I kinda am having trouble making a custom item. Specifically the custom torch that she can only craft. Can somebody walk me through how to make a custom torch? For instance, do I have to copy the torch files and paste it in the prefabs folder?

using the torch prefab as a base will definitely make making a custom one easier. As for making it only for her to craft she'd need a unique tag and the recipe for that custom torch will need to specify only those with the unique tag can craft it.

 

local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS
---------------------------------------------------------
--Custom Recipes
local Ingredient = GLOBAL.Ingredient
local torchrecipe = AddRecipe("prefabnamehere", {Ingredient("boards", 4),Ingredient("cutstone", 2)}, GLOBAL.RECIPETABS.LIGHT, GLOBAL.TECH.SCIENCE_NONE, nil, nil, nil, 1, "uniquetaghere", "images/inventoryimages/prefab.xml", "prefab.tex")

 

So which Torch Files should I copy, there's obviously the torch.lua, but theres ones like torchfire_common.lua, torch.zip, torchfire.lua, and other stuff. Do I copy all the ones I have listed and put them in my mod's prefabs or?....

 

(Gonna take a break for today, would love the info anyways though)

20 hours ago, DarkKingBoo said:

using the torch prefab as a base will definitely make making a custom one easier. As for making it only for her to craft she'd need a unique tag and the recipe for that custom torch will need to specify only those with the unique tag can craft it.

 


local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS
---------------------------------------------------------
--Custom Recipes
local Ingredient = GLOBAL.Ingredient
local torchrecipe = AddRecipe("prefabnamehere", {Ingredient("boards", 4),Ingredient("cutstone", 2)}, GLOBAL.RECIPETABS.LIGHT, GLOBAL.TECH.SCIENCE_NONE, nil, nil, nil, 1, "uniquetaghere", "images/inventoryimages/prefab.xml", "prefab.tex")

 

So is this the code for just the recipe itself or is it for the recipe and having her be the only one able to craft it?

Is anybody willing to code the torch for me? I can do the spriting. My friend suggested that I get somebody to code it for me. If anybody is willing I can send you the files you need and will put you in as one of the mod makers.

O-Okay, here is my Torch and Mod Main files... You may wanna take a look at them and tell me what's wrong or what I need to do... I'm worried I screwed up already...

swap_torch-0.png

swap_torch-2.png

swap_torch-5.png

swap_torch-6.png

swap_torch-7.png

swap_torch-8.png

swap_torch.zip

torchhopeful.scml

torchhopeful.zip

modmain.lua

torchhopeful.lua

wollax.lua

wollax_none.lua

Edited by Israphelite

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...