Added saltpeter and sulfur, used for gunpowder creation and will be used for other things.

This commit is contained in:
WayofTime 2016-05-06 17:51:39 -04:00
parent ec2ddbd427
commit d79be6d312
6 changed files with 20 additions and 0 deletions

View file

@ -46,6 +46,8 @@ public class ItemComponent extends Item implements IVariantProvider
public static final String SAND_GOLD = "goldSand"; public static final String SAND_GOLD = "goldSand";
public static final String SAND_COAL = "coalSand"; public static final String SAND_COAL = "coalSand";
public static final String PLANT_OIL = "plantOil"; public static final String PLANT_OIL = "plantOil";
public static final String SULFUR = "sulfur";
public static final String SALTPETER = "saltpeter";
public ItemComponent() public ItemComponent()
{ {
@ -83,6 +85,8 @@ public class ItemComponent extends Item implements IVariantProvider
names.add(20, SAND_GOLD); names.add(20, SAND_GOLD);
names.add(21, SAND_COAL); names.add(21, SAND_COAL);
names.add(22, PLANT_OIL); names.add(22, PLANT_OIL);
names.add(23, SULFUR);
names.add(24, SALTPETER);
} }
@Override @Override

View file

@ -291,6 +291,10 @@ public class ModRecipes
AlchemyTableRecipeRegistry.registerRecipe(new ItemStack(Blocks.CLAY, 5), 200, 200, 1, Items.WATER_BUCKET, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY); AlchemyTableRecipeRegistry.registerRecipe(new ItemStack(Blocks.CLAY, 5), 200, 200, 1, Items.WATER_BUCKET, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY, Blocks.HARDENED_CLAY);
AlchemyTableRecipeRegistry.registerRecipe(new ItemStack(Blocks.OBSIDIAN), 50, 50, 1, Items.WATER_BUCKET, Items.LAVA_BUCKET); AlchemyTableRecipeRegistry.registerRecipe(new ItemStack(Blocks.OBSIDIAN), 50, 50, 1, Items.WATER_BUCKET, Items.LAVA_BUCKET);
AlchemyTableRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.SULFUR, 8), 0, 100, 0, Items.LAVA_BUCKET);
AlchemyTableRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.SALTPETER, 4), 0, 100, 0, ItemComponent.getStack(ItemComponent.PLANT_OIL), ItemComponent.getStack(ItemComponent.PLANT_OIL), "dustCoal");
AlchemyTableRecipeRegistry.registerRecipe(new ItemStack(Items.GUNPOWDER, 3), 0, 100, 0, ItemComponent.getStack(ItemComponent.SALTPETER), ItemComponent.getStack(ItemComponent.SULFUR), new ItemStack(Items.COAL, 1, 1));
AlchemyTableRecipeRegistry.registerRecipe(new AlchemyTableCustomRecipe(ItemComponent.getStack(ItemComponent.SAND_COAL, 4), 100, 100, 1, new ItemStack(Items.COAL, 1, 0), new ItemStack(Items.COAL, 1, 0), Items.FLINT)); AlchemyTableRecipeRegistry.registerRecipe(new AlchemyTableCustomRecipe(ItemComponent.getStack(ItemComponent.SAND_COAL, 4), 100, 100, 1, new ItemStack(Items.COAL, 1, 0), new ItemStack(Items.COAL, 1, 0), Items.FLINT));
AlchemyTableRecipeRegistry.registerRecipe(ItemCuttingFluid.getStack(ItemCuttingFluid.BASIC), 1000, 400, 1, "dustCoal", Items.GUNPOWDER, Items.REDSTONE, Items.SUGAR, ItemComponent.getStack(ItemComponent.PLANT_OIL), new ItemStack(Items.POTIONITEM)); AlchemyTableRecipeRegistry.registerRecipe(ItemCuttingFluid.getStack(ItemCuttingFluid.BASIC), 1000, 400, 1, "dustCoal", Items.GUNPOWDER, Items.REDSTONE, Items.SUGAR, ItemComponent.getStack(ItemComponent.PLANT_OIL), new ItemStack(Items.POTIONITEM));

View file

@ -120,6 +120,16 @@
"textures": { "textures": {
"layer0": "bloodmagic:items/PlantOil" "layer0": "bloodmagic:items/PlantOil"
} }
},
"sulfur": {
"textures": {
"layer0": "bloodmagic:items/Sulfur"
}
},
"saltpeter": {
"textures": {
"layer0": "bloodmagic:items/Saltpeter"
}
} }
} }
} }

View file

@ -91,6 +91,8 @@ item.BloodMagic.baseComponent.ironSand.name=Iron Sand
item.BloodMagic.baseComponent.goldSand.name=Gold Sand item.BloodMagic.baseComponent.goldSand.name=Gold Sand
item.BloodMagic.baseComponent.coalSand.name=Coal Sand item.BloodMagic.baseComponent.coalSand.name=Coal Sand
item.BloodMagic.baseComponent.plantOil.name=Plant Oil item.BloodMagic.baseComponent.plantOil.name=Plant Oil
item.BloodMagic.baseComponent.sulfur.name=Sulfur
item.BloodMagic.baseComponent.saltpeter.name=Saltpeter
item.BloodMagic.cuttingFluid.basicCuttingFluid.name=Basic Cutting Fluid item.BloodMagic.cuttingFluid.basicCuttingFluid.name=Basic Cutting Fluid
item.BloodMagic.cuttingFluid.explosive.name=Explosive Powder item.BloodMagic.cuttingFluid.explosive.name=Explosive Powder

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B