add a few items
This commit is contained in:
parent
c521455ec4
commit
25f52fc11d
3 changed files with 18 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { EntityLiving } from "../entities/EntityLiving";
|
import EntityLiving from "../entities/EntityLiving";
|
||||||
import { ItemStack } from "../inventories/ItemStack";
|
import ItemStack from "../inventories/ItemStack";
|
||||||
|
|
||||||
export interface IItemBehaviour {
|
export default interface IItemBehaviour {
|
||||||
|
|
||||||
}
|
}
|
|
@ -50,7 +50,19 @@ export default class Item {
|
||||||
static ironShovel = new Item(0).setMaxDamage(MaxUses.IRON).setName("Iron Shovel");
|
static ironShovel = new Item(0).setMaxDamage(MaxUses.IRON).setName("Iron Shovel");
|
||||||
static ironPickaxe = new Item(1).setMaxDamage(MaxUses.IRON).setName("Iron Pickaxe");
|
static ironPickaxe = new Item(1).setMaxDamage(MaxUses.IRON).setName("Iron Pickaxe");
|
||||||
static ironAxe = new Item(2).setMaxDamage(MaxUses.IRON).setName("Iron Axe");
|
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 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");
|
static clay = new Item(81).setName("Clay");
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityLiving } from "../entities/EntityLiving";
|
import EntityLiving from "../entities/EntityLiving";
|
||||||
import { ItemStack } from "../inventories/ItemStack";
|
import ItemStack from "../inventories/ItemStack";
|
||||||
import { IItemBehaviour } from "./IItemBehaviour";
|
import IItemBehaviour from "./IItemBehaviour";
|
||||||
|
|
||||||
export default class ItemBehaviour implements IItemBehaviour {
|
export default class ItemBehaviour implements IItemBehaviour {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue