[INACTIVE][MECH] OtherBlocks v0.7.4 - Customize drops in combo with everything else [617]

Discussion in 'Inactive/Unsupported Plugins' started by cyklo, Feb 11, 2011.

  1. Offline

    cyklo

    OtherBlocks - Customize what broken blocks and dead mobs drop!
    Version: 0.7.4
    Download: Jar File | Source Code
    Like this plugin? [​IMG]

    Main author: @cyklo
    Contributors: @Celtic Minstrel

    See the Wiki page for full details on how to set up OtherBlocks

    If you are getting errors with the word "snakeyaml" in it, your config file isn't properly formatted.
    Test it on this website.


    OtherBlocks is a plugin that lets you apply rules to what blocks drop when destroyed, depending on what tool you used. It is inspired by decino's goldenNether plugin.

    You can set rules in the configuration file to match any item with any block and give it a different drop item. For example, you could allow gathering of Glowstone Dust on the overworld by breaking Redstone ore with a golden pickaxe. Or you could allow ingots to be mined directly from their ores if you use Flint and Steel. Or you could invoke Isaiah Mustafa and decree "THE LEAVES ARE NOW DIAMONDS!"

    To install, simply decompress the contents to your plugins directory. Then, copy otherblocks/config.sample.yml to otherblocks/config.yml and edit away!

    Don't forget - to see how to edit the config file, check out out the Wiki!



    Changelog (open)

    Version 0.7
    • Added new drop types DEFAULT and NOTHING (0.7.4)
    • Fixed: creature drops don't work in specific worlds (0.7.4)
    • Added new mob types: CREATURE_GIANT, CREATURE_MONSTER, CREATURE_WOLF (0.7.3)
    • Will no longer throw problems with new types of mob when out of date (0.7.3)
    • Can specify creatures as the tool of death for mobs (0.7.2)
    • Can specify damage events as the tool of death for mobs (0.7.2)
    • Can specify data (colour) values for when you kill a sheep (0.7.2)
    • Fixed: doesn't work on CB 561+ (0.7.2)
    • Can specify data values for SPECIAL_LEAFDECAY events (0.7.2)
    • Large internal changes (0.7.2)
    • Fixed: number of spawned mobs did not obey config file (0.7.1)
    • Fixed: NullPointerException on mob item drop (0.7.1)
    • "color:" works for more than just wool and dyes, now works for wood, half-height blocks, crops etc. (0.7)
    • Synonyms, allowing you to specify groups such as "ANY_REDSTONE_ORE" and "ANY_PICKAXE" (0.7)
    • Can now specify data value of blocks you are dropping from, e.g. "CROPS@RIPE" (0.7)
    • Can now drop a number of items in a range (0.7) (by Celtic Minstrel)
    • Can now drop "CONTENTS" of containers, e.g. dispensers, furnaces (0.7) (by Celtic Minstrel)
    Version 0.6
    • Added SPECIAL_LEAFDECAY tag. See the wiki. (0.6.2)
    • Back-end changes to build process (0.6.1)
    • Multiworld support! Now you can customize drops on a per-world basis (0.6)
    Version 0.5

    • Now you can change what a mob drops when it is killed by a player! (0.5)
    Version 0.4

    • Fixed the map-break AIR bug (0.4.6)
    • Now specify multiple tools at the same time with syntax [TOOL_A, TOOL_B] (0.4.5)
    • Fixed incorrect colours of dropped dyes (0.4.4)
    • Added "ANY" as synonym for "ALL" (0.4.4)
    • Adjustable priority (0.4.3)
    • Can hide boot messages with "verbosity: low" (0.4.2)
    • Quantity and Damage bugfixes, works with Beta 1.3 (0.4.1)
    • Oh god, now you can spawn creepers (and other mobs) (0.4)
    • Fractional percentage chances such as 0.01% are valid (0.4)
    Version 0.3

    • Conforms to new plugin standards and breaks backwards compatibility (0.3)
    Version 0.2

    • Can now drop multiple items per block (0.2.5)
    • Fixed bug introduced in 0.2.3 (0.2.4)
    • Can now specify color of dropped item for wools and dyes (0.2.3)
    • Once again (and hopefully for the last time) fixed durabilities (0.2.2)
    • Changed to lowest priority, hopefully for better compatibility (0.2.2)
    • Fixed durability bug (0.2.1)
    • Change to config.yml format (0.2)
    • Can now specify multiple drops per block, based on different tools (0.2)
    Version 0.1


    • Added "ALL" selector for tools (0.1.3)
    • Workaround for bug in Bukkit whereby durability and max stack size are mixed up (0.1.3)
    • Added drop probability (0.1.2)
    • Customizable damage on block destruction (0.1.1)
    • First release (0.1)
     
    Steve Cole, g_BonE and tension69 like this.
  2. Offline

    cyklo

    Your config file is not formatted correctly. Make sure the spacing and layout is the same as in the example config in the first post.
    --- merged: Mar 5, 2011 10:49 PM ---
    So... for multiworld support, would people prefer specifying what worlds each drop belongs to (default all), e.g.

    Code:
    otherblocks:
      BLOCK:
        - tool: ALL
          drop: BLAH
          worlds: [thisworld, thatworld]
    
    ...or something more like...

    Code:
    otherblocks:
      DEFINITIONS_FOR_ALL_WORLDS:
        - tool: etc....
    otherblocks_mynetherworld:
      DEFINITIONS_THAT_APPLY_TO_mynetherworld_ONLY
        - tool: etc...
    
     
  3. Offline

    Kaseki

    Both ways would be fine, but I'd probably prefer the second way (for organizational reasons)
     
  4. Offline

    Andre_9796

    It says ice now drops air with any tool but ice still drops water. Btw I have CB 432 installed.
     
  5. Offline

    cyklo

    Hmm, so it does. The appearance of water shouldn't happen according to the API. I'd report it as a bug in Bukkit, but their bugtracker is still down with no sign of it ever reappearing. I'll see what I can do.
    --- merged: Mar 6, 2011 4:28 PM ---
    I've added a Wiki page with full details about setting up configuration files, which should help. It's located here: http://wiki.bukkit.org/OtherBlocks

    Feel free to edit it, and also please add your configuration idea to this page: http://wiki.bukkit.org/OtherBlocks_Configuration_Tips
     
  6. Offline

    bugeye999

    Permissions support would be nice. For example, trusted members get a chance at bonus diamonds when breaking the blocks, but new members don't.
     
  7. Offline

    cyklo

    I have no plans to add any kind of permissions-based dropping to OtherBlocks, sorry - I want OtherBlocks to be player agnostic. I believe there are some other modifying-block-drops plugins out there that do have permissions support which may be what you are looking for, but I see OtherBlocks as more for changing the global world physics.
    --- merged: Mar 6, 2011 9:24 PM ---
    Version 0.6 now comes with MULTIWORLD support (must be in caps. Exciting). See the Wiki for the new configuration options!

    Basically, each drop has a new optional "world:" section, which sets which worlds the drop applies to (default is every world)
     
  8. Offline

    tension69

    Nice roll[​IMG]
     
  9. Offline

    BerretHunter

    The possibility to add more monster spawn from other monster is realy good to higher up the dificulty.

    One thing i would like to see added is the possibility to do costom drop when creeper explode instead of blowing up block ( i nerf explosion on my server) i want them to spawn more monster :p

    Also mob drop/spawn ghast dont work wich would be realy nice addition.

    Keep the good work

    (not tested with 0.6)
     
  10. Offline

    TheDarkness73

    Is there a way to make it so none of the drops it normally drops are dropped?
     
  11. Offline

    cyklo

    No, doesn't work with 0.6 yet either. Can't spawn ghasts, and can't spawn slimes. It's a mystery, but a low-priority one right now.

    Just added permanently to the wiki: https://github.com/cyklo/Bukkit-OtherBlocks/wiki/Configuration-Tips
    --- merged: Mar 7, 2011 10:17 PM ---
    I have just spent the entire evening moving everything to GitHub. This means that all cloned git repositories need to be moved. You will find everything to do with OtherBlocks now located here: https://github.com/cyklo/Bukkit-OtherBlocks

    If you have cloned the source code, you need to change your remote repository using
    git config remote.origin.url git://github.com:cyklo/Bukkit-OtherBlocks.git
     
  12. Offline

    ultimak

    Is it possible to modify what is dropped when ground is tilled? I want people to be able to till with a gold hoe and have a chance of getting mushrooms but I dont see how I can make it work currently.

    Edit: Also is it possible to make it so players can get birch/pine?
     
  13. Offline

    TheDarkness73

    What if you want the item not to drop anything normally, like a pig only dropping zombie pigmen? ALos, is it possible to say I want to be able to get this with any tool except ____?
     
  14. Offline

    cyklo

    Same as every other post. If you drop something with 100% certainty, it won't drop the default.

    All tools except: set a definition for the excepted tool, then set a definition for all tools.
     
  15. Offline

    grinch843

    Hi, would love to see a permanent link added if possible so that this plugin could be added to CraftBukkitUpToDate for automatic updates.....

    Thanks,
    Grinch...
     
  16. Offline

    cyklo

    Trying to work out some automated uploading script for GitHub to keep numbered versions and a "otherblocks_latest.tar.gz" running in tandem.
     
  17. Offline

    killgoblen

    Hi! I LOVE this plugin (Well, I haven't tried it, but if it works like it says, I will!). I noticed that on the first page, you said leaf decay still had the vanilla behavior. Has this been fixed? E.G., make leaves sometimes drop apples even on decay.

    If not, would it be possible to add this option? Thanks!
     
  18. Offline

    rbos

    Does "ALL" refer only to tools? It seems to. When breaking leaves (or other things) you might do it with your bare hands, or with a torch, or whatever block you happen to have handy. Is there a keyword for anything, not just tools?
     
  19. Offline

    SoulWind71428

    Hey cyklo. This plugin is great. One issue for me, though: I set up it up so that crops have a chance of dropping mushrooms, flowers, etc. when broken. Only problem is, the plugin doesn't seem to take into account what stage of growth the crops are in. Is it possible for you to make it so that it only uses custom drops for fully-grown crops?
     
  20. Offline

    killgoblen

    Yeah, and now that I think about it, does it support any 'damaged-based' blocks? (like wool, half-steps, etc. Crop growth stages are damage-based, I believe.)
     
  21. Offline

    cyklo

    ALL is everything. Tools, blocks, bare hands, whatever. Bare hands specifically is "AIR".
     
  22. Offline

    TheDarkness73

    Is there a way to make it to make it drop stuff when use a hoe. SO you dont destroy the block, but get a block from on it?
     
  23. Offline

    cyklo

    Not right now. Shall work on it.
     
  24. Offline

    rbos

    Weird. I set up sticks to drop occasionally (5%) from leaves, but it only seems to work with tools.
    Code:
     LEAVES:
         - tool: ALL
           drop: SAPLING
           quantity: 1
           chance: 5
         - tool: ALL
           drop: STICK
           quantity: 1
           chance: 0.5
         - tool: ALL
           drop: APPLE
           quantity: 1
           chance: 0.5
         - tool: ALL
           drop: GOLDEN_APPLE
           quantity: 1
           chance: 0.05
    
     
  25. Offline

    cyklo

    Chances are percentages, so that's a 1 in 200 chance...
     
  26. Offline

    rbos

    ooooooooooooh.

    /facepalm
     
  27. Offline

    Kodesh

    Is it possible to have a mob drop one out of multiple possible objects at a fixed percentage?

    For example: Say I want a skeleton to drop a bow or a piece of leather armor at 5% droprate. That is, there is a 5% chance the skeleton would drop either one of the items, but never more than one item.

    Would this work? Or be implemented?

    Code:
    otherblocks:
         CREATURE_SKELETON:
             - tool: ALL
               drop: [BOW, LEATHER_HELMET, LEATHER_CHESTPLATE, LEATHER_LEGGINGS, LEATHER_BOOTS]
               chance: 5
    
     
  28. Offline

    killgoblen

    Ok, another question:
    Is it possible to make a block drop more than one type of block? For example, make diamonds occasionally drop cobble in addition to a diamond. Thanks!
     
  29. Offline

    cyklo

    Yes. You need to specify the diamond drop at 100% manually, then add a second drop of whatever you want.
    [MERGETIME="1299971174"][/MERGETIME]
    Hm... I initially was going to use that syntax for multiple items each with independent probabilities, but I guess that doesn't actually add any new functionality. This does.
     
  30. Offline

    Kodesh

    Haha, glad I could help! Awesome plugin btw. Easy and effective.
     
  31. Offline

    enkryptor

    Honestly, I want to distinguish decayed leaves block and and a harvested ("dug") one.

    As far as I understand OtherBlocks cannot alter drop from decayed leaves.
     

Share This Page