diff --git a/server/items/IItemBehaviour.ts b/server/items/IItemBehaviour.ts index e36f8e3..0941340 100644 --- a/server/items/IItemBehaviour.ts +++ b/server/items/IItemBehaviour.ts @@ -1,6 +1,6 @@ -import { EntityLiving } from "../entities/EntityLiving"; -import { ItemStack } from "../inventories/ItemStack"; +import EntityLiving from "../entities/EntityLiving"; +import ItemStack from "../inventories/ItemStack"; -export interface IItemBehaviour { +export default interface IItemBehaviour { } \ No newline at end of file diff --git a/server/items/Item.ts b/server/items/Item.ts index a0efaab..87171d0 100644 --- a/server/items/Item.ts +++ b/server/items/Item.ts @@ -50,7 +50,19 @@ export default class Item { static ironShovel = new Item(0).setMaxDamage(MaxUses.IRON).setName("Iron Shovel"); static ironPickaxe = new Item(1).setMaxDamage(MaxUses.IRON).setName("Iron Pickaxe"); static ironAxe = new Item(2).setMaxDamage(MaxUses.IRON).setName("Iron Axe"); + static flintAndSteel = new Item(3).setName("Flint and Steel"); + static apple = new Item(4).setName("Apple"); + static bow = new Item(5).setName("Bow"); + static arrow = new Item(6).setName("Arrow"); + static coal = new Item(7).setName("Coal"); + static diamond = new Item(8).setName("Diamond"); + static iron = new Item(9).setName("Iron Ingot"); + static gold = new Item(10).setName("Gold Ingot"); static ironSword = new Item(11).setMaxDamage(MaxUses.IRON).setName("Iron Sword"); + static woodenSword = new Item(12).setMaxDamage(MaxUses.WOOD).setName("Wooden Sword"); + static woodenShovel = new Item(13).setMaxDamage(MaxUses.WOOD).setName("Wooden Shovel"); + static woodenPickaxe = new Item(14).setMaxDamage(MaxUses.WOOD).setName("Wooden Pickaxe"); + static woodenAxe = new Item(15).setMaxDamage(MaxUses.WOOD).setName("Wooden Axe"); static clay = new Item(81).setName("Clay"); } \ No newline at end of file diff --git a/server/items/ItemBehaviour.ts b/server/items/ItemBehaviour.ts index 3d1d0a7..8858493 100644 --- a/server/items/ItemBehaviour.ts +++ b/server/items/ItemBehaviour.ts @@ -1,6 +1,6 @@ -import { EntityLiving } from "../entities/EntityLiving"; -import { ItemStack } from "../inventories/ItemStack"; -import { IItemBehaviour } from "./IItemBehaviour"; +import EntityLiving from "../entities/EntityLiving"; +import ItemStack from "../inventories/ItemStack"; +import IItemBehaviour from "./IItemBehaviour"; export default class ItemBehaviour implements IItemBehaviour {