Coloured Sand, as requested. Closes #83

This commit is contained in:
Arona Jones committed 2015-01-04 18:19:38 +00:00
1 parent 3522e281d7
commit 7be5379b59
20 files changed
+204

No files matched your search

@@ -2,6 +2,7 @@ package com.cricketcraft.chisel;
import com.cricketcraft.chisel.init.ModBlocks;
import com.cricketcraft.chisel.init.ModItems;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
@@ -154,5 +155,16 @@ public class Crafting {
{
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.scorching, 8, 0), new Object[]{"xxx", "xyx", "xxx", 'x', "stone", 'y', Items.blaze_rod}));
}
if(Configurations.featureEnabled("coloredSand"))
{
for(int x = 0; x < 16; x++)
{
String[] dyes = { "Black", "Red", "Green", "Brown", "Blue",
"Purple", "Cyan", "LightGray", "Gray", "Pink", "Lime",
"Yellow", "LightBlue", "Magenta", "Orange", "White" };
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.coloredSand, 1, x), new Object[]{"sss", "sds", "sss", 's', Blocks.sand, 'd', "dye" + dyes[x]}));
GameRegistry.addSmelting(new ItemStack(ModBlocks.coloredSand, 1, x), new ItemStack(Blocks.stained_glass, 1, x), 0.3F);
}
}
}
}