Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.andrew.Test;
- import java.util.ArrayList;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.Material;
- import org.bukkit.enchantments.Enchantment;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.ShapedRecipe;
- import org.bukkit.inventory.meta.ItemMeta;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Main extends JavaPlugin
- {
- @Override
- public void onEnable()
- {
- ItemStack tripwirehook = new ItemStack(Material.TRIPWIRE_HOOK, 1);
- ItemMeta meta = tripwirehook.getItemMeta();
- meta.setDisplayName(ChatColor.RED + "Vote Crate Key");
- ArrayList<String> lore = new ArrayList<String>();
- lore.add(ChatColor.GRAY + "Click the" ChatColor.GREEN + "Vote Crate treasure chest" ChatColor.GRAY + "to use this key");
- meta.setLore(lore);
- tripwirehook.setItemMeta(meta);
- ShapedRecipe Votekey = new ShapedRecipe(tripwirehook);
- Votekey.shape(new String[] { " s ", " s ", " w " }).setIngredient('w', Material.WHEAT).setIngredient('s', Material.STICK);
- Bukkit.getServer().addRecipe(Votekey);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement