Im trying to make a new block for terraria mod but im still confuse about my problem.

Status
Not open for further replies.

RAZORXT

Terrarian
My problem is
"BlackRock.cs(11,24): error CS0115: 'BlackRock.SetDefaults()' : no suitable method found to override"

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;


namespace terraplus.Tiles
{
public class BlackRock : ModTile
{
public override void SetDefaults() {
Main.tileSolid[Type] = true;
Main.tileMergeDirt[Type] = true;
Main.tileBlockLight[Type] = true;
Main.tileLighted[Type] = true;
Main.tileLavaDeath[Type] = true;
AddMapEntry(new Color(200, 200, 200));

drop = mod.ItemType("BlackRock");
dustType = DustID.Ash;

ModTranslation name = CreateMapEntryName();
name.SetDefault("Black Rock");

AddMapEntry(Color.Black);

minPick = 20;
}

public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) {
r = 0.5f;
g = 0.5f;
b = 0.5f;
}


}
}
 
Thus is a duplicate of this thread. Please do not make duplicate threads, thanks.
 
Status
Not open for further replies.
Back
Top Bottom