1.0.0 commit
This commit is contained in:
39
Content/Items/Placeable/PersonalTeleporter.cs
Normal file
39
Content/Items/Placeable/PersonalTeleporter.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace tTP.Content.Items.Placeable
|
||||
{
|
||||
public class PersonalTeleporter : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.CloneDefaults(ItemID.ArmorStatue);
|
||||
Item.createTile = ModContent.TileType<Tiles.PersonalTeleporter>();
|
||||
Item.placeStyle = 0;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe recipe = CreateRecipe();
|
||||
if (ModLoader.TryGetMod("tMx", out Mod tMxft) && tMxft.TryFind<ModItem>("FrozenTablet", out ModItem FrozenTablet))
|
||||
{
|
||||
recipe.AddIngredient(FrozenTablet.Type, 1);
|
||||
}
|
||||
if (ModLoader.TryGetMod("tMx", out Mod tMxst) && tMxst.TryFind<ModItem>("SandTablet", out ModItem SandTablet))
|
||||
{
|
||||
recipe.AddIngredient(SandTablet.Type, 1);
|
||||
}
|
||||
if (ModLoader.TryGetMod("tMx", out Mod tMxtt) && tMxtt.TryFind<ModItem>("ToxicTablet", out ModItem ToxicTablet))
|
||||
{
|
||||
recipe.AddIngredient(ToxicTablet.Type, 1);
|
||||
}
|
||||
if (ModLoader.TryGetMod("tMx", out Mod tMxmt) && tMxmt.TryFind<ModItem>("MoltenTablet", out ModItem MoltenTablet))
|
||||
{
|
||||
recipe.AddIngredient(MoltenTablet.Type, 1);
|
||||
}
|
||||
recipe.AddTile(TileID.WorkBenches);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Content/Items/Placeable/PersonalTeleporter.png
Normal file
BIN
Content/Items/Placeable/PersonalTeleporter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Content/Items/Placeable/PersonalTeleporter.psd
Normal file
BIN
Content/Items/Placeable/PersonalTeleporter.psd
Normal file
Binary file not shown.
Reference in New Issue
Block a user