mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-18 03:35:07 +00:00
Coloured Sand, as requested. Closes #83
This commit is contained in:
1 parent
b07ecc3ab7
commit
dd178d0169
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user