DivermanSam
Empress of Light
So with tile properties, are there some common mistakes I would be making if I were trying to make ore bars placeable on top of each other? For example, in vanilla, you can place silver bars on the ground, then copper bars on top of those. But I've messed up somehow and made my modded bars only placeable on the top of vanilla bars. Anyone know a fix?
Code:
namespace ThoriumMod.Tiles
{
public class ThoriumBar : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = true;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = false;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1);
TileObjectData.newTile.Origin = new Point16(0, 0);
TileObjectData.newTile.DrawYOffset = +2;
TileObjectData.newTile.CoordinateHeights = new int[]{ 16 };
TileObjectData.addTile(Type);
drop = mod.ItemType("ThoriumBar");
AddMapEntry(new Color(80, 200, 200), "Thorium Bar");
dustType = 15;
disableSmartCursor = true;
adjTiles = new int[]{ TileID.Bottles };
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 15 : 3;
}
}
}