RADICALAdrift
Official Terrarian
Hi There,
Im getting this as 1 of many errors trying to convert my mod to TModloader 1.4
I have a basic understanding of C# (very basic but enough to do what i need) anyway can someone explain what error is trying to tell me & what i need to change in my code
Thanks In Advance
Regards,
RADICALAdrift
Im getting this as 1 of many errors trying to convert my mod to TModloader 1.4
C#:
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
using OPDefense.Items.Placeable;
namespace OPDefense.Tiles
{
public class CraytaniumOreTile : ModTile
{
public void SetDefaults() //Dont know if if it should be public override void SetDefaults() or public void SetDefaults()
{
Main.tileSolid[Type] = true;
Main.tileMergeDirt[Type] = true;
Main.tileSpelunker[Type] = true;
Main.tileShine[Type] = 800;
Main.tileShine2[Type] = true;
Main.tileBlockLight[Type] = false;
Main.tileLighted[Type] = true;
ModTile.ItemDrop = ("CraytaniumOre"); //This Line is what is giving me the error
soundType = SoundID.Tink;
soundStyle = 1;
dustType == "84"; //This probably should be = not == but what do i know, Originally 1 = (lol)
}
public void SetStaticDefaults() //Dont know if if it should be public override void SetStaticDefaults() or public void SetStaticDefaults()
{
ModTranslation name = CreateMapEntryName();
name.SetDefault("Craytanium Ore");
AddMapEntry(new Color(198, 33, 101), name);
}
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
r = 0.198f;
g = 0.033f;
b = 0.101f;
}
}
}
I have a basic understanding of C# (very basic but enough to do what i need) anyway can someone explain what error is trying to tell me & what i need to change in my code
Thanks In Advance
Regards,
RADICALAdrift
Last edited: