Added dust->ingot<->block recipes for several materials. Closes #1356
This commit is contained in:
parent
1581ad439c
commit
a419189926
5 changed files with 21 additions and 9 deletions
|
@ -50,7 +50,7 @@ import java.util.Random;
|
||||||
public class BlockStorage extends BaseBlock {
|
public class BlockStorage extends BaseBlock {
|
||||||
|
|
||||||
public static final String[] types = new String[] { "silver", "aluminum", "titanium", "chrome", "steel", "brass",
|
public static final String[] types = new String[] { "silver", "aluminum", "titanium", "chrome", "steel", "brass",
|
||||||
"lead", "electrum", "zinc", "platinum", "tungsten", "nickel", "invar", "iridium" };
|
"lead", "electrum", "zinc", "platinum", "tungsten", "nickel", "invar", "iridium", "bronze" };
|
||||||
public static final PropertyString TYPE = new PropertyString("type", types);
|
public static final PropertyString TYPE = new PropertyString("type", types);
|
||||||
private static final List<String> typesList = Lists.newArrayList(ArrayUtils.arrayToLowercase(types));
|
private static final List<String> typesList = Lists.newArrayList(ArrayUtils.arrayToLowercase(types));
|
||||||
|
|
||||||
|
|
|
@ -295,22 +295,22 @@ public class CraftingTableRecipes extends RecipeMethods {
|
||||||
static void registerCompressionRecipes() {
|
static void registerCompressionRecipes() {
|
||||||
for (String name : BlockStorage.types) {
|
for (String name : BlockStorage.types) {
|
||||||
if (OreUtil.hasIngot(name)) {
|
if (OreUtil.hasIngot(name)) {
|
||||||
registerShaped(BlockStorage.getStorageBlockByName(name), "AAA", "AAA", "AAA", 'A',
|
registerShaped(BlockStorage.getStorageBlockByName(name), "AAA", "AAA", "AAA", 'A', "ingot" + StringUtils.toFirstCapital(name));
|
||||||
"ingot" + StringUtils.toFirstCapital(name));
|
registerShapeless(getMaterial(name, 9, Type.INGOT), BlockStorage.getStorageBlockByName(name));
|
||||||
} else if (OreUtil.hasGem(name)) {
|
} else if (OreUtil.hasGem(name)) {
|
||||||
registerShaped(BlockStorage.getStorageBlockByName(name), "AAA", "AAA", "AAA", 'A',
|
registerShaped(BlockStorage.getStorageBlockByName(name), "AAA", "AAA", "AAA", 'A', "gem" + StringUtils.toFirstCapital(name));
|
||||||
"gem" + StringUtils.toFirstCapital(name));
|
registerShapeless(getMaterial(name, 9, Type.GEM), BlockStorage.getStorageBlockByName(name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String block : BlockStorage2.types){
|
for (String block : BlockStorage2.types){
|
||||||
block = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, block);
|
block = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, block);
|
||||||
if (OreUtil.hasIngot(block)) {
|
if (OreUtil.hasIngot(block)) {
|
||||||
registerShaped(BlockStorage2.getStorageBlockByName(block), "AAA", "AAA", "AAA", 'A',
|
registerShaped(BlockStorage2.getStorageBlockByName(block), "AAA", "AAA", "AAA", 'A', "ingot" + StringUtils.toFirstCapital(block));
|
||||||
"ingot" + StringUtils.toFirstCapital(block));
|
registerShapeless(getMaterial(block, 9, Type.INGOT), BlockStorage2.getStorageBlockByName(block));
|
||||||
} else if (OreUtil.hasGem(block)) {
|
} else if (OreUtil.hasGem(block)) {
|
||||||
registerShaped(BlockStorage2.getStorageBlockByName(block), "AAA", "AAA", "AAA", 'A',
|
registerShaped(BlockStorage2.getStorageBlockByName(block), "AAA", "AAA", "AAA", 'A', "gem" + StringUtils.toFirstCapital(block));
|
||||||
"gem" + StringUtils.toFirstCapital(block));
|
registerShapeless(getMaterial(block, 9, Type.GEM), BlockStorage2.getStorageBlockByName(block));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,12 @@ public class SmeltingRecipes extends RecipeMethods {
|
||||||
register(getMaterial("nickel", Type.DUST), getMaterial("nickel", Type.INGOT));
|
register(getMaterial("nickel", Type.DUST), getMaterial("nickel", Type.INGOT));
|
||||||
register(getMaterial("platinum", Type.DUST), getMaterial("platinum", Type.INGOT));
|
register(getMaterial("platinum", Type.DUST), getMaterial("platinum", Type.INGOT));
|
||||||
register(getMaterial("zinc", Type.DUST), getMaterial("zinc", Type.INGOT));
|
register(getMaterial("zinc", Type.DUST), getMaterial("zinc", Type.INGOT));
|
||||||
|
register(getMaterial("brass", Type.DUST), getMaterial("brass", Type.INGOT));
|
||||||
|
register(getMaterial("electrum", Type.DUST), getMaterial("electrum", Type.INGOT));
|
||||||
|
register(getMaterial("invar", Type.DUST), getMaterial("invar", Type.INGOT));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void register(ItemStack input, ItemStack output) {
|
static void register(ItemStack input, ItemStack output) {
|
||||||
|
|
|
@ -134,6 +134,11 @@
|
||||||
"textures": {
|
"textures": {
|
||||||
"all": "techreborn:blocks/storage/refinediron_block"
|
"all": "techreborn:blocks/storage/refinediron_block"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"bronze": {
|
||||||
|
"textures": {
|
||||||
|
"all": "techreborn:blocks/storage/bronze_block"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,6 +127,7 @@ tile.techreborn:storage.nickel.name=Block of Nickel
|
||||||
tile.techreborn:storage.invar.name=Block of Invar
|
tile.techreborn:storage.invar.name=Block of Invar
|
||||||
tile.techreborn:storage.osmium.name=Block of Osmium
|
tile.techreborn:storage.osmium.name=Block of Osmium
|
||||||
tile.techreborn:storage.iridium.name=Block of Iridium
|
tile.techreborn:storage.iridium.name=Block of Iridium
|
||||||
|
tile.techreborn:storage.bronze.name=Block of Bronze
|
||||||
tile.techreborn:storage2.tungstensteel.name=Block of Tungstensteel
|
tile.techreborn:storage2.tungstensteel.name=Block of Tungstensteel
|
||||||
tile.techreborn:storage2.lodestone.name=Block of Lodestone
|
tile.techreborn:storage2.lodestone.name=Block of Lodestone
|
||||||
tile.techreborn:storage2.tellurium.name=Block of Tellurium
|
tile.techreborn:storage2.tellurium.name=Block of Tellurium
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue