[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

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    [​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 (Text):
    1.  
    2.     # Simple glass drop fix
    3.     GLASS:
    4.       - drop: GLASS
    5.  
    6.     # Players drop Zombies on death, 50% of the time
    7.     PLAYER:
    8.       - drop: CREATURE_ZOMBIE
    9.         chance: 50%
    10.  
    11.     # Spiders killed with any sword at night have a 10% chance to drop web,
    12.     # otherwise they drop whatever they normally would
    13.     CREATURE_SPIDER:
    14.       - tool: ANY_SWORD
    15.         time: NIGHT
    16.         drop: WEB
    17.         chance: 10%
    18.  
    19.     # Trees drop apples (or cocoa from birch trees)
    20.     SPECIAL_LEAFDECAY@GENERIC:
    21.       - drop: APPLE
    22.         chance: 5%
    23.     SPECIAL_LEAFDECAY@BIRCH:
    24.       - drop: DYE@BROWN
    25.         chance: 5%
    26.  
    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

    Celtic Minstrel

    My BukkitDev Profile
    My Plugins (6)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ah, sorry, I kinda dropped out of Bukkit-land for awhile. I'm fine with you officially taking over from Cyklo, and I'll try to get my code to you at some point.
     
  3. Offline

    Legolas75893

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Mind updating the Material and Creature list?
     
  4. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Updated the wiki with WEB, DETECTOR_RAIL, POWERED_RAIL, TRAPDOOR, DEAD_BUSH & LONG_GRASS - did I miss any? This should work in the latest version I think (I know that WEB does as I use it already) - gotta go to work now but will test this tonight and update the plugin if needed.
     
  5. Offline

    Legolas75893

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  6. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Oops :D Don't know if it'll work but could be cool to have a particular (pre-explored) map randomly drop from sand as a "treasure map". Will look into it.

    Would be even better if you could place an x marks the spot on maps...
     
  7. Offline

    Legolas75893

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Mhm. <3 we thought the same things lol.
     
  8. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Maps work fine - just use MAP as the drop item and color: <mapnumber> to determine the map dropped :D Coding is thanks to Cyklo & Bukkit, I didn't have to change anything to enable maps.
     
  9. Offline

    Legolas75893

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Any chance for "CREATURE_PLAYER" any time soon?

    EDIT: Also, maybe certain events happening? Like, kill a zombie and it has a 1% chance of exploding?
     
  10. Offline

    Celtic Minstrel

    My BukkitDev Profile
    My Plugins (6)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Note on maps, make sure you put the number of a map that has already been crafted by normal means.

    Better still, don't use maps as a drop.

    @Zarius – Just wondering, would you be interested in the code I put together for things like paintings and boats? I don't think I tested it, but if you don't already have that implemented...
     
  11. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Not sure that I'd use player drops myself but shouldn't be too hard (I hope). The exploding sounds cool too, will see if it's possible.

    Hadn't tested the map with a non-crafted map number - what happens? And wonder if there is a way to have the plugin detect this and not drop a non-crafted map.

    @Celtic Minstrel - yes, would love to see the code :) I'm probably working on different things so it'll save time and I don't mind testing it. Update your github repo and do a pull request?
     
  12. Offline

    Celtic Minstrel

    My BukkitDev Profile
    My Plugins (6)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm not going to make a pull request since it's not tested, but you can find the code on my repository.
     
  13. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Updated to 0.7.6 - small change: added /otherblocksreload (or /obr) command to reload the config file.
     
  14. Offline

    ZeratulsDownfall

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't understand where to download the jar, the site's only giving me the source code :/
     
  15. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Doh, I forgot to link to the raw file - fixed now, try downloading again.
     
  16. Offline

    ZeratulsDownfall

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks a bunch ^_^
     
  17. Offline

    Celtic Minstrel

    My BukkitDev Profile
    My Plugins (6)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Alright, @Zarius – I just pushed a version with code for water damage, though again, it's not tested and may need some work.
     
  18. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Cool (suprisingly I took at look at your repository about 2 minutes after you pushed the change :D) - have been looking through the code and will test soon. Love the new synonyms.
     
  19. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So ... Does this replace the drops? Or does it add additional drops?
    Example: I set stone to drop coal 100% of the time, will it drop stone and coal? Or just coal?
     
  20. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It can do both, if you set coal to 50% and add not other drops to stone then stone will drop coal 50% and default (cobble) 50%. If you set coal to 100% then it will only drop coal.

    You could also set it to drop coal 100% and gravel 100% then (because the total is above 100%) there should be no default drop and you'd have both coal & gravel dropping. You could add three, four, however many drops you want with different percentages each.
     
  21. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank you. I am working on configuring the plugin now. If I do not edit stone for example ... and just leave stone out of the config file, will minecraft just drop the default stone? Because I don't want to have to go in and edit each item. :)
     
  22. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That's correct, drops will not be altered from the default (which may or may not have already been modified by other plugins) unless you add a section for that object/block.
     
  23. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I cant seem to find the lapis dye
     
  24. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    for lapis dye would I do ...

    drop: INK_SACK
    color: BLUE

    ?
     
  25. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Correct - that should work.
     
  26. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    also, is there a way to just flat out turn off creeper explosions with this plug in?

     
  27. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Not currently - the plugin only affects drops. I'm thinking about an "effects" field where you could add a chance of other creatures exploding, possibly with an attached drop - eg. a zombie could explode into a shower of diamonds, a spider have a 20% chance of exploding into two other spiders (not sure where you'd use this, but it'd be cool :D). If this is possible then it would be easy to disable the creeper explosions.

    I currently use "HigherExplosives" (don't know when this was last updated but working fine on RB860 still) to control creeper explosions as I don't like disabling them completely - I just reduce the size of the damaged area and increase the yield to 100% (ie. all destroyed blocks drop so you can easily fix holes).
     
  28. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    HEY. Thanks for all the help. Also, can you check my code on that website. I dont think I have any errors.

    Code (Text):
    1. priority: lowest
    2. verbosity: low
    3.  
    4. otherblocks:
    5.     DIRT:
    6.         - tool: ALL
    7.           drop: DIRT
    8.           chance: 100
    9.  
    10.         - tool: ALL
    11.           drop: SEEDS
    12.           chance: 1
    13.  
    14.         - tool: ALL
    15.           drop: STICK
    16.           chance: 5
    17.  
    18.         - tool: ALL
    19.           drop: BONE
    20.           chance: 2
    21.  
    22.         - tool: ALL
    23.           drop: GLOWSTONE_DUST
    24.           chance: 20
    25.  
    26.         - tool: ALL
    27.           drop: INK_SACK
    28.           color: BROWN
    29.           chance: 3
    30.  
    31.         - tool: ALL
    32.           drop: YELLOW_FLOWER
    33.           chance: 3
    34.  
    35.         - tool: ALL
    36.           drop: RED_ROSE
    37.           chance: 3
    38.  
    39.     GRASS:
    40.         - tool: ALL
    41.           drop: DIRT
    42.           chance: 100
    43.  
    44.         - tool: ALL
    45.           drop: SEEDS
    46.           chance: 1
    47.  
    48.         - tool: ALL
    49.           drop: STICK
    50.           chance: 5
    51.  
    52.         - tool: ALL
    53.           drop: BONE
    54.           chance: 2
    55.  
    56.         - tool: ALL
    57.           drop: GLOWSTONE_DUST
    58.           chance: 20
    59.  
    60.         - tool: ALL
    61.           drop: INK_SACK
    62.           color: BROWN
    63.           chance: 3
    64.  
    65.         - tool: ALL
    66.           drop: YELLOW_FLOWER
    67.           chance: 3
    68.  
    69.         - tool: ALL
    70.           drop: RED_ROSE
    71.           chance: 3
    72.  
    73.     STONE:
    74.         - tool: ALL
    75.           drop: COBBLESTONE
    76.           chance: 100
    77.  
    78.         - tool: ALL
    79.           drop: COAL
    80.           chance: 4
    81.           quantity: 1-2
    82.  
    83.         - tool: ALL
    84.           drop: GOLD_INGOT
    85.           chance: .25
    86.           quantity: 1-2
    87.  
    88.         - tool: ALL
    89.           drop: IRON_INGOT
    90.           chance: .5
    91.           quantity: 1-2
    92.  
    93.         - tool: ALL
    94.           drop: DIAMOND
    95.           chance: .1
    96.           quantity: 1-2
    97.  
    98.         - tool: ALL
    99.           drop: MOSSY_COBBLESTONE
    100.           chance: 4
    101.  
    102.     GOLD_ORE:
    103.         - tool: ALL
    104.           drop: GOLD_INGOT
    105.           chance: 100
    106.           quantity: 1-4
    107.  
    108.         - tool: ALL
    109.           drop: IRON_INGOT
    110.           chance: 5
    111.  
    112.         - tool: ALL
    113.           drop: DIAMOND
    114.           chance: 1
    115.  
    116.     IRON_ORE:
    117.         - tool: ALL
    118.           drop: IRON_INGOT
    119.           chance: 100
    120.           quantity: 1-4
    121.  
    122.         - tool: ALL
    123.           drop: GOLD_INGOT
    124.           chance: 5
    125.  
    126.         - tool: ALL
    127.           drop: DIAMOND
    128.           chance: .5
    129.  
    130.     COAL_ORE:
    131.         - tool: ALL
    132.           drop: COAL
    133.           chance: 100
    134.           quantity: 2
    135.  
    136.     LOG:
    137.         - tool: ALL
    138.           drop: LOG
    139.           chance: 100
    140.           quantity: 1-2
    141.  
    142.     DIAMOND_ORE:
    143.         - tool: ALL
    144.           drop: DIAMOND
    145.           chance: 100
    146.           quantity: 1-5
    147.  
    148.         - tool: ALL
    149.           drop: DIAMOND_BLOCK
    150.           chance: 2
    151.  
    152.     SAND:
    153.         - tool: ALL
    154.           drop: SAND
    155.           chance: 100
    156.  
    157.         - tool: ALL
    158.           drop: GLOWSTONE_DUST
    159.           chance: 20
    160.  
    161.     LEAVES@GENERIC:
    162.         - tool: ALL
    163.           drop: APPLE
    164.           chance: 5
    165.  
    166.         - tool: ALL
    167.           drop: GOLDEN_APPLE
    168.           chance: .75
    169.  
    170.         - tool: ALL
    171.           drop: AIR
    172.           chance: 100
    173.  
    174.         - tool: ALL
    175.           drop: SAPLING
    176.           chance: 5
    177.  
    178.     REDTONE_ORE:
    179.         - tool: ALL
    180.           drop: REDSTONE
    181.           chance: 100
    182.           quantity: 1-5
    183.  
    184.     ICE:
    185.         - tool: ALL
    186.           drop: ICE
    187.           chance: 100
    188.           quantity: 1-2
    189.  
    190.         - tool: ALL
    191.           drop: RAW_FISH
    192.           chance: 5
    193.  
    194.     LAPIS_ORE:
    195.         - tool: ALL
    196.           drop: INK_SACK
    197.           color: BLUE
    198.           chance: 100
    199.           quantity: 3-6
    200.  
    201.     CREATURE_CHICKEN:
    202.         - tool: ALL
    203.           drop: EGG
    204.           chance: 50
    205.           quantity: 1-2
    206.  
    207.         - tool: ALL
    208.           drop: FEATHER
    209.           chance: 50
    210.           quantity: 1-3
    211.  
    212.         - tool: ALL
    213.           drop: AIR
    214.           chance: 100
    215.  
    216.     CREATURE_COW:
    217.         - tool: ALL
    218.           drop: LEATHER
    219.           chance: 100
    220.           quantity: 1-3
    221.  
    222.         - tool: ALL
    223.           drop: MILK_BUCKET
    224.           chance: 3
    225.  
    226.     CREATURE_SHEEP:
    227.         - tool: ALL
    228.           drop: WOOL
    229.           chance: 100
    230.           quantity: 1-4
    231.  
    232.     CREATURE_PIG:
    233.         - tool: ALL
    234.           drop: PORK
    235.           chance: 100
    236.           quantity: 1-2
    237.  
    238.         - tool: ALL
    239.           drop: GRILLED_PORK
    240.           chance: 5
    241.  
    242.     CREATURE_SQUID:
    243.         - tool: ALL
    244.           drop: INK_SACK
    245.           color: BLACK
    246.           chance: 100
    247.           quantity: 5
    248.  
    249.     CREATURE_SPIDER:
    250.         - tool: ALL
    251.           drop: STRING
    252.           chance: 100
    253.           quantity: 1-3
    254.  
    255.         - tool: ALL
    256.           drop: GLOWSTONE_DUST
    257.           chance: 40
    258.           quantity: 1-2
    259.  
    260.         - tool: ALL
    261.           drop: NETHERRACK
    262.           chance: 10
    263.           quantity: 1-3
    264.  
    265.         - tool: ALL
    266.           drop: SOUL_SAND
    267.           chance: 10
    268.           quantity: 1-3
    269.  
    270.     CREATURE_SKELETON:
    271.         - tool: ALL
    272.           drop: ARROW
    273.           chance: 100
    274.           quantity: 3-5
    275.  
    276.         - tool: ALL
    277.           drop: GLOWSTONE_DUST
    278.           chance: 40
    279.           quantity: 1-2
    280.  
    281.         - tool: ALL
    282.           drop: NETHERRACK
    283.           chance: 10
    284.           quantity: 1-3
    285.  
    286.         - tool: ALL
    287.           drop: SOUL_SAND
    288.           chance: 10
    289.           quantity: 1-3
    290.  
    291.     CREATURE_ZOMBIE:
    292.         - tool: ALL
    293.           drop: GLOWSTONE_DUST
    294.           chance: 40
    295.           quantity: 1-2
    296.  
    297.         - tool: ALL
    298.           drop: NETHERRACK
    299.           chance: 10
    300.           quantity: 1-3
    301.  
    302.         - tool: ALL
    303.           drop: SOUL_SAND
    304.           chance: 10
    305.           quantity: 1-3
    306.  
    307.         - tool: ALL
    308.           drop: AIR
    309.           chance: 100
    310.  
     
  29. Offline

    Motumbo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ALSO, I cannot get apples to drop from the leaves. Can you check that for me?
     
  30. Offline

    Zarius

    My BukkitDev Profile
    My Plugins (10)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    All looks fine to me and parses ok (note: you only need to test with that website if you're getting errors from this plugin when you start up the server).

    Let me know how those % drops work for you, I had golden apples at around the same (0.75%) and seemed to be getting too many, I've changed mine to 0.006% and with about 8 regular players we find a golden apple once a week I think (unless they're not telling me about all the ones they find :D). Really depends on how rare you want to keep it.

    Keep in mind that leaves@generic only applies if you actually destroy the blocks. If you want to affect the leaf decay you need SPECIAL_LEAFDECAY@<treetype> (GENERIC,BIRCH or REDWOOD).

    Love the idea of ice having a chance to drop raw fish :D Have you considered having your spiders a % chance of dropping WEB?
     

Share This Page