Plugin category: Fun Suggested name: RandomPowerups What I want: Make item 104 shoot lightning Blaze-rod shoot fireball Feather make you fly for 5 seconds Sugar give you speed II for 10 seconds To use any of those items they must right click the item. Ideas for commands: A command to receive the items. <-- Not really needed Ideas for permissions: Everyone should have them by default. When I'd like it by: 2 days till now. [6/16/2013]
I am already working on this plugin, I am very sorry but if you don't mind, I would prefer for my code not to go to waste.
Well, the first two can be done with current plugins. -Make item 104 shoot lightning -Blaze-rod shoot fireball /powertool Lightning (Essentials) /powertool fireball (Essentials) But if you wanted to give this to all users, then a dev would be needed.
I am three fourths of the way done and only on line 49. I think I could do it in under 70. Right now I have everything but the fly working fine. Would you like the items to be removed from your inventory after you use them? (Pilgrims007's idea) EDIT by Moderator: merged posts, please use the edit button instead of double posting.
This plugin would actually be very simple. My first plugin about 6 months ago was just like it. for an item use this: Code:java @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; if(label.equalsIgnoreCase("FireWand")) { if(player.hasPermission("wand.fire")) { ItemStack fire = new ItemStack(Material.BLAZE_ROD); ItemMeta fm = fire.getItemMeta(); fm.setDisplayName(ChatColor.GOLD + "Fire Wand"); fire.setItemMeta(fm); player.getInventory().addItem(fire); } Code:java @EventHandler public void PlayerInteract(PlayerInteractEvent event) { if ((event.getAction() == Action.RIGHT_CLICK_AIR)) { Player player = event.getPlayer(); if(player.getItemInHand().getItemMeta().getDisplayName().equals(ChatColor.GOLD + "Fire Wand")) { player.launchProjectile(Fireball.class); } } Im sure you could build off of that, not going to provide everything so you can still learn as for this, watch this video and toggle the player's fly mode for 5 seconds EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Plugin has been finished for a bit now. I am waiting for the file to be approved then I will post the link to the plugin page.
When I uploaded it it does not remove anything from the inventory but here is the link, I will post another reply when I update it. http://dev.bukkit.org/bukkit-mods/randompowerups/
You should post on the forum saying you're working on it when you start it. No reason not to, and saying no you can't make it to someone who posted before you is a bit unfair.
I did not really know what else to say. I know I should have posted saying I was working on the plugin but when I saw that reply I was already half way done. The plugin is done now and I will definitely remember to post before I start working on a plugin if I do any more requests. Sorry if I offended anyone.