Azu
Retinazer
That is what i thought had happened. You see, the placement of that code is wrong.
You placed it in the wrong folder. You had created the file in your "Tiles" folder when you should've placed it in your
Testmod folder. - This is where you should create a new file ( name it whatever you want) and paste in the following code
-Tiles - This is where you place the tile ITSELF, not the code to generate it.
You placed it in the wrong folder. You had created the file in your "Tiles" folder when you should've placed it in your
Testmod folder. - This is where you should create a new file ( name it whatever you want) and paste in the following code
Code:
using Terraria;
using TAPI;
namespace Test
{
public class Test : ModWorld
{
public override void WorldGenPostGen()
{
ModifyWorld();
}
public void ModifyWorld()
{
Main.statusText = "Adding Linite..."; //feel free to tweak
int Amount_Of_Spawns = 100+(int)(Main.maxTilesY/5); //feel free to tweak
for(int i=0;i<Amount_Of_Spawns;i++) AddMyOres();
}
public void AddMyOres()
{
int LowX = 200; //after ocean on left edge of map
int HighX = Main.maxTilesX-200; //before ocean on right edge of map
int LowY = (int)Main.worldSurface; //where the brown background and the sky background meets
int HighY = Main.maxTilesY-200; //where hell and the grey background meets
int X = WorldGen.genRand.Next(LowX,HighX); //don't touch
int Y = WorldGen.genRand.Next(LowY,HighY); //don't touch
int OreMinimumSpread = 5; //feel free to tweak
int OreMaximumSpread = 15; //feel free to tweak
int OreMinimumFrequency = 10; //feel free to tweak
int OreMaximumFrequency = 20; //feel free to tweak
int OreSpread = WorldGen.genRand.Next(OreMinimumSpread,OreMaximumSpread+1); //don't touch
int OreFrequency = WorldGen.genRand.Next(OreMinimumFrequency,OreMaximumFrequency+1); //don't touch
WorldGen.OreRunner(X, Y, (double)OreSpread, OreFrequency, TileDef.byName["Test:Linite"]);
}
}
}