[INACTIVE][ADMN/MECH/FUN/MISC] DropEdit v1.0 - Modify a block's drop when it's destroyed! [1337]

Discussion in 'Inactive/Unsupported Plugins' started by T145, Nov 21, 2011.

  1. Offline

    T145

    DropEdit

    With this plugin, made by myself, you can receive a block as a drop from a destroyed one that isn't normally received, such as glass, leaves, stone, and glowstone, each being an individual jar file. There are will be configuration files, commands, but currently has just permissions nodes!


    Download Here:
    <Edit by Moderator: Redacted mediafire url>
    **NOTICE: I apologize for the download being invalid, but I'm in the process of; a) moving all of my projects to DropBox, and b) currently in the development phase of expounding upon my original ideas. Please be patient! Thank you! :)

    Change Log:
    v 1.0 - Initial release

    Features:
    - Receive a glowstone block in return for every glowstone block destroyed instead of glowstone dust
    - Receive a glass block in return for every glass block destroyed instead of nothing
    - Receive a leaf block in return for every leaf block destroyed instead of nothing
    - Compatible w/ my Spawnblock plugin collection!
    - Permissions nodes for all of them (op by default; ex. for a node: glowstone.drop)!

    Known Issues/Bugs:
    - When Stone Mode is enabled, whenever a player destroys a stone block, a cobblestone and stone block are returned
    - Leaf blocks look awkward, but that may just be Minecraft! :)
     
    Last edited by a moderator: Nov 12, 2016
  2. Offline

    Windwaker

    Everything looks good except
    • you're missing a valid version number in your title (ie. "[ADMIN/MECH/FUN/MISC] Undroppable Droppables v0.1 - Modify a block's drop when it's destroyed! [1337]"
    • MediaFire is discouraged
    • I recommend you create a page on dev.bukkit.org because plugins on plugins.bukkit.org will only show BukkitDev pages eventually
     
  3. Offline

    T145

    What would be a recommended file host for downloads other than MediaFire or MegaUpload?
     
  4. Offline

    Windwaker

    Github or Dropbox is usually good

    EDIT: also ADMIN should be ADMN
     
  5. Offline

    T145

    Ok, I'll try DropBox!
     
  6. Offline

    user_43347

    When they break the block, do this:
    It will stop it from dropping the cobblestone because it sets the block to air (instead of breaking it) and drops the alternative block (because the original block was never actually broken.)
    Code:
    public void onBlockBreak(BlockBreakEvent event) {
       Block b = event.getBlock();
       World w = event.getBlock().getWorld();
       if (b.getType() == Material.STONE) {
          b.setType(Material.AIR);
          w.dropItemNaturally(b.getLocation(), new ItemStack(Material.STONE, 1));
       }
    }
     
  7. Offline

    T145

    Thanks man! This really helps! Now I should be able to modify all of the blocks that had "buggy" drops! *I noticed that you simplified the Block and World statements; an efficient way of quick coding!
     
  8. Offline

    powerpawn

    Are you gonna update this? Because I would totally use it. Thanks!
     
  9. Offline

    Rellac

    Me too, this is EXACTLY what I've been looking for! Would fix massive issues in my server. I especially love the permissions based system.
     
  10. Offline

    T145

    Ok! I'll try and have an official release available shortly!
     
  11. Offline

    Rellac

    Yay! Great :) This would definatly replace WorldGuard's block blacklist for me. I assume inputting a 0 would cause no drop?
     

Share This Page