diff --git a/Schematics/DraedonsLab_Cavern.csch b/Schematics/DraedonsLab_Cavern.csch index b0b345f5f8..f5358d0878 100644 Binary files a/Schematics/DraedonsLab_Cavern.csch and b/Schematics/DraedonsLab_Cavern.csch differ diff --git a/Tiles/DraedonStructures/OnyxExcavatorTile.cs b/Tiles/DraedonStructures/OnyxExcavatorTile.cs new file mode 100644 index 0000000000..49025f1347 --- /dev/null +++ b/Tiles/DraedonStructures/OnyxExcavatorTile.cs @@ -0,0 +1,33 @@ +using CalamityMod.Items.Mounts; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.DraedonStructures +{ + public class OnyxExcavatorTile : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileSpelunker[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x4); + TileObjectData.newTile.Width = 8; + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Onyx Excavator"); + AddMapEntry(new Color(128, 0, 128), name); + TileID.Sets.DisableSmartCursor[Type] = true; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType()); + } + } +} diff --git a/Tiles/DraedonStructures/OnyxExcavatorAmbient.png b/Tiles/DraedonStructures/OnyxExcavatorTile.png similarity index 100% rename from Tiles/DraedonStructures/OnyxExcavatorAmbient.png rename to Tiles/DraedonStructures/OnyxExcavatorTile.png