[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

    Zarius

    Odd - what version of Essentials. I might have to report this to the Register thread as it's their code, not mine.

    Do you have any further problems or other than this error does OtherBlocks work ok?
     
  3. Offline

    RugRats

    Zarius, I had this to but it got fixed in 9.3 or I updated essentials so erm I don't think its' register because I fixed this
     
  4. Offline

    Zarius

    9.3?

    First a couple of typos just for you to improve the config: "abdomen if the arachnid" should be "abdomen of the arachnid", "disintigrated" should be "disintegrated" and "scepter" should be "sceptre".

    In regards to the config you need to add four spaces to the beginning of every line below "otherblocks:" and it should work then.

    Do you mind if I include your config as an example config?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  5. Offline

    RugRats

    OtherBlocks v0.9.3
     
  6. Offline

    Zarius

    Ah, ok. Still a bit odd though because godsyn was running 0.9.4 :)
     
  7. Offline

    catballs

    Code:
    01:56:28 [INFO] OtherBlocks: no values found in config file!
    what does this mean of my yaml checks out?
     
  8. Offline

    Zarius

    Did you see my response above? Your file seems to be valid yaml but is not a valid otherblocks config file. Each out of the blocks needs to be a child of the "otherblocks" node which is why you need the extra spaces.
     
  9. Offline

    RugRats

    I am to I don't have that bug :)
     
  10. Offline

    Zarius

    @catballs

    Was just thinking.... With your armor drops from skeletons you can modify the damage value so that they are dropped half or mostly used :) Will post an example when I'm home.

    New version:

    Version 0.9.6 (2011/06/30)

    • fix for quantity error (1-2 now correctly gives 1 or 2 at random)
    • new "permissiongroup" option for drops
    Example for permissiongroup:
    Code:
            GRASS:
                - tool: ALL
                  drop: SAPLING
                  color: GENERIC
                  quantity: 1
                  permissiongroup: ADMIN
    
    Grass should still drop dirt for everyone else but saplings for admins (silly example ftw :D)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  11. Offline

    Celtic Minstrel

    Your permissions groups are all-caps? Interesting... does permissiongroup accept lists?
     
  12. Offline

    Zarius

    Not case sensitive. No lists yet... wanted to get the basic feature out first.
     
  13. Offline

    Celtic Minstrel

    I thought Permissions's groups were case-sensitive. I could be mistaken though.
     
  14. Offline

    Zarius

    Possibly in the permissions config file - not in the permissionHandler.inGroup function (I tested "AdMiN" :D). Lists for permissions is coded and will be in 0.9.7. I'm gonna run out of numbers soon, only three more releases before 1.0 :D
     
  15. Offline

    catballs

    Z, use it all you want, so long as you 1) mention catballs, and 2) keep on with the great help!

    i think i grasp what you're saying; i need to move CREATURE_XXX four spaces in; but the rest of the lines are ok?

    not a ninja edit
     
  16. Offline

    Zarius

    Try this:

    Show Spoiler
    Code:
    verbosity: normal
    priority: lowest
    enableblockto: false
    usepermissions: false
    
    otherblocks:
        CLAY:
            - tool: ANY
              drop: CREATURE_SLIME
              chance: 1
              message: ["The slimy creature seems perturbed you removed it's home."]
        SPECIAL_LEAFDECAY:
              drop: stick
              chance: 25
        LEAVES:
            - tool: ANY_HOE
              drop: APPLE
              chance: 1
            - tool: ANY_HOE
              drop: LEAVES
              chance: 100
        BOOKSHELF:
            - tool: ALL
              drop: BOOKSHELF
        BOAT:
            - tool: ALL
              drop: BOAT
        GLASS:
            - tool: ALL
              drop: GLASS
        CREATURE_CREEPER:
            - tool: ANY_SWORD
              drop: TNT
              chance: 1
              message: ["You slice through the green monster so quickly, it's explosive brain falls out."]
        CREATURE_SPIDER:
            - tool: ANY_SWORD
              drop: WEB
              chance: 1
              message: ["Puncturing the abdomen of the arachnid reveals it's sticky web glands."]
        CREATURE_SKELETON:
            - tool: ANY_SWORD
              drop: BOW
              chance: 1
            - tool: ANY_SWORD
              drop: CHAINMAIL_HELMET
              chance: .25
              message: ["A little dusty, but this chainmail helmet might look good on you."]
            - tool: ANY_SWORD
              drop: CHAINMAIL_CHESTPLATE
              chance: .25
              message: ["The rusty rings of this chainmail chestplate might offer a little protection"]
            - tool: ANY_SWORD
              drop: CHAINMAIL_LEGGINGS
              chance: .25
              message: ["Unfortunately, the undergarments disintegrated long ago."]
            - tool: ANY_SWORD
              drop: CHAINMAIL_BOOTS
              chance: .25
              message: ["You really should shake the toe bones out from these boots."]
        CREATURE_PIG_ZOMBIE:
            - tool: ANY_SWORD
              drop: GOLD_SWORD
              chance: .25
              message: ["A former warrior king, trapped forever in Hell."]
            - tool: ANY_SWORD
              drop: GOLD_SPADE
              chance: .25
              message: ["An opulent sceptre..."]
            - tool: ANY_SWORD
              drop: GOLD_PICKAXE
              chance: .25
              message: ["A Trophy...Useless as a tool."]
            - tool: ANY_SWORD
              drop: GOLD_AXE
              chance: .25
              message: ["Shiny...But silly..."]
            - tool: ANY_SWORD
              drop: GOLD_HELMET
              chance: .25
              message: ["A crown falls!"]
            - tool: ANY_SWORD
              drop: GOLD_CHESTPLATE
              chance: .25
              message: ["It's only for show..."]
            - tool: ANY_SWORD
              drop: GOLD_LEGGINGS
              chance: .25
              message: ["I like his style."]
            - tool: ANY_SWORD
              drop: GOLD_BOOTS
              chance: .25
              message: ["Spit Shined!"]
            - tool: ANY_SWORD
              drop: GOLD_HOE
              chance: .25
              message: ["It won't make the food taste any better."]
        CREATURE_SQUID:
            - tool: ANY
              drop: FISHING_ROD
              chance: 2
              message: ["Looks like you got the one who got away."]
            - tool: ANY
              drop: GOLD_INGOT
              chance: .25
              message: ["Neptune's treasure! Too bad it's not Ariel."]
            - tool: ANY
              drop: IRON_INGOT
              chance: .5
              message: ["An old piece of anchor."]
            - tool: ANY
              drop: FLINT_AND_STEEL
              chance: 1
              message: ["This did him no good underwater."]
            - tool: ANY
              drop: GOLD_RECORD
              chance: 1
              message: ["Hopefully this is not a song from Under The Sea."]
            - tool: ANY
              drop: BOAT
              chance: 2
              message: ["The Kraken's gullet was a lot bigger than perceived."]
            - tool: ANY
              drop: RAW_FISH
              chance: 50
              message: ["Well, waste not, want not."]
        CREATURE_ZOMBIE:
            - tool: ANY_SWORD
              drop: IRON_SWORD
              chance: .25
              message: ["Rusty, but the edge is true."]
            - tool: ANY_SWORD
              drop: IRON_SPADE
              chance: .25
              message: ["The poor miner's friend."]
            - tool: ANY_SWORD
              drop: IRON_PICKAXE
              chance: .25
              message: ["Let's hope you don't receive the same fate as this ghoul miner."]
            - tool: ANY_SWORD
              drop: IRON_AXE
              chance: .25
              message: ["This ghoul must have been a lumberjack."]
            - tool: ANY_SWORD
              drop: IRON_HOE
              chance: .25
              message: ["Hopefully what caused the demise of this farmer was not in his crops."]
            - tool: ANY_SWORD
              drop: IRON_HELMET
              chance: .25
              message: ["You slice the head clean from the zombie's shoulders!"]
            - tool: ANY_SWORD
              drop: IRON_CHESTPLATE
              chance: .25
              message: ["A little snug, but it should do if you suck in."]
            - tool: ANY_SWORD
              drop: IRON_LEGGINGS
              chance: .25
              message: ["A little short; but you go wading a lot anyway."]
            - tool: ANY_SWORD
              drop: IRON_BOOTS
              chance: .25
              message: ["10 and a half...You know what they say about zombies with big feet."]
            - tool: ANY_SWORD
              drop: COMPASS
              chance: .12
              message: ["Maybe this will help you keep from wandering the shambler's same path."]
            - tool: ANY_SWORD
              drop: WATCH
              chance: .25
              message: ["Slashing the monster's hand off, his gold watch is yours more easily now."]
        CREATURE_GHAST:
            - tool: ANY
              drop: DIAMOND_SWORD
              chance: .12
              message: ["The Ghost gives up a most precious weapon!"]
            - tool: ANY
              drop: DIAMOND_HELMET
              chance: .12
              message: ["A Helmet of Diamond!"]
            - tool: ANY
              drop: DIAMOND_CHESTPLATE
              chance: .12
              message: ["You will feel invincible; if you can get that."]
            - tool: ANY
              drop: DIAMOND_LEGGINGS
              chance: .12
              message: ["The ultimate protection for your lower half."]
            - tool: ANY
              drop: DIAMOND_BOOTS
              chance: .12
              message: ["No polishing required."]
    
     
  17. Offline

    catballs

    ^^^ I'll try it when I get back to my server room this evening; I'm totally interested in randomizing damage values though!
     
  18. Offline

    Taranis01

    wohoooo :)
    just forgot to tell that but u already have done it :)
    and also the other new features, this plugin is going divinely
     
  19. Offline

    Zarius

    You currently use the "color:" condition for the damage value - doesn't take a range at the moment, will add that to the todo list.

    New version (lots of changes :))

    Version 0.9.7 (2011/07/01)

    • toolexcept: [IRON_PICKAXE,SAPLING] (excludes tools from the drop condition)
    • permissiongroup takes a string list
    • player & playergroup drops (PLAYER@name and PLAYERGROUP@group)
    • reload permission for /obr "otherblocks.admin.reloadconfig" (or just use "otherblocks.admin.*")
    • height condition (height: "<64" or height: ">100") - must have quotation marks and one of the "<>=" signs.
    • biome condition (can also be a list) eg. biome: [DESERT, FOREST]
    Examples:
    Show Spoiler
    Code:
            SAND:
                - tool: ALL
                  drop: DIAMOND
                  height: "<64"
                - tool: ALL
                  drop: EGG
                  height: ">63"
                - tool: ALL
                  toolexcept: [IRON_PICKAXE, SAPLING]
                  drop: CREATURE_SPIDER
                  biome: DESERT
    
            PLAYER@Xarqn:
                - tool: ALL
                  drop: COAL
                  quantity: 2
                - tool: SAPLING
                  drop: DIAMOND
                  quantity: 2
    
            PLAYERGROUP@CITIZEN:
                - tool: ALL
                  drop: LOG
                  quantity: 2
    
    
    Yay for weird examples! The first bit basically says if you break sand below height 64 with anything you get a diamond, if above 63 you get an egg. You also get a bonus spider if you break the sand in a desert biome with anything _except_ an ironpickaxe or sapling.

    Then if a player called Zarius dies by any means he'll drop two coal but if you manage to kill him with a sapling he'll drop two diamonds.

    Any player within the group "Citizen" (not case sensitive) will drop two logs (in addition to specific player drops).
     
  20. Offline

    Skirmisher

    Yay! :D

    Pff, just use 0.9.10; Firefox does that all the time :p
    Edit: Wow, 3 posts at almost the same time :D
     
  21. Offline

    Zarius

    Yeah, but that'll sort wrong in my folders :p Besides, almost got everything I want for version 1.0 :D
     
  22. Offline

    RugRats

    You should add light level support and then this plugin will be complete :p maybe
     
  23. Offline

    Skirmisher

    Misaligned fingers FTW! XD
     
  24. Offline

    RugRats

    @Zarius

    CREATURE_SHEEP:
    - tool: ALL
    drop: WOOL
    quantity: 0-3
    chance: 100
    It doesn't drop 0-3 wool anymore it drops the default?
     
  25. Offline

    Taranis01

    @Zarius
    i was faster :p ;)
    dont know if already suggested:
    <-- things will be dropped only if you're the specified player/ in the group
     
  26. Offline

    catballs

    so it would be color: red (yellow, or green) to indicate how much health the item has?
     
  27. Offline

    Zarius

    Thanks for that - will have to look into this as soon as I can (but wont be 'til tonight - 8am here).

    Misaligned?

    No, color is a number - 0 to 32,767 I think. For wool this works like 0 is white, 4 is yellow and 14 is red.

    For tools/weapons/armour this "color" value actually affects the damaged amount and for maps this number indicates a specific map.

    Try a value of 255 for a mostly destroyed weapon. I haven't played with this enough to know what numbers to use.

    Well, there's a new "permissiongroup:" field that allows for a list of groups - will consider this (still thinking about the best way to do it).

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  28. Offline

    Motumbo

    do we have shears yet?
     
  29. Offline

    Zarius

    With a Bukkit build supporting Minecraft 1.7 it should be automatic (I assume it'll be SHEARS, will check tonight).

    If you're currently using or game enough to use a 1.7 build (and have backed up!!!) try out OtherBlocks and let me know how it goes.
     
  30. Offline

    RugRats

    Don't! 1.7 build broke my world.. So now I have to use MCEDIT and remove all of the pistons and fences everyone placed because it spams my server with errors with the 1.7 build.
     
  31. Offline

    Zarius

    Oops - sorry, that wasn't meant to be an encouragement to use 1.7 - I'm hanging back too :D Have updated the post to better reflect what I meant :)
     

Share This Page