Fixed dye colors being displayed incorrectly. Added high efficiency

recipes for coloring wool (8 white wool around dye). Vanilla recipes for
coloring wool disabled.
master_event
Nonoriri 11 years ago
parent 8ccb4c4c26
commit 5a9dd42345
  1. 14
      BankEconomyMod/src/me/kaZep/Base/Main.java
  2. 12
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -23,6 +23,7 @@ import java.text.*;
import me.kaZep.Commands.JobsDataInfo; import me.kaZep.Commands.JobsDataInfo;
import me.kaZep.Commands.commandBankEconomy; import me.kaZep.Commands.commandBankEconomy;
import net.milkbowl.vault.economy.Economy; import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Chunk; import org.bukkit.Chunk;
@ -64,6 +65,7 @@ import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.SkullMeta; import org.bukkit.inventory.meta.SkullMeta;
import org.bukkit.map.MapRenderer; import org.bukkit.map.MapRenderer;
import org.bukkit.map.MapView; import org.bukkit.map.MapView;
import org.bukkit.material.MaterialData;
import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.FixedMetadataValue;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginDescriptionFile;
@ -431,6 +433,18 @@ public class Main extends JavaPlugin
fireproof_wood_slab.setIngredient('b', Material.WOOD_STEP); fireproof_wood_slab.setIngredient('b', Material.WOOD_STEP);
Bukkit.addRecipe(fireproof_wood_slab); Bukkit.addRecipe(fireproof_wood_slab);
// Add high efficiency recipes for wool
// White
ShapedRecipe woolRecipe;
for (int i = 0; i < 16; i++) {
woolRecipe = new ShapedRecipe(new ItemStack(Material.WOOL, 8, (short) i));
woolRecipe.shape("aaa","aba", "aaa");
woolRecipe.setIngredient('a', Material.WOOL);
woolRecipe.setIngredient('b', new MaterialData(Material.INK_SACK, (byte) (15 - i)));
Bukkit.addRecipe(woolRecipe);
}
// Add Recipes for Item cube crafting. // Add Recipes for Item cube crafting.
ItemStack temp = new ItemStack(Material.CHEST); ItemStack temp = new ItemStack(Material.CHEST);
ItemMeta tempmeta = temp.getItemMeta(); ItemMeta tempmeta = temp.getItemMeta();

@ -4066,6 +4066,12 @@ implements Listener
// Disable melon crafting recipe // Disable melon crafting recipe
if (result.getResult().getType()==Material.MELON_BLOCK) { if (result.getResult().getType()==Material.MELON_BLOCK) {
result.setResult(new ItemStack(Material.AIR)); result.setResult(new ItemStack(Material.AIR));
return;
}
if (result.getResult().getType()==Material.WOOL && result.getResult().getAmount() == 1) {
result.setResult(new ItemStack(Material.AIR));
return;
} }
// Increase stairs recipe efficiency // Increase stairs recipe efficiency
@ -12898,13 +12904,13 @@ implements Listener
color = "Light Blue"; color = "Light Blue";
}break; }break;
case 13:{ case 13:{
color = "Green"; color = "Magenta";
}break; }break;
case 14:{ case 14:{
color = "Red"; color = "Orange";
}break; }break;
case 15:{ case 15:{
color = "Black"; color = "White";
}break; }break;
} }
} else { } else {

Loading…
Cancel
Save