testSet.add(Items.furnace_minecart);
// MiscTools.addShapelessRecipe(new ItemStack(Item.coal, 20), Block.dirt);
Iterator it = CraftingManager.getInstance().getRecipeList().iterator();
while (it.hasNext()) {
IRecipe r = (IRecipe) it.next();
ItemStack output = null;
try {
output = r.getRecipeOutput();
} catch (Exception ex) {
}
if (output != null)
if (testSet.contains(output.getItem()))
it.remove();
}
// Items
replaceVanillaCart(EnumCart.BASIC, Items.minecart, "MinecartRideable", 42);
replaceVanillaCart(EnumCart.CHEST, Items.chest_minecart, "MinecartChest", 43);
replaceVanillaCart(EnumCart.FURNACE, Items.furnace_minecart, "MinecartFurnace", 44);
replaceVanillaCart(EnumCart.TNT, Items.tnt_minecart, "MinecartTNT", 45);
replaceVanillaCart(EnumCart.HOPPER, Items.hopper_minecart, "MinecartHopper", 46);
CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.chest_minecart);
CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.furnace_minecart);
CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.tnt_minecart);
CraftingPlugin.addShapelessRecipe(new ItemStack(Items.minecart), Items.hopper_minecart);
LootPlugin.addLootRailway(EnumCart.BASIC.getCartItem(), 1, 1, "cart.basic");
LootPlugin.addLootRailway(EnumCart.CHEST.getCartItem(), 1, 1, "cart.chest");
LootPlugin.addLootRailway(EnumCart.TNT.getCartItem(), 1, 3, "cart.tnt");
LootPlugin.addLootRailway(new ItemStack(Blocks.rail), 8, 32, "track.basic");
LootPlugin.addLootRailway(EnumCart.HOPPER.getCartItem(), 1, 1, "cart.hopper");
Blocks.rail.setHarvestLevel("pickaxe", 0);
Blocks.rail.setHarvestLevel("crowbar", 0);
Blocks.golden_rail.setHarvestLevel("pickaxe", 0);
Blocks.golden_rail.setHarvestLevel("crowbar", 0);
Blocks.detector_rail.setHarvestLevel("pickaxe", 0);
Blocks.detector_rail.setHarvestLevel("crowbar", 0);
Blocks.activator_rail.setHarvestLevel("pickaxe", 0);
Blocks.activator_rail.setHarvestLevel("crowbar", 0);
// Define Recipies
if (RailcraftConfig.getRecipeConfig("railcraft.cart.bronze")) {
IRecipe recipe = new ShapedOreRecipe(new ItemStack(Items.minecart), false, new Object[]{
"I I",
"III",
'I', "ingotBronze",});
CraftingManager.getInstance().getRecipeList().add(recipe);
}
if (RailcraftConfig.getRecipeConfig("railcraft.cart.steel")) {
IRecipe recipe = new ShapedOreRecipe(new ItemStack(Items.minecart, 2), false, new Object[]{
"I I",
"III",
'I', "ingotSteel",});
CraftingManager.getInstance().getRecipeList().add(recipe);
}