I bet someone can write this plugin super quick, all I want is a plugin which prevents the dropping of diamonds when broke with anything including enchanted picks with fortune/silktouch. I want this plugin wrote since I use a different plugin to give players different items when they break diamonds in the first place. Please make this plugin if it will not interfere with another plugin triggering when the player breaks diamonds, so perhaps just make the diamonds despawn after 1 tick or something?
LaughNgamez So you want people to be able to break diamond blocks but it shouldn't drop any diamonds or do you want the diamond block to be unbreakable and what other plugins shouldn't this plugin interfere with kthxbai
I want diamond ore to be able to be broken but not to drop anything. dentych think it would be possible for you to write this? Diamond ore not dropping diamonds when mined with any pick, I also use a plugin called magicspells to trigger and give the player different items when they mine diamond, it triggers when they break the block. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Hello sir, With the way i understood your request, ive made a plugin that cancels a breaking of Diamond Ore, and by doing so it doesent drop anything. So if that is what u wanted, here is the link for it. Please note that i am a newbie developer, still making my way through plugin development, but im trying my best at it http://www.speedyshare.com/pende/NoDropDiamond.jar
Thanks a bunch, I'll make sure to test it out ASAP! theViTALiTY Seems it causes the other plugin not to trigger :/ Normally I'd have the plugin trigger to drop a few gold & iron ingots on the ground when a diamond is broken. Now with the plugin it does not work, I've tested removing the antidiamond plugin and it seems to be stopping it from triggering. Would it be possible for the plugin to stop the diamond dropping without interfering with the other plugins trigger? My ideal goal is to be able to have diamonds not drop and a few gold & iron ingots drop instead. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
LaughNgamez http://www.speedyshare.com/Du9Pu/NoDropDiamond.jar Here, try this one now, and i hope u dont mind it doesent work at first, still getting a hang of coding and everything
theViTALiTY Just tried it out again, and this version also stops the other plugin triggering. Maybe you could just make the diamond despawn like 1 tick after it spawns so players can't pick it up and then it won't interfere with the other plugin? Also no problem about it not working, just the fact you're trying is really nice
LaughNgamez Do you mind sending me on private message what plugin are you using to manage drops? So maybe i can figure out something instead going blindly
timtower Well, since u got 11 plugins coded, i guess ur the guy who i can talk to and hope u can help us with this little problem Here is the code i used for plugin he wanted: show code hide code Code:java package me.ViTALiTY.NoDropDiamond; import org.bukkit.Bukkit;import org.bukkit.Material;import org.bukkit.event.EventHandler;import org.bukkit.event.EventPriority;import org.bukkit.event.Listener;import org.bukkit.event.block.BlockBreakEvent;import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin implements Listener { public void onEnable() {Bukkit.getServer().getPluginManager().registerEvents(this, this);} @EventHandler (priority = EventPriority.LOW)public void onBlockBreak(BlockBreakEvent bbe) {Material block = bbe.getBlock().getType(); if(block == Material.DIAMOND_ORE) {// bbe.setCancelled(true);bbe.getBlock().setType(Material.AIR); }} } At first i cancelled event, then i removed the cancellation, and just replaced the broken diamond ore with air. Now the plugin he uses to manage drops is MagicSpells, and i asked him to send me complete package of MagicSpells with his configs, but when i loaded it up on my server, even without the plugin i made, MagicSpells give me nothing from breaking diamond ore. These are his 2 spells that are supposed to manage diamond ore drops: show config hide config Code: Diamond: spell-class: ".instant.ConjureSpell" name: Diamond cooldown: 0 can-cast-by-command: false can-cast-with-item: false calculate-drops-individually: true auto-equip: false items: - 265 3-5 100% - 266 2-4 100% DiamondBreak: spell-class: ".PassiveSpell" triggers: - blockbreak 56 chance: 100 cooldown: 0 spells: - Diamond
Sounds like something the plugin developer has to fix himself. I don't understand why he'd code the plugin such that other items (gold and iron ingots) drop from diamond ores but still the default diamond(s) drop anyways. Asking someone to create another plugin just to fix a development flaw with the other is not a good idea.