SFKY
Kızıltaş Madencisi
- Mesajlar
- 667
- En iyi cevaplar
- 0
- Beğeniler
- 296
- Puanları
- 0
Versiyon 1.0 Kaynak Kodları;
config.yml dosyası;
plugin.yml dosyası;
Kod:
package me.Green_Arrow;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.io.File;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;
public class Yeni_Tarifler extends JavaPlugin{
public static final Logger Logcu = Logger.getLogger("Minecraft");
@SuppressWarnings("deprecation")
public void onEnable() {
Logcu.log(Level.INFO, getConfig().getString("Mesajlar.Eklenti_Aktif_Mesaji"));
if (!new File(getDataFolder(), "config.yml").exists()) {
saveDefaultConfig();
}
reloadConfig();
if (getConfig().getBoolean("At_Zirhlari.Demir_At_Zirhi", true)) {
ShapedRecipe Demir_At_Zirhi = new ShapedRecipe(new ItemStack(Material.IRON_BARDING, 1));
Demir_At_Zirhi.shape(new String[]{"* ", "*%*", "***"})
.setIngredient('*', Material.IRON_INGOT)
.setIngredient('%', Material.WOOL, 15);
Bukkit.getServer().addRecipe(Demir_At_Zirhi);
}
if (getConfig().getBoolean("At_Zirhlari.Altin_At_Zirhi", true)) {
ShapedRecipe Altin_At_Zirhi = new ShapedRecipe(new ItemStack(Material.GOLD_BARDING, 1));
Altin_At_Zirhi.shape(new String[]{"* ", "*%*", "***"})
.setIngredient('*', Material.GOLD_INGOT)
.setIngredient('%', Material.WOOL, 14);
Bukkit.getServer().addRecipe(Altin_At_Zirhi);
}
if (getConfig().getBoolean("At_Zirhlari.Elmas_At_Zirhi", true)) {
ShapedRecipe Elmas_At_Zirhi = new ShapedRecipe(new ItemStack(Material.DIAMOND_BARDING, 1));
Elmas_At_Zirhi.shape(new String[]{"* ", "*%*", "***"})
.setIngredient('*', Material.DIAMOND)
.setIngredient('%', Material.WOOL, 11);
Bukkit.getServer().addRecipe(Elmas_At_Zirhi);
}
if (getConfig().getBoolean("Esyalar.Eyer", true)) {
ShapedRecipe Eyer = new ShapedRecipe(new ItemStack(Material.SADDLE, 1));
Eyer.shape(new String[]{"***", "%*%", "+ +"})
.setIngredient('*', Material.LEATHER)
.setIngredient('%', Material.STRING)
.setIngredient('+', Material.IRON_INGOT);
Bukkit.getServer().addRecipe(Eyer);
}
if (getConfig().getBoolean("Esyalar.Isim_Etiketi", true)) {
ShapedRecipe Isim_Etiketi = new ShapedRecipe(new ItemStack(Material.NAME_TAG, 1));
Isim_Etiketi.shape(new String[]{"* ", " % ", " +"})
.setIngredient('*', Material.STRING)
.setIngredient('%', Material.PAPER)
.setIngredient('+', Material.IRON_INGOT);
Bukkit.getServer().addRecipe(Isim_Etiketi);
}
if (getConfig().getBoolean("Esyalar.Cakmak_Tasi", true)) {
ShapedRecipe Cakmak_Tasi = new ShapedRecipe(new ItemStack(Material.FLINT, 1));
Cakmak_Tasi.shape(new String[]{" ", " * ", " "})
.setIngredient('*', Material.GRAVEL);
Bukkit.getServer().addRecipe(Cakmak_Tasi);
}
if (getConfig().getBoolean("Bloklar.Yosunlu_Tas", true)) {
ShapedRecipe Yosunlu_Tas = new ShapedRecipe(new ItemStack(Material.MOSSY_COBBLESTONE,
getConfig().getInt("Yosunlu_Tas_Verme_Miktari")));
Yosunlu_Tas.shape(new String[]{" ", " % ", " * "})
.setIngredient('*', Material.COBBLESTONE)
.setIngredient('%', Material.VINE);
Bukkit.getServer().addRecipe(Yosunlu_Tas);
}
if (getConfig().getBoolean("Zincir_Set.Zincir_Kask", true)) {
ShapedRecipe Zincir_Kask = new ShapedRecipe(new ItemStack(Material.CHAINMAIL_HELMET, 1));
Zincir_Kask.shape(new String[]{"***", "* *", " "})
.setIngredient('*', Material.IRON_FENCE);
Bukkit.getServer().addRecipe(Zincir_Kask);
}
if (getConfig().getBoolean("Zincir_Set.Zincir_Zirh", true)) {
ShapedRecipe Zincir_Zirh = new ShapedRecipe(new ItemStack(Material.CHAINMAIL_CHESTPLATE, 1));
Zincir_Zirh.shape(new String[]{"* *", "***", "***"})
.setIngredient('*', Material.IRON_FENCE);
Bukkit.getServer().addRecipe(Zincir_Zirh);
}
if (getConfig().getBoolean("Zincir_Set.Zincir_Pantolon", true)) {
ShapedRecipe Zincir_Pantolon = new ShapedRecipe(new ItemStack(Material.CHAINMAIL_LEGGINGS, 1));
Zincir_Pantolon.shape(new String[]{"***", "* *", "* *"})
.setIngredient('*', Material.IRON_FENCE);
Bukkit.getServer().addRecipe(Zincir_Pantolon);
}
if (getConfig().getBoolean("Zincir_Set.Zincir_Bot", true)) {
ShapedRecipe Zincir_Bot = new ShapedRecipe(new ItemStack(Material.CHAINMAIL_BOOTS, 1));
Zincir_Bot.shape(new String[]{" ", "* *", "* *"})
.setIngredient('*', Material.IRON_FENCE);
Bukkit.getServer().addRecipe(Zincir_Bot);
}
if (getConfig().getBoolean("Bloklar.Miselyum", true)) {
ShapedRecipe Miselyum = new ShapedRecipe(new ItemStack(Material.MYCEL, 1));
Miselyum.shape(new String[]{" * ", " % ", " + "})
.setIngredient('*', Material.RED_MUSHROOM)
.setIngredient('%', Material.BROWN_MUSHROOM)
.setIngredient('+', Material.DIRT);
Bukkit.getServer().addRecipe(Miselyum);
}
if (getConfig().getBoolean("Yumurtalar.Creeper_Yumurtasi", true)) {
short Creeper_Yumurtasi_Id = 50;
ShapedRecipe Creeper_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Creeper_Yumurtasi_Id));
Creeper_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.SULPHUR)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Creeper_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Iskelet_Yumurtasi", true)) {
short Iskelet_Yumurtasi_Id = 51;
ShapedRecipe Iskelet_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Iskelet_Yumurtasi_Id));
Iskelet_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.ARROW)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Iskelet_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Orumcek_Yumurtasi", true)) {
short Orumcek_Yumurtasi_Id = 52;
ShapedRecipe Orumcek_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Orumcek_Yumurtasi_Id));
Orumcek_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.STRING)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Orumcek_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Zombi_Yumurtasi", true)) {
short Zombi_Yumurtasi_Id = 54;
ShapedRecipe Zombi_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Zombi_Yumurtasi_Id));
Zombi_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.ROTTEN_FLESH)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Zombi_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Balcik_Yumurtasi", true)) {
short Balcik_Yumurtasi_Id = 55;
ShapedRecipe Balcik_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Balcik_Yumurtasi_Id));
Balcik_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.SLIME_BALL)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Balcik_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Ghast_Yumurtasi", true)) {
short Ghast_Yumurtasi_Id = 56;
ShapedRecipe Ghast_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Ghast_Yumurtasi_Id));
Ghast_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.GHAST_TEAR)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Ghast_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Zombi_Domuz_Adam_Yumurtasi", true)) {
short Zombi_Domuz_Adam_Yumurtasi_Id = 57;
ShapedRecipe Zombi_Domuz_Adam_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Zombi_Domuz_Adam_Yumurtasi_Id));
Zombi_Domuz_Adam_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.GOLD_NUGGET)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Zombi_Domuz_Adam_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Enderman_Yumurtasi", true)) {
short Enderman_Yumurtasi_Id = 58;
ShapedRecipe Enderman_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Enderman_Yumurtasi_Id));
Enderman_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.ENDER_PEARL)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Enderman_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Magara_Orumcegi_Yumurtasi", true)) {
short Magara_Orumcegi_Yumurtasi_Id = 59;
ShapedRecipe Magara_Orumcegi_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Magara_Orumcegi_Yumurtasi_Id));
Magara_Orumcegi_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.SPIDER_EYE)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Magara_Orumcegi_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Gumus_Balik_Yumurtasi", true)) {
short Gumus_Balik_Yumurtasi_Id = 60;
ShapedRecipe Gumus_Balik_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Gumus_Balik_Yumurtasi_Id));
Gumus_Balik_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.STONE)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Gumus_Balik_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Blaze_Yumurtasi", true)) {
short Blaze_Yumurtasi_Id = 61;
ShapedRecipe Blaze_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Blaze_Yumurtasi_Id));
Blaze_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.BLAZE_ROD)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Blaze_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Magma_Kupu_Yumurtasi", true)) {
short Magma_Kupu_Yumurtasi_Id = 62;
ShapedRecipe Magma_Kupu_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Magma_Kupu_Yumurtasi_Id));
Magma_Kupu_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.MAGMA_CREAM)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Magma_Kupu_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Yarasa_Yumurtasi", true)) {
short Yarasa_Yumurtasi_Id = 65;
ShapedRecipe Yarasa = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Yarasa_Yumurtasi_Id));
Yarasa.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.COAL)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Yarasa);
}
if (getConfig().getBoolean("Yumurtalar.Cadi_Yumurtasi", true)) {
short Cadi_Yumurtasi_Id = 66;
ShapedRecipe Cadi_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Cadi_Yumurtasi_Id));
Cadi_Yumurtasi.shape(new String[]{"+*+", "*%*", "+*+"})
.setIngredient('*', Material.REDSTONE)
.setIngredient('%', Material.EGG)
.setIngredient('+', Material.GLOWSTONE_DUST);
Bukkit.getServer().addRecipe(Cadi_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Domuz_Yumurtasi", true)) {
short Domuz_Yumurtasi_Id = 90;
ShapedRecipe Domuz_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Domuz_Yumurtasi_Id));
Domuz_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.PORK)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Domuz_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Koyun_Yumurtasi", true)) {
short Koyun_Yumurtasi_Id = 91;
ShapedRecipe Koyun_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Koyun_Yumurtasi_Id));
Koyun_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.WOOL)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Koyun_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Inek_Yumurtasi", true)) {
short Inek_Yumurtasi_Id = 92;
ShapedRecipe Inek_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Inek_Yumurtasi_Id));
Inek_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.RAW_BEEF)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Inek_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Tavuk_Yumurtasi", true)) {
short Tavuk_Yumurtasi_Id = 93;
ShapedRecipe Tavuk_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Tavuk_Yumurtasi_Id));
Tavuk_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.RAW_CHICKEN)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Tavuk_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Ahtapot_Yumurtasi", true)) {
short Ahtapot_Yumurtasi_Id = 94;
ShapedRecipe Ahtapot_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Ahtapot_Yumurtasi_Id));
Ahtapot_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.INK_SACK)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Ahtapot_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Kurt_Yumurtasi", true)) {
short Kurt_Yumurtasi_Id = 95;
ShapedRecipe Kurt_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Kurt_Yumurtasi_Id));
Kurt_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.BONE)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Kurt_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Moontar_Yumurtasi", true)) {
short Moontar_Yumurtasi_Id = 96;
ShapedRecipe Moontar_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Moontar_Yumurtasi_Id));
Moontar_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.RED_MUSHROOM)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Moontar_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Leopar_Yumurtasi", true)) {
short Leopar_Yumurtasi_Id = 98;
ShapedRecipe Leopar_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Leopar_Yumurtasi_Id));
Leopar_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.RAW_FISH)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Leopar_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.At_Yumurtasi", true)) {
short At_Yumurtasi_Id = 100;
ShapedRecipe At_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, At_Yumurtasi_Id));
At_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.LEATHER)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(At_Yumurtasi);
}
if (getConfig().getBoolean("Yumurtalar.Koylu_Yumurtasi", true)) {
short Koylu_Yumurtasi_Id = 120;
ShapedRecipe Koylu_Yumurtasi = new ShapedRecipe(new ItemStack(Material.MONSTER_EGG, 1, Koylu_Yumurtasi_Id));
Koylu_Yumurtasi.shape(new String[]{"***", "*%*", "***"})
.setIngredient('*', Material.EMERALD)
.setIngredient('%', Material.EGG);
Bukkit.getServer().addRecipe(Koylu_Yumurtasi);
}
}
public void onDisable(){
Logcu.log(Level.INFO, getConfig().getString("Mesajlar.Eklenti_Pasif_Mesaji"));
Bukkit.getServer().clearRecipes();
}
}
config.yml dosyası;
Kod:
# Asagidaki Tariflerden Hangisini Devre Disi Birakmak
# Istiyorsaniz Karsisindaki 'True' - 'False' Olarak Degistirin.
# Oneri, Bug ve Hata Bildirimi Icin: http://minecraft-turkey.tk/iletisim Adresinden Lutfen Bildirin.
# Kodlayan Minecraft Turkiye / GreenArrow, Emrah4434
# Versiyon: 1.0
###############
# +---------+ #
# | Bloklar | #
# +---------+ #
###############
Bloklar:
Miselyum: true
Yosunlu_Tas: true
Yosunlu_Tas_Verme_Miktari: 1
###############
# +---------+ #
# | Esyalar | #
# +---------+ #
###############
Esyalar:
Eyer: true
Isim_Etiketi: true
Cakmak_Tasi: true
###################
# +-------------+ #
# | At Zirhlari | #
# +-------------+ #
###################
At_Zirhlari:
Demir_At_Zirhi: true
Altin_At_Zirhi: true
Elmas_At_Zirhi: true
##################
# +------------+ #
# | Zincir Set | #
# +------------+ #
##################
Zincir_Set:
Zincir_Kask: true
Zincir_Zirh: true
Zincir_Pantolon: true
Zincir_Bot: true
##################
# +------------+ #
# | Yumurtalar | #
# +------------+ #
##################
Yumurtalar:
Creeper_Yumurtasi: true
Iskelet_Yumurtasi: true
Orumcek_Yumurtasi: true
Zombi_Yumurtasi: true
Balcik_Yumurtasi: true
Ghast_Yumurtasi: true
Zombi_Domuz_Adam_Yumurtasi: true
Enderman_Yumurtasi: true
Magara_Orumcegi_Yumurtasi: true
Gumus_Balik_Yumurtasi: true
Blaze_Yumurtasi: true
Magma_Kupu_Yumurtasi: true
Yarasa_Yumurtasi: true
Cadi_Yumurtasi: true
Domuz_Yumurtasi: true
Koyun_Yumurtasi: true
Inek_Yumurtasi: true
Tavuk_Yumurtasi: true
Ahtapot_Yumurtasi: true
Kurt_Yumurtasi: true
Moontar_Yumurtasi: true
Leopar_Yumurtasi: true
At_Yumurtasi: true
Koylu_Yumurtasi: true
################
# +----------+ #
# | Mesajlar | #
# +----------+ #
################
Mesajlar:
Eklenti_Aktif_Mesaji: Eklenti Aktif Edildi!
Eklenti_Pasif_Mesaji: Eklenti Pasif Durumda!
plugin.yml dosyası;
Kod:
name: Yeni_Tarifler
main: me.Green_Arrow.Yeni_Tarifler
version: 1.0
description: Yeni Tarifler
authors: [Green_Arrow, Emrah4434]