Skip to content

Commit

Permalink
Added smelting results for iron/gold equipment and nuggets.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Sep 4, 2017
1 parent e744490 commit 46527cf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/java/com/sk89q/craftbook/util/ItemUtil.java
Expand Up @@ -485,6 +485,8 @@ public static ItemStack getSmeletedResult(ItemStack item) {
return new ItemStack(Material.HARD_CLAY);
case QUARTZ_ORE:
return new ItemStack(Material.QUARTZ);
case SMOOTH_BRICK:
return new ItemStack(Material.SMOOTH_BRICK, 1, (short) 2);
case SPONGE:
if (item.getData().getData() == 0)
return null;
Expand Down Expand Up @@ -524,6 +526,32 @@ public static ItemStack getSmeletedResult(ItemStack item) {
case 15:
return new ItemStack(Material.BLACK_GLAZED_TERRACOTTA);
}
case IRON_SWORD:
case IRON_PICKAXE:
case IRON_AXE:
case IRON_SPADE:
case IRON_HOE:
case CHAINMAIL_HELMET:
case CHAINMAIL_CHESTPLATE:
case CHAINMAIL_LEGGINGS:
case CHAINMAIL_BOOTS:
case IRON_HELMET:
case IRON_CHESTPLATE:
case IRON_LEGGINGS:
case IRON_BOOTS:
case IRON_BARDING:
return new ItemStack(Material.IRON_NUGGET);
case GOLD_SWORD:
case GOLD_PICKAXE:
case GOLD_AXE:
case GOLD_SPADE:
case GOLD_HOE:
case GOLD_HELMET:
case GOLD_CHESTPLATE:
case GOLD_LEGGINGS:
case GOLD_BOOTS:
case GOLD_BARDING:
return new ItemStack(Material.GOLD_NUGGET);
default:
return null;
}
Expand Down

0 comments on commit 46527cf

Please sign in to comment.