Add icon texture mappings for all items

This commit is contained in:
Drew DeVault 2015-09-30 18:29:07 -04:00
parent 46569dec08
commit 8a0ad17b00
69 changed files with 12274 additions and 0 deletions

View File

@ -13,5 +13,6 @@ namespace TrueCraft.API.Logic
void ItemUsedOnNothing(ItemStack item, IWorld world, IRemoteClient user);
void ItemUsedOnEntity(ItemStack item, IEntity usedOn, IWorld world, IRemoteClient user);
void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user);
Tuple<int, int> GetIconTexture(byte metadata);
}
}

View File

@ -187,6 +187,11 @@ namespace TrueCraft.Core.Logic
/// </summary>
public abstract byte ID { get; }
public virtual Tuple<int, int> GetIconTexture(byte metadata)
{
return null; // Blocks are rendered in 3D
}
public virtual Coordinates3D GetSupportDirection(BlockDescriptor descriptor)
{
return Coordinates3D.Zero;

View File

@ -14,6 +14,8 @@ namespace TrueCraft.Core.Logic
{
public abstract short ID { get; }
public abstract Tuple<int, int> GetIconTexture(byte metadata);
public virtual sbyte MaximumStack { get { return 64; } }
public virtual string DisplayName { get { return string.Empty; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x104; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(10, 0);
}
public override float Restores { get { return 2; } }
public override string DisplayName { get { return "Apple"; } }

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x106; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(5, 2);
}
public override string DisplayName { get { return "Arrow"; } }
public ItemStack[,] Pattern

View File

@ -74,6 +74,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x10F; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 7);
}
public override ToolMaterial Material { get { return ToolMaterial.Wood; } }
public override short BaseDurability { get { return 60; } }
@ -87,6 +92,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x113; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 7);
}
public override ToolMaterial Material { get { return ToolMaterial.Stone; } }
public override short BaseDurability { get { return 132; } }
@ -100,6 +110,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x102; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 7);
}
public override ToolMaterial Material { get { return ToolMaterial.Iron; } }
public override short BaseDurability { get { return 251; } }
@ -113,6 +128,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x11E; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 7);
}
public override ToolMaterial Material { get { return ToolMaterial.Gold; } }
public override short BaseDurability { get { return 33; } }
@ -126,6 +146,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x117; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 7);
}
public override ToolMaterial Material { get { return ToolMaterial.Diamond; } }
public override short BaseDurability { get { return 1562; } }

View File

@ -13,6 +13,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x163; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(13, 2);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Bed"; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x14D; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 8);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Boat"; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x160; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(12, 1);
}
public override string DisplayName { get { return "Bone"; } }
}
}

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x154; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(11, 3);
}
public override sbyte MaximumStack { get { return 64; } }
public override string DisplayName { get { return "Book"; } }

View File

@ -63,6 +63,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x12D; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 3);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Leather; } }
public override short BaseDurability { get { return 40; } }
@ -78,6 +83,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x135; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 3);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Iron; } }
public override short BaseDurability { get { return 160; } }
@ -93,6 +103,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x13D; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 3);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Gold; } }
public override short BaseDurability { get { return 80; } }
@ -108,6 +123,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x139; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 3);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Diamond; } }
public override short BaseDurability { get { return 320; } }
@ -123,6 +143,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x131; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 3);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Chain; } }
public override short BaseDurability { get { return 79; } }

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x105; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(5, 1);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Bow"; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x119; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 4);
}
public override string DisplayName { get { return "Bowl"; } }
public ItemStack[,] Pattern

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x129; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(9, 2);
}
public override float Restores { get { return 2.5f; } }
public override string DisplayName { get { return "Bread"; } }

View File

@ -7,6 +7,11 @@ namespace TrueCraft.Core.Logic.Items
{
public static readonly short ItemID = 0x150;
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(6, 1);
}
public override short ID { get { return 0x150; } }
public override string DisplayName { get { return "Brick"; } }

View File

@ -13,6 +13,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x145; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(10, 4);
}
public override string DisplayName { get { return "Bucket"; } }
protected virtual byte? RelevantBlockType { get { return null; } }

View File

@ -13,6 +13,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x162; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(13, 1);
}
//This is per "slice"
public override float Restores { get { return 1.5f; } }

View File

@ -65,6 +65,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x12B; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 1);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Leather; } }
public override short BaseDurability { get { return 49; } }
@ -80,6 +85,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x133; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 1);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Iron; } }
public override short BaseDurability { get { return 192; } }
@ -95,6 +105,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x13B; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 1);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Gold; } }
public override short BaseDurability { get { return 96; } }
@ -110,6 +125,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x137; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 1);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Diamond; } }
public override short BaseDurability { get { return 384; } }
@ -125,6 +145,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x12F; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 1);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Chain; } }
public override short BaseDurability { get { return 96; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x151; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(9, 3);
}
public override string DisplayName { get { return "Clay"; } }
}
}

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x15B; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(6, 4);
}
public override string DisplayName { get { return "Clock"; } }
public ItemStack[,] Pattern

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x107; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 0);
}
public override string DisplayName { get { return "Coal"; } }
}
}

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x159; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(6, 3);
}
public override string DisplayName { get { return "Compass"; } }
public ItemStack[,] Pattern

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x15E; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(10, 5);
}
public override float Restores { get { return 2.5f; } }
public override string DisplayName { get { return "Cooked Fish"; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x140; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 5);
}
public override float Restores { get { return 4; } }
public override string DisplayName { get { return "Cooked Porkchop"; } }

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x165; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(12, 5);
}
public override sbyte MaximumStack { get { return 8; } }
public override float Restores { get { return 0.5f; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x108; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 3);
}
public override string DisplayName { get { return "Diamond"; } }
}
}

View File

@ -98,6 +98,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x14A; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(12, 2);
}
public override string DisplayName { get { return "Iron Door"; } }
protected override byte BlockID { get { return IronDoorBlock.BlockID; } }
@ -109,6 +114,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x144; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(11, 2);
}
public override string DisplayName { get { return "Wooden Door"; } }
protected override byte BlockID { get { return WoodenDoorBlock.BlockID; } }

View File

@ -30,6 +30,12 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x15F; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
// TODO: Support additional textures
return new Tuple<int, int>(14, 4);
}
public override string DisplayName { get { return "Dye"; } }
public class BoneMealRecipe : ICraftingRecipe

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x158; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(12, 0);
}
public override sbyte MaximumStack { get { return 16; } }
public override string DisplayName { get { return "Egg"; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x120; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 1);
}
public override string DisplayName { get { return "Feather"; } }
}
}

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x15A; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(5, 4);
}
public override sbyte MaximumStack { get { return 1; } }
public override short BaseDurability { get { return 65; } }

View File

@ -15,6 +15,11 @@ namespace TrueCraft.Core.Logic.Items
public override short BaseDurability { get { return 65; } }
public override string DisplayName { get { return "Flint and Steel"; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(5, 0);
}
public ItemStack[,] Pattern
{
get

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x13E; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(6, 0);
}
public override string DisplayName { get { return "Flint"; } }
}
}

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x15C; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(9, 4);
}
public override string DisplayName { get { return "Glowstone Dust"; } }
}
}

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x10A; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 2);
}
public override string DisplayName { get { return "Gold Ingot"; } }
}
}

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x142; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(11, 0);
}
public override float Restores { get { return 10; } }
public override string DisplayName { get { return "Golden Apple"; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x121; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 2);
}
public override string DisplayName { get { return "Gunpowder"; } }
}
}

View File

@ -64,6 +64,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x12A; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 0);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Leather; } }
public override short BaseDurability { get { return 34; } }
@ -79,6 +84,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x132; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 0);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Iron; } }
public override short BaseDurability { get { return 136; } }
@ -94,6 +104,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x13A; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 0);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Gold; } }
public override short BaseDurability { get { return 68; } }
@ -109,6 +124,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x136; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 0);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Diamond; } }
public override short BaseDurability { get { return 272; } }
@ -124,6 +144,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x12E; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 0);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Chain; } }
public override short BaseDurability { get { return 67; } }

View File

@ -87,6 +87,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x122; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 8);
}
public override ToolMaterial Material { get { return ToolMaterial.Wood; } }
public override short BaseDurability { get { return 60; } }
@ -100,6 +105,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x123; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 8);
}
public override ToolMaterial Material { get { return ToolMaterial.Stone; } }
public override short BaseDurability { get { return 132; } }
@ -113,6 +123,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x124; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 8);
}
public override ToolMaterial Material { get { return ToolMaterial.Iron; } }
public override short BaseDurability { get { return 251; } }
@ -126,6 +141,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x126; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 8);
}
public override ToolMaterial Material { get { return ToolMaterial.Gold; } }
public override short BaseDurability { get { return 33; } }
@ -139,6 +159,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x125; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 8);
}
public override ToolMaterial Material { get { return ToolMaterial.Diamond; } }
public override short BaseDurability { get { return 1562; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x109; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 1);
}
public override string DisplayName { get { return "Iron Ingot"; } }
public ItemStack[,] Pattern

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x14E; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 6);
}
public override string DisplayName { get { return "Leather"; } }
}
}

View File

@ -64,6 +64,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x12C; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 2);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Leather; } }
public override short BaseDurability { get { return 46; } }
@ -79,6 +84,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x134; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 2);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Iron; } }
public override short BaseDurability { get { return 184; } }
@ -94,6 +104,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x13C; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 2);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Gold; } }
public override short BaseDurability { get { return 92; } }
@ -109,6 +124,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x138; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 2);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Diamond; } }
public override short BaseDurability { get { return 368; } }
@ -124,6 +144,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x130; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 2);
}
public override ArmorMaterial Material { get { return ArmorMaterial.Chain; } }
public override short BaseDurability { get { return 92; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x166; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(12, 3);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Map"; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x148; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 8);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Minecart"; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x11A; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 4);
}
public override sbyte MaximumStack { get { return 1; } }
public override float Restores { get { return 5; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x8D1; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 15);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Music Disc"; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x141; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(10, 1);
}
public override string DisplayName { get { return "Painting"; } }
public ItemStack[,] Pattern

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x153; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(10, 3);
}
public override string DisplayName { get { return "Paper"; } }
public ItemStack[,] Pattern

View File

@ -74,6 +74,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x10E; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 6);
}
public override ToolMaterial Material { get { return ToolMaterial.Wood; } }
public override short BaseDurability { get { return 60; } }
@ -87,6 +92,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x112; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 6);
}
public override ToolMaterial Material { get { return ToolMaterial.Stone; } }
public override short BaseDurability { get { return 132; } }
@ -100,6 +110,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x101; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 6);
}
public override ToolMaterial Material { get { return ToolMaterial.Iron; } }
public override short BaseDurability { get { return 251; } }
@ -113,6 +128,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x11D; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 6);
}
public override ToolMaterial Material { get { return ToolMaterial.Gold; } }
public override short BaseDurability { get { return 33; } }
@ -126,6 +146,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x116; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 6);
}
public override ToolMaterial Material { get { return ToolMaterial.Diamond; } }
public override short BaseDurability { get { return 1562; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x15D; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(9, 5);
}
public override float Restores { get { return 1; } }
public override string DisplayName { get { return "Raw Fish"; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x13F; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(7, 5);
}
public override float Restores { get { return 1.5f; } }
public override string DisplayName { get { return "Raw Porkchop"; } }

View File

@ -14,6 +14,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x14B; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 3);
}
public override string DisplayName { get { return "Redstone"; } }
public override void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user)

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x164; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(6, 5);
}
public override string DisplayName { get { return "Redstone Repeater"; } }
public ItemStack[,] Pattern

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x149; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 6);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Saddle"; } }

View File

@ -13,6 +13,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x127; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(9, 0);
}
public override string DisplayName { get { return "Seeds"; } }
public override void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user)

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x167; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(13, 5);
}
public override sbyte MaximumStack { get { return 1; } }
public override short BaseDurability { get { return 239; } }

View File

@ -74,6 +74,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x10D; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 5);
}
public override ToolMaterial Material { get { return ToolMaterial.Wood; } }
public override short BaseDurability { get { return 60; } }
@ -87,6 +92,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x111; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 5);
}
public override ToolMaterial Material { get { return ToolMaterial.Stone; } }
public override short BaseDurability { get { return 132; } }
@ -100,6 +110,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x100; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 5);
}
public override ToolMaterial Material { get { return ToolMaterial.Iron; } }
public override short BaseDurability { get { return 251; } }
@ -113,6 +128,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x11C; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 5);
}
public override ToolMaterial Material { get { return ToolMaterial.Gold; } }
public override short BaseDurability { get { return 33; } }
@ -126,6 +146,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x115; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 5);
}
public override ToolMaterial Material { get { return ToolMaterial.Diamond; } }
public override short BaseDurability { get { return 1562; } }

View File

@ -13,6 +13,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x143; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(10, 2);
}
public override sbyte MaximumStack { get { return 1; } }
public override string DisplayName { get { return "Sign"; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x155; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(14, 1);
}
public override string DisplayName { get { return "Slimeball"; } }
}
}

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x14C; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(14, 0);
}
public override sbyte MaximumStack { get { return 16; } }
public override string DisplayName { get { return "Snowball"; } }

View File

@ -11,6 +11,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x118; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(5, 3);
}
public override string DisplayName { get { return "Stick"; } }
public ItemStack[,] Pattern

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x11F; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(8, 0);
}
public override string DisplayName { get { return "String"; } }
}
}

View File

@ -13,6 +13,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x152; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(11, 1);
}
public override string DisplayName { get { return "Sugar Canes"; } }
public override void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user)

View File

@ -10,6 +10,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x161; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(13, 0);
}
public override string DisplayName { get { return "Sugar"; } }
public ItemStack[,] Pattern

View File

@ -76,6 +76,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x10C; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(0, 4);
}
public override ToolMaterial Material { get { return ToolMaterial.Wood; } }
public override short BaseDurability { get { return 60; } }
@ -91,6 +96,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x110; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(1, 4);
}
public override ToolMaterial Material { get { return ToolMaterial.Stone; } }
public override short BaseDurability { get { return 132; } }
@ -106,6 +116,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x10B; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(2, 4);
}
public override ToolMaterial Material { get { return ToolMaterial.Iron; } }
public override short BaseDurability { get { return 251; } }
@ -121,6 +136,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x11B; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(4, 4);
}
public override ToolMaterial Material { get { return ToolMaterial.Gold; } }
public override short BaseDurability { get { return 33; } }
@ -136,6 +156,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x114; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(3, 4);
}
public override ToolMaterial Material { get { return ToolMaterial.Diamond; } }
public override short BaseDurability { get { return 1562; } }

View File

@ -9,6 +9,11 @@ namespace TrueCraft.Core.Logic.Items
public override short ID { get { return 0x128; } }
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>(9, 1);
}
public override string DisplayName { get { return "Wheat"; } }
}
}

11009
burger-b1.7.json Normal file

File diff suppressed because it is too large Load Diff

744
icons.json Normal file
View File

@ -0,0 +1,744 @@
[
{
"icon": {
"x": 2,
"y": 5
},
"id": 256
},
{
"icon": {
"x": 2,
"y": 6
},
"id": 257
},
{
"icon": {
"x": 2,
"y": 7
},
"id": 258
},
{
"icon": {
"x": 5,
"y": 0
},
"id": 259
},
{
"icon": {
"x": 10,
"y": 0
},
"id": 260
},
{
"icon": {
"x": 5,
"y": 1
},
"id": 261
},
{
"icon": {
"x": 5,
"y": 2
},
"id": 262
},
{
"icon": {
"x": 7,
"y": 0
},
"id": 263
},
{
"icon": {
"x": 7,
"y": 3
},
"id": 264
},
{
"icon": {
"x": 7,
"y": 1
},
"id": 265
},
{
"icon": {
"x": 7,
"y": 2
},
"id": 266
},
{
"icon": {
"x": 2,
"y": 4
},
"id": 267
},
{
"icon": {
"x": 0,
"y": 4
},
"id": 268
},
{
"icon": {
"x": 0,
"y": 5
},
"id": 269
},
{
"icon": {
"x": 0,
"y": 6
},
"id": 270
},
{
"icon": {
"x": 0,
"y": 7
},
"id": 271
},
{
"icon": {
"x": 1,
"y": 4
},
"id": 272
},
{
"icon": {
"x": 1,
"y": 5
},
"id": 273
},
{
"icon": {
"x": 1,
"y": 6
},
"id": 274
},
{
"icon": {
"x": 1,
"y": 7
},
"id": 275
},
{
"icon": {
"x": 3,
"y": 4
},
"id": 276
},
{
"icon": {
"x": 3,
"y": 5
},
"id": 277
},
{
"icon": {
"x": 3,
"y": 6
},
"id": 278
},
{
"icon": {
"x": 3,
"y": 7
},
"id": 279
},
{
"icon": {
"x": 5,
"y": 3
},
"id": 280
},
{
"icon": {
"x": 7,
"y": 4
},
"id": 281
},
{
"icon": {
"x": 8,
"y": 4
},
"id": 282
},
{
"icon": {
"x": 4,
"y": 4
},
"id": 283
},
{
"icon": {
"x": 4,
"y": 5
},
"id": 284
},
{
"icon": {
"x": 4,
"y": 6
},
"id": 285
},
{
"icon": {
"x": 4,
"y": 7
},
"id": 286
},
{
"icon": {
"x": 8,
"y": 0
},
"id": 287
},
{
"icon": {
"x": 8,
"y": 1
},
"id": 288
},
{
"icon": {
"x": 8,
"y": 2
},
"id": 289
},
{
"icon": {
"x": 0,
"y": 8
},
"id": 290
},
{
"icon": {
"x": 1,
"y": 8
},
"id": 291
},
{
"icon": {
"x": 2,
"y": 8
},
"id": 292
},
{
"icon": {
"x": 3,
"y": 8
},
"id": 293
},
{
"icon": {
"x": 4,
"y": 8
},
"id": 294
},
{
"icon": {
"x": 9,
"y": 0
},
"id": 295
},
{
"icon": {
"x": 9,
"y": 1
},
"id": 296
},
{
"icon": {
"x": 9,
"y": 2
},
"id": 297
},
{
"icon": {
"x": 0,
"y": 0
},
"id": 298
},
{
"icon": {
"x": 0,
"y": 1
},
"id": 299
},
{
"icon": {
"x": 0,
"y": 2
},
"id": 300
},
{
"icon": {
"x": 0,
"y": 3
},
"id": 301
},
{
"icon": {
"x": 1,
"y": 0
},
"id": 302
},
{
"icon": {
"x": 1,
"y": 1
},
"id": 303
},
{
"icon": {
"x": 1,
"y": 2
},
"id": 304
},
{
"icon": {
"x": 1,
"y": 3
},
"id": 305
},
{
"icon": {
"x": 2,
"y": 0
},
"id": 306
},
{
"icon": {
"x": 2,
"y": 1
},
"id": 307
},
{
"icon": {
"x": 2,
"y": 2
},
"id": 308
},
{
"icon": {
"x": 2,
"y": 3
},
"id": 309
},
{
"icon": {
"x": 3,
"y": 0
},
"id": 310
},
{
"icon": {
"x": 3,
"y": 1
},
"id": 311
},
{
"icon": {
"x": 3,
"y": 2
},
"id": 312
},
{
"icon": {
"x": 3,
"y": 3
},
"id": 313
},
{
"icon": {
"x": 4,
"y": 0
},
"id": 314
},
{
"icon": {
"x": 4,
"y": 1
},
"id": 315
},
{
"icon": {
"x": 4,
"y": 2
},
"id": 316
},
{
"icon": {
"x": 4,
"y": 3
},
"id": 317
},
{
"icon": {
"x": 6,
"y": 0
},
"id": 318
},
{
"icon": {
"x": 7,
"y": 5
},
"id": 319
},
{
"icon": {
"x": 8,
"y": 5
},
"id": 320
},
{
"icon": {
"x": 10,
"y": 1
},
"id": 321
},
{
"icon": {
"x": 11,
"y": 0
},
"id": 322
},
{
"icon": {
"x": 10,
"y": 2
},
"id": 323
},
{
"icon": {
"x": 11,
"y": 2
},
"id": 324
},
{
"icon": {
"x": 10,
"y": 4
},
"id": 325
},
{
"icon": {
"x": 11,
"y": 4
},
"id": 326
},
{
"icon": {
"x": 12,
"y": 4
},
"id": 327
},
{
"icon": {
"x": 7,
"y": 8
},
"id": 328
},
{
"icon": {
"x": 8,
"y": 6
},
"id": 329
},
{
"icon": {
"x": 12,
"y": 2
},
"id": 330
},
{
"icon": {
"x": 8,
"y": 3
},
"id": 331
},
{
"icon": {
"x": 14,
"y": 0
},
"id": 332
},
{
"icon": {
"x": 8,
"y": 8
},
"id": 333
},
{
"icon": {
"x": 7,
"y": 6
},
"id": 334
},
{
"icon": {
"x": 13,
"y": 4
},
"id": 335
},
{
"icon": {
"x": 6,
"y": 1
},
"id": 336
},
{
"icon": {
"x": 9,
"y": 3
},
"id": 337
},
{
"icon": {
"x": 11,
"y": 1
},
"id": 338
},
{
"icon": {
"x": 10,
"y": 3
},
"id": 339
},
{
"icon": {
"x": 11,
"y": 3
},
"id": 340
},
{
"icon": {
"x": 14,
"y": 1
},
"id": 341
},
{
"icon": {
"x": 7,
"y": 9
},
"id": 342
},
{
"icon": {
"x": 7,
"y": 10
},
"id": 343
},
{
"icon": {
"x": 12,
"y": 0
},
"id": 344
},
{
"icon": {
"x": 6,
"y": 3
},
"id": 345
},
{
"icon": {
"x": 5,
"y": 4
},
"id": 346
},
{
"icon": {
"x": 6,
"y": 4
},
"id": 347
},
{
"icon": {
"x": 9,
"y": 4
},
"id": 348
},
{
"icon": {
"x": 9,
"y": 5
},
"id": 349
},
{
"icon": {
"x": 10,
"y": 5
},
"id": 350
},
{
"icon": {
"x": 14,
"y": 4
},
"id": 351
},
{
"icon": {
"x": 12,
"y": 1
},
"id": 352
},
{
"icon": {
"x": 13,
"y": 0
},
"id": 353
},
{
"icon": {
"x": 13,
"y": 1
},
"id": 354
},
{
"icon": {
"x": 13,
"y": 2
},
"id": 355
},
{
"icon": {
"x": 6,
"y": 5
},
"id": 356
},
{
"icon": {
"x": 12,
"y": 5
},
"id": 357
},
{
"icon": {
"x": 12,
"y": 3
},
"id": 358
},
{
"icon": {
"x": 13,
"y": 5
},
"id": 359
},
{
"icon": {
"x": 0,
"y": 15
},
"id": 2256
},
{
"icon": {
"x": 1,
"y": 15
},
"id": 2257
}
]

12
scripts/findicon Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
icon=$(cat icons.json | jq ".[] | select(.id==$(printf "%d" $1)) | .icon")
x=$(printf "%s" $icon | jq ".x")
y=$(printf "%s" $icon | jq ".y")
cat <<EOF
public override Tuple<int, int> GetIconTexture(byte metadata)
{
return new Tuple<int, int>($x, $y);
}
EOF