further cheat improvements, change some tabs
This commit is contained in:
parent
7e9673dc25
commit
0c7459d371
10 changed files with 18 additions and 12 deletions
|
@ -226,7 +226,7 @@ public abstract class ItemRegistry {
|
|||
register("bow", (new ItemBow()).setDisplay("Bogen"));
|
||||
register("boltgun", (new ItemBoltgun()).setDisplay("Bolter"));
|
||||
register("bolt", (new ItemAmmo(5, 1.0f, 128)).setDisplay("Bolter-Munition"));
|
||||
register("arrow", (new ItemArrow()).setDisplay("Pfeil").setTab(CheatTab.COMBAT).setMaxAmount(128));
|
||||
register("arrow", (new ItemArrow()).setDisplay("Pfeil").setTab(CheatTab.WEAPONS).setMaxAmount(128));
|
||||
Item coal = (new Item()).setDisplay("Kohle").setTab(CheatTab.METALS);
|
||||
register("coal", coal);
|
||||
register("charcoal", (new Item()).setDisplay("Holzkohle").setTab(CheatTab.METALS));
|
||||
|
|
|
@ -77,11 +77,16 @@ public enum CheatTab {
|
|||
return Items.water_bucket;
|
||||
}
|
||||
},
|
||||
COMBAT("Kampf", false) {
|
||||
WEAPONS("Waffen", false) {
|
||||
protected Item getIconItem() {
|
||||
return Items.bow;
|
||||
}
|
||||
},
|
||||
ARMOR("Rüstung", false) {
|
||||
protected Item getIconItem() {
|
||||
return Items.iron_chestplate;
|
||||
}
|
||||
},
|
||||
MAGIC("Tränke & Verzauberungen", false) {
|
||||
protected Item getIconItem() {
|
||||
return Items.potion;
|
||||
|
|
|
@ -10,7 +10,7 @@ public class ItemAmmo extends ItemMagnetic {
|
|||
|
||||
public ItemAmmo(int damage, float explosion, int stack) {
|
||||
this.setMaxAmount(stack);
|
||||
this.setTab(CheatTab.COMBAT);
|
||||
this.setTab(CheatTab.WEAPONS);
|
||||
this.damage = damage;
|
||||
this.explosion = explosion;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ public class ItemArmor extends Item
|
|||
// this.renderIndex = renderIndex;
|
||||
this.damageReduceAmount = material.getDamageReduction(armorType);
|
||||
this.setMaxDamage(material.getDurability(armorType));
|
||||
this.setTab(CheatTab.COMBAT);
|
||||
this.setTab(CheatTab.ARMOR);
|
||||
}
|
||||
|
||||
public int getColorFromItemStack(ItemStack stack, int renderPass)
|
||||
|
|
|
@ -18,7 +18,7 @@ public class ItemBow extends Item
|
|||
public ItemBow()
|
||||
{
|
||||
this.setMaxDamage(384);
|
||||
this.setTab(CheatTab.COMBAT);
|
||||
this.setTab(CheatTab.WEAPONS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ public abstract class ItemGunBase extends Item
|
|||
public ItemGunBase(int durability)
|
||||
{
|
||||
this.setMaxDamage(durability);
|
||||
this.setTab(CheatTab.COMBAT);
|
||||
this.setTab(CheatTab.WEAPONS);
|
||||
}
|
||||
|
||||
public ItemAction getItemPosition(ItemStack stack)
|
||||
|
|
|
@ -12,7 +12,7 @@ public class ItemHorseArmor extends Item {
|
|||
this.material = material;
|
||||
this.texture = texture;
|
||||
this.setMaxAmount(1);
|
||||
this.setTab(CheatTab.COMBAT);
|
||||
this.setTab(CheatTab.ARMOR);
|
||||
}
|
||||
|
||||
public boolean isMagnetic() {
|
||||
|
|
|
@ -23,7 +23,7 @@ public class ItemSword extends Item
|
|||
{
|
||||
this.material = material;
|
||||
this.setMaxDamage(material.getDurability());
|
||||
this.setTab(CheatTab.COMBAT);
|
||||
this.setTab(CheatTab.WEAPONS);
|
||||
this.attackDamage = 4 + material.getDamage();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue