mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
Allow chiseling between oredictionaried copper blocks.
In prep for adding blocktypes for copper.
This commit is contained in:
1 parent
3bd4a62e72
commit
70ec42f12c
1 file changed
+16
@@ -1,5 +1,6 @@
|
||||
package com.cricketcraft.chisel;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -522,6 +523,21 @@ public enum Features {
|
||||
}
|
||||
},
|
||||
|
||||
COPPER
|
||||
{
|
||||
@Override
|
||||
void addBlocks() {
|
||||
ArrayList<ItemStack> oreBlocks = OreDictionary.getOres("blockCopper");
|
||||
//This if can probably be done at feature level, but I don't know how to do that...
|
||||
if(oreBlocks != OreDictionary.EMPTY_LIST)
|
||||
{
|
||||
for(int i = 0; i < oreBlocks.size(); i++)
|
||||
Carving.chisel.addVariation("copperblock", Block.getBlockFromItem(oreBlocks.get(i).getItem()), oreBlocks.get(i).getItemDamage(), i);
|
||||
Carving.chisel.registerOre("copperblock", "copperblock");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
DIAMOND_BLOCK {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user