[MECH] OtherDrops 2.8- Ultimate block/mob/player drop editing [1.5.2]

Discussion in 'Archived: Plugin Releases' started by Zarius, Jun 12, 2011.

  1. Offline

    Zarius

    [​IMG]


    Want to fix glass/stairs/boat drops? Want to gather ice/glowstone/grass in a balanced manner? Want to smelt ore with golden tools? Want to cause chaos with undead that rise again? Now you can, simply by enabling the included example files or delve into the more advanced customisation and make drops work the way you want.

    OtherBlocks aims to give you ultimate control over what item that blocks/entities drop when destroyed, depending on how they were destroyed. Compatible with WorldGuard. Lightweight! Only scans what it needs to and ignores the rest.
    Download: BukkitDev (download link on there) | Source Code

    Included Modules
    * Fix undroppables: fix drops for stairs, glass (don't use your hands - ouch), boats & bookshelves (1.8 stairs included)
    * Gold tools (basic): gold tools have a chance of dropping the complete block for grass, ice & glowstone.
    * Gold tools (smelt): gold tools have a chance of mining an ingot directly from ores.
    * Ore Extraction: using the usual tools, ingots are ripped out of ores, leaving the stone behind.
    * Leaf overhaul: adds leaf drops (apples, cocoa, leaves, sticks & a very small chance of golden apple).
    * Undead Chaos: beware the night! Zombies & skeletons rise again and even players rise back from the dead (player deaths spawn more zombies/skeletons).
    * and more...

    Custom Configuration Examples
    Code:
        # Simple glass drop fix
        GLASS:
          - drop: GLASS
     
        # Players drop Zombies on death, 50% of the time
        PLAYER:
          - drop: CREATURE_ZOMBIE
            chance: 50%
     
        # Spiders killed with any sword at night have a 10% chance to drop web,
        # otherwise they drop whatever they normally would
        CREATURE_SPIDER:
          - tool: ANY_SWORD
            time: NIGHT
            drop: WEB
            chance: 10%
     
        # Trees drop apples (or cocoa from birch trees)
        SPECIAL_LEAFDECAY@GENERIC:
          - drop: APPLE
            chance: 5%
        SPECIAL_LEAFDECAY@BIRCH:
          - drop: DYE@BROWN
            chance: 5%
    
    If you are getting errors with the word "snakeyaml" in it, your config file isn't properly formatted.
    Test it on this website (or this one).

    See the dev.bukkit page for full details on how to set up OtherDrops, a complete parameters list and further examples.


    Changelog

    Newest changelog details here.


    Main author: @Zarius
    Contributors: @Celtic Minstrel, raws
    Original author: @cyklo
     
  2. Offline

    Clucky

    What do I do, this is extremely confusing...

    I keep getting this message on reload/startup
    Code:
    11:29:46 [INFO] [OtherBlocks] No values found in config file!
    
    But here is my config:

    config.yml (open)

    Code:
    priority: highest
    verbsity: normal
    
    
    otherblocks:
      GLASS:
        - tool: ANY
          drop: SAND
          quantity: 1
          chance: 100
      CREATURE_CHICKEN:
        - tool: ANY
          drop: NOTHING
          chance: 100
        - tool: ANY
          drop: 344
          quantity: 1
          chance: 25
        - tool: ANY
          drop: 288
          quantity: 10
          chance: 100
        - tool: ANY
          drop: 352
          quantity: 1
          chance: 100
    ###otherblocks:###
    #
    #     NAME_OF_ORIGINAL_BLOCK:
    #     - tool: xxx
    #       drop: xxx
    #       world: xxx
    #       color: xxx
    #       quantity: xxx
    #       damage: xxx
    #       chance: xxx
    #
    #     - tool: xxx
    #       drop: xxx
    


    If you get time, please correct it if anything is wrong, and/or tell me what I got wrong. Thank you :D
     
  3. Ahh, I was using 1.8x, but after upgrading to 1.93 still I can't destroy minecarts (paintings are ok now). I'm using PermissionsBukkit with SuperPermsBridge. Disabling superperms fixes minecart problem, but I need this perm bridge for other plugins :U.
     
  4. Offline

    Falsed

    im not running either i don't believe
     
  5. Offline

    Worleyboy

    Is there a way I can stop this plugin from conflicting with the jobs plugin? When I destroy any block that has custom drops enabled, I do not get money or exp for the jobs plugin.
     
  6. Offline

    Zarius

    PermissionsEx also comes along with a Permissions bridge that works fine on my server with 80+ plugins.

    Try putting the OtherBlocks "priority" setting to high (or highest) - this should allow the jobs plugin to operate first.

    That's very odd then - as I said I tested it and had no issue with sand dropping twice. I know there are problems with Permissions 3.16 and SuperPerms though which is why I asked what permissions system you're using - can you check to see which permissions plugins you have active?

    Nothing seems wrong - are you using the latest version of OtherBlocks (1.93) and is the config file called "otherblocks-globalconfig.yml"?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  7. Offline

    Falsed

    After talking with my friend we are in fact using 3.16.

    anything I can change? is this a known problem that i have?
     
  8. Offline

    Celtic Minstrel

    I know I would love to have another tester; I expect Zarius would too. That said, I imagine he wants to get most of the bugs out first and only rely on testers for catching less obvious bugs.
     
  9. Offline

    Zarius

    Unfortunately yeah, there have been problems reported with permissions 3.16 & the superpermsbridge. PermissionsEx seems to work ok. I'd like to get them all working but make no guarantees about when that will occur.

    I've also updated the opening post to make this clear.
     
  10. Offline

    Clucky

    *facepalm* Im using config.yml :eek: Thanks

    Again, amazing plugin, love it :D
     
  11. Offline

    Falsed

    installed permisionsex, still a no go..
     
  12. Offline

    Zarius

    Did you remove Permissions 3.16?
     
  13. Offline

    Falsed

    yes

    it works now when i deleted every plugin but otherblocks, now adding plugins back in 1 by 1 till it doesnt

    eventually will find the culprit.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  14. Offline

    pumpapa

    Hey I have a problem with the plugin cause It's not working At all.

    When I just Moved the content of the Zip file and edited the configs, it did nothing.
    But the Only thing that the Console said was:
    'OtherBlocks:1.93: No values found in config file!'

    I don't think theres nothing wrong with my config file I checked it on Online YAML Parser.
    But here it is:

    Code:
    # Set this to "low" to reduce number of boot messages or to high, highest, extreme for more debugging info
    verbosity: normal
    
    # Try adjusting this if you have compatibility problems with other plugins.
    # Default: "lowest". Can also use "low", "normal", "high", "highest".
    priority: highest
    
    ##########
    # Include files
    ##
    # The plugin will scan through and load these files (if set to 'yes') after loading the main config below.
    # Extension ".yml" is added automatically before searching for the file
    #
    # Note: drops from included files will are inclusive and will all be added to the drop list.
    # Note when updating OtherBlocks: these files may be updated from time to time - rename them if you don't want to overwrite them.
    #
    include-files:
    ## OtherBlocks example files
        ob-fix_undroppables: no      # fix glass, bookshelf, boat and stairs drops
        ob-goldtools-basic: no       # allow gold-pickaxe chance to get ice & glowstone, gold-hoe chance to get grass
        ob-goldtools-smelt: no       # gold-pickaxe smelts ores to ingots, sand to glass, etc
        ob-ore_extraction: no        # allow ore to seem to be "extracted" - leaving behind stone
        ob-leaf_overhaul: no         # overhaul leaf drops (apples, cocoa beans, leaves, sticks & a very small chance of golden apple)
        ob-playerdeath_zombie: no    # players drop zombies on death (that's it - see undead_chaos for more fun :D)
        ob-undead_chaos: no          # the undead shall rise again! Includes players dropping zombies/skeletons
    #    ob-random_examples: no      # For crazy testing only :) Read through examples before activating.
    
    ## Other users overhauls
        overhaul-catballs: no        # great example/playable config from Catballs (disable "ob" configs before using this one, otherwise you might have too many drops)
        overhaul-zarius: no          # Zar's messy config (I run this with no other includes, at the moment)
    
    ## Add your files here (alternatively just add your custom drops to the bottom of this file)
        ob-savagecraft-config: yes
    
    ##########
    otherblocks:
    
    #
    # Your changes here, or create a new .yml file and include it above in the "include-files" section
    # Explore the included config files for many more examples
    #
    # If make a interesting or crazy config let me know on the forum and I might include it in the next release
    #
    #
    
    # Example:
    #    GLASS:
    #        - drop: GLASS
    #
    #        - drop: MONEY
    #          quantity: 3-15
    #          message: You recycled the glass for %q dollars.
    
    
    As you can see, I made my own Custom File but I think theres nothing wrong with it, Maybe I placed it wrong in the config file?

    I'm running on bukkit 1060, and Heres the list of plugins on my Server:
    WorldGuard, CommandBook, SupernaturalPlayers, CustomCrafting, SpoutEssentials, Towny, HeroSpawn, Essentials, BigBrother, Permissions, HeroSneak, WirelessRedstone, MobBounty, AntiXRay, CraftBookVehicles, MSCommand, EssentialsProtect, iConomy, MultiVerse, CraftBookCircuits, SpyerFun, dynmap, Spout, ChestShop, HeroBounty, LWC, WorldEdit, CraftBookCommon, SpyerAdminCommands, SimpleSign, CraftBookMechanisms, PermissionsSql, OtherBlocks, EssentialsSpawn, Citizens, EssentialsChat, CFBanner, SpyerAdmin, NoCheat.

    Sorry for the super long Reply, but I just want to make sure you have enough information to help me.
     
  15. Offline

    Darkone003

    So, I'm having a bit of a problem since I updated to 1.9.3 (I'm not sure exactly when the problem actually started), all my custom drops still work if the block is broke with a tool, but if I break them by hand, some of them work and some don't.
    Code:
            GLOWSTONE:
                - tool: ALL
                  drop: GLOWSTONE
                  quantity: 1
                  chance: 100
    For example this works if I break it with something in my hand but if I break it with an empty hand I get no drop at all. (Not even Glowstone Dust)

    The only other (meaningful) plugin changes have been switching from P3 to bPermissions and MV1 to MV2.
     
  16. Offline

    TheMap

    Any chance this being usable with superPermsBridge at any point?
     
  17. Offline

    Hopium

  18. Offline

    Zarius

    Is your config file called "ob-savagecraft-config.yml"?

    Hmm... I haven't tested it work bPermissions (so many permissions systems :/) - does that provide a "permissions bridge" too? Although it doesn't sound like a permissions issue... could you test this works with no other plugins installed?

    Also, have you checked all active config files for any other GLOWSTONE config?

    Possibly after 2.0 is released - at a minimum I'll add a config option to turn off the permission checking.

    Hmm... 1.93 only supports iConomy 4 & 5 - I didn't know iConomy 6 was out :) Thanks for the heads up, I'll make sure the next version supports it.
     
    Hopium likes this.
  19. Offline

    Celtic Minstrel

    1.93 will not work with bPermissions alone. However, it may work if you install both bPermissions and the SuperpermsBridge from the PermissiosnBukkit thread. (Don't install PermissionsBukkit itself; just the SuperpermsBridge.)

    In 2.0, it will work with all known permissions systems.
     
  20. Offline

    Hopium

    lol so pumped for 2.0 :D
     
  21. Offline

    Zarius

    Not quite right - 1.93 will not work correctly with SuperpermsBridge.

    I see no reason that it won't work with bPermissions (unless it pretends to be Permissions) - the only likely problem is that groups that have no build rights will still be able to destroy blocks configured in OtherBlocks.
     
  22. Offline

    Celtic Minstrel

    I'm confused why 1.93 doesn't work with SuperpermsBridge, but in any case, if it doesn't, it won't work with bPermissions since it does not pretend to be Permissions.
     
  23. Offline

    Darkone003

    It works good without bPermissions.. I figured if it was gonna have problems nothing would work, not just random stuff, but oh well..

    Guess I'll just wait for the update, not really anyone using my server right now anyways, most are waiting for 1.8 >.<
     
  24. Offline

    Zarius

    1.93 won't work with SuperPermsBridge precisely because that one does pretend to be Permissions. The issue is in the canPlayerBuild() function checking permissions - if the plugin pretends to be Permissions but doesn't return the right values this function fails. If no plugin pretends to be permissions then this particular part just gets skipped.
     
  25. Offline

    Celtic Minstrel

    Ah, I see the issue. That kinda makes sense.
     
  26. Offline

    Kane

  27. Offline

    Zarius

    Celtic Minstrel and Kane like this.
  28. Offline

    pumpapa

    Yes, here it is, but I don't think theres a problem with it...


    Code:
    otherblocks:
    
        CREATURE_ZOMBIE:
            - tool: ALL
              toolexcept: WOOD_SWORD
              drop: CREATURE_ZOMBIE
              quantity: 1
              chance: 100
              time: NIGHT
              weather: THUNDER
        CREATURE_SKELETON:
            - tool: ALL
              toolexcept: WOOD_SWORD
              drop: CREATURE_SKELETON
              quantity: 1
              chance: 100
              time: NIGHT
              weather: THUNDER
        CREATURE_SPIDER:
            - tool: ALL
              drop: WEB
              quantity: 1-2
              chance: 10
        GLASS:
            - tool: AIR
              drop: NOTHING
              damageattacker: 1
              message: "Ouch! Breaking glass with your bare hands hurts."
              chance: 100
        BOOKSHELF:
            - tool: ANY_AXE
              drop: BOOKSHELF
        WOOD_STAIRS:
            - tool: ANY_AXE
              drop: WOOD_STAIRS
        COBBLESTONE_STAIRS:
            - tool: ANY_PICKAXE
              drop: COBBLESTONE_STAIRS
        BOAT:
            - tool: ALL
              drop: BOAT
        LEAVES@GENERIC:
            - tool: ALL
              drop: APPLE
              chance: 5
            - tool: ALL
              drop: GOLDEN_APPLE
              chance: 0.05
              message: "A Golden apple falls from the tree!"
        LEAVES@REDWOOD:
            - tool: ALL
              drop: INK_SACK
              color: BROWN
              chance: 10
        PLAYERGROUP@Citizen:
            - tool: ALL
              drop: CREATURE_ZOMBIE
              chance: 10
              quantity: 1
              message: ["Looks like this Citizen was infected by a Necromancer..."]
        PLAYERGROUP@Tier1:
            - tool: ALL
              drop: CREATURE_MONSTER
              chance: 25
              quantity: 1
              message: ["Looks like that Premium had a Bodyguard waiting for you..."]
        PLAYERGROUP@Tier2:
            - tool: ALL
              drop: CREATURE_MONSTER
              chance: 50
              quantity: 1
              message: ["Looks like that Premium had a Bodyguard waiting for you..."]
        PLAYERGROUP@Tier3:
            - tool: ALL
              drop: CREATURE_MONSTER
              chance: 100
              quantity: 1
              message: ["Looks like that Premium had a Bodyguard waiting for you..."]
        PLAYERGROUP@Tier4:
            - tool: ALL
              drop: CREATURE_MONSTER
              chance: 40
              quantity: 2
              message: ["Looks like that Premium had some Bodyguards waiting for you…"]
        PLAYERGROUP@Tier5:
            - tool: ALL
              drop: CREATURE_MONSTER
              chance: 80
              quantity: 2
              message: ["Looks like that Premium had some Bodyguards waiting for you..."]
        PLAYERGROUP@Tier6:
            - tool: ALL
              drop: CREATURE_MONSTER
              chance: 100
              quantity: 2
              message: ["Looks like that Premium had some Bodyguards waiting for you..."]
        PLAYER@pumpapa:
            - tool: ALL
              drop: CREATURE_CREEPER@POWERED
              chance: 100
              quantity: 5
        PLAYER@carlosj:
            - tool: ALL
              drop: CREATURE_SQUID
              chance: 100
              quantity: 10
        PLAYER@JesseZe:
            - tool: ALL
              drop: CREATURE_PIG@SADDLED
              chance: 100
              quantity: 3
     
    I'm running with the Inactive normal Permissions, but I don't think if Permissions is not supported it shouldn't work at all, I'm also running with iConomy 5.
     
  29. Offline

    Zarius

    Odd - works fine for me with OtherBlocks 1.93 - is the "ob-savagecraft-config.yml" file in your plugins/OtherBlocks/ folder - same as the otherblocks-globalconfig.yml? Make sure you're not still using the old config.yml file.
     
  30. Offline

    Clucky

    Here's a suggestion for a new feature: Up to you to decide if you want to add it or not.

    Adjacent blocks. Basically if you mine/dig/chop/hoe/kill a block or mob while a block (or mob) is next to it, (either above, below, or around) you will get the defined drop. :D

    Again up to you. Heres a better example of what I mean:

    Code:
    otherblocks:
      GRAVEL:
        -  tool: ANY
           adjacent: WATER
           drop: CLAY
           quantity: 4
           chance 100%
    
    Basically what this means, is if water is touching gravel and you mine it, it drops clay. :D CLAY YAY!!! :D

    Get back to me if you like it or not, and are willing to include it. I look forward to hearing from you :D
     
  31. Offline

    Zarius

    I've thought about this but couldn't think of many good reasons to do so. That clay ones not bad - if anyone can think of a few more good configs I might look into it.
     

Share This Page