Thanks!Thanks very much for the guides, berber! Greatly appreciated.
Question though, please. I have that silly ambition to make a bunch of new recipes for items that already exist, (as per your slime staff example) but I was wondering if it can all go in one file, or if each recipe needs its own file?
-----
The double slashes are comments. They'll be ignored by the compiler.
It needs another } at the endOk i don't know what im doing wrong, but when i tried to build my mod to see if the Slime Staff recipe worked, it popped up this;
Terraria 1.2.4.1, tAPI Builder r14a
========================================
Building mod Mino's Recipes
Validating Jsons...
Compiling code...
SlimeStaff.cs (6,26)
Se esperaba }
}
^
Failed to build Mino's Recipes.
========================================
Built 0 mods.
My .cs file looks like this;
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TAPI;
using Terraria;
namespace MinoRecipes.Items
{
public class SlimeStaff : ModBase
{
public override void OnLoad()
{
Recipe.newRecipe.createItem.SetDefaults(1309, false);
Recipe.newRecipe.createItem.stack = 1;
Recipe.newRecipe.requiredItem.Add(new Item().SetDefaults(9, false));
Recipe.newRecipe.requiredItem[0].stack = 20;
Recipe.newRecipe.requiredItem.Add(new Item().SetDefaults(23, false));
Recipe.newRecipe.requiredItem[1].stack = 100;
Recipe.newRecipe.requiredItem.Add(new Item().SetDefaults(29, false));
Recipe.newRecipe.requiredItem[2].stack = 1;
Recipe.newRecipe.requiredTile.Add(18);
Recipe.AddRecipe();
}
}
Help Please!!!
It needs another } at the end
The PNG needs to be in the same folder as the JSON, or use the lineI tried to make a mod that adds in one sword. It fails. No sword. Code attached to post.
It says it's enabled in tAPI, but I still see no sword.
View attachment 18252
"texture": Texture/SpookyWoodSword
It's still not working.The PNG needs to be in the same folder as the JSON, or use the line
Code:"texture": Texture/SpookyWoodSword
Is your mod in a sources folder, or is it just in the tAPI Mods folder? You need to make a "Sources" folder and put it in there if so.It's still not working.
(it's probably some really nooby mistake)
I made a "Sources" folder in the "Mods" folder, and put the mod in there. Does the "Sources" folder have to be in "Local"? Or just "Mods"?Is your mod in a sources folder, or is it just in the tAPI Mods folder? You need to make a "Sources" folder and put it in there if so.
Or the texture line is wrong. In that case put the texture next to the weapon JSON in the weapons folder.
I think I did the same thing wrong.won't show the recipes, did i screw up? help pl0x D:
Whether or not you want all the recipes to have individual files is your choice.Thanks very much for the guides, berber! Greatly appreciated.
Question though, please. I have that silly ambition to make a bunch of new recipes for items that already exist, (as per your slime staff example) but I was wondering if it can all go in one file, or if each recipe needs its own file?
-----
The double slashes are comments. They'll be ignored by the compiler.
It works for me. I have to open it through tAPI, though.Is it just me, or does the tAPI builder not work for anyone? I've re-installed MULTIPLE times, and no luck.