[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

    Niles

    I never got the error
    Code:
    [INFO] Invalid config file found and converted to proper name/format.
    
     
  3. Offline

    Maoman

    Well, i guess we're not quite the same then. :p Oh well - just waiting for minstrel to comment again, now.
     
  4. Offline

    BlueRazor

    @Moaman that would be AWESOME please post a link
     
  5. Offline

    Celtic Minstrel

    Did you delete "null" when editing?

    That's wrong, the colons are required.

    This is nothing to worry about. It just means you're on a case-insensitive filesystem and Bukkit is finding the OtherBlocks folder when it checks for the existence of the otherblocks folder. Renaming your jar to match the case of the folder will eliminate the warning, but again... it's not important.
     
  6. Offline

    Maoman

    Yes I deleted the null, I said that (though I admit, not all that clearly).

    Any time there's any colons it would say:

    Code:
    16:56:27 [SEVERE] Could not load 'plugins/otherblocks.jar' in folder 'plugins': 
    while scanning a simple key
     in "<reader>", line 16, column 5:
            GRASS
            ^
    could not found expected ':'
     in "<reader>", line 17, column 15:
                - tool: ANY
                      ^
    
    
    And it doesn't give any errors when there aren't colons. I understand that the colons are necessary - which is why i'm confused as to why it stopped giving errors when i took them out. This is exactly what I have in my config file for the first two entries when it gives me that error with the colons:

    Code:
    priority: high
    verbosity: low
    
    otherblocks:
        STONE:
            - tool: ANY_PICKAXE
              drop: COBBLESTONE
              quantity: 1-2
            - tool: GOLD_PICKAXE
              drop: STONE
              quantity: 1-2
            - tool: DIAMOND_PICKAXE
              drop: NETHERRACK
              quantity: 1
              chance: 50
        GRASS
            - tool: ANY
              drop: DIRT
            - tool: STONE_SPADE
              drop: GLOWSTONE_DUST
              quantity: 1-3
              chance: 3
            - tool: IRON_SPADE
              drop: REDSTONE
              quantity: 1-2
              chance: 10
            - tool: GOLD_SPADE
              drop: GRASS
            - tool: DIAMOND_SPADE
              drop: GLOWSTONE
              quantity: 1-3
              chance: 10
    And as for:

    Code:
    04:30:32 [INFO] While loading OtherBlocks (plugins/otherblocks.jar)  found old-data folder: plugins/otherblocks next to the new one:  plugins/OtherBlocks
     04:30:32 [INFO] Invalid config file found and converted to proper name/format.
    What does the second line about the invalid config file mean?

    ____________________________________________________
    And Blue Razor, how about i'll send it to you once i've got all this figured out and my config file actually works, huh? :D
     
  7. Offline

    Niles

    i see the problem. after GRASS there needs to be a colin, like so
    Code:
        GRASS:
    
    you had it as
    GRASS
    for stone you did STONE: wich was correct. it was just a simple mistake.
     
  8. Offline

    Maoman

    Derp. I knew it would be some stupid small thing. It's working fine now. However, now I have a question: Do i have to put
    tool: ANY
    drop: AIR
    After every single entry in order to negate the standard drop? As it is, if I break stone with a diamond pickaxe, I'll still get cobblestone whenever I get netherrack, and if I use a gold pickaxe, I'll get stone AND cobblestone, because the game says I get cobblestone and the mod says I get stone.
     
  9. Offline

    Niles

    yes. if not specified it will result in the game values. if you specify it in the plugin it should override the game values however...
     
  10. Offline

    BlueRazor

  11. Offline

    Maoman

    Here, Blue Razor. You should probably read through the entire config file and see what does what - I got pretty specific at times. For example, gold tools are usually "superheated." For example, you get glass from sand if you use a gold shovel, or stone from cobblestone, coal from logs, etc. Also, ores drop more stuff for higher level pickaxes, but they drop straight ingots instead of ore blocks because if each iron ore dropped two ore blocks, you could exploit that pretty easily. You'll also sometimes get two different blocks. For example, if you mine gravel with a diamond pickaxe, you get gravel, but there's a 10% chance you'll get fire, too (allow you to craft chainmail). If fire drops, you'll still get a gravel block. This allows you to exploit it and get infinite flint or gravel... but I couldn't really find a way around it and still do what I wanted with having different spades give a higher chance of dropping flint.

    -File snip-
     
  12. Offline

    BlueRazor

    @Maoman Thanks You SOooooooo Much man btw i have a youtube channel (make minecraft videos) check me out :) : BlueRazorProductions
     
  13. Offline

    Celtic Minstrel

    I think it's just noting that Bukkit renamed the config folder to be the proper case.

    I'm pretty sure this is necessary, though I believe you can say "NONE" instead of "AIR" to make the intent more obvious.
     
  14. Offline

    Maoman

    Maybe I missed it, but did you ever answer this question of mine?

     
  15. Offline

    Celtic Minstrel

    There's no facility for mutually exclusive drops, as far as I'm aware.
     
  16. Offline

    Plague

    considered inactive
     
  17. Offline

    Zarius

    @Plague
    Just curious - does inactive simply mean no recent activity from the developer? Or is it just because no-ones confirmed it working on newer builds? I've been running this on my CB740 server with no issues - amazing plugin (+sourcecode's on gitHub if it ever needs fixing).
     
  18. Offline

    Plague

    @Zarius
    The thread title has to be updated to reflect latest functioning recommended build
    The title gets used in update scripts and in the plugin site, so I cannot really just depend on user feedback
     
  19. Offline

    Zarius

    @Plague
    Ah, no worries. So the two options then are either the original author updating the thread title or someone taking over the code and reposting a new thread (ie. if the author cannot be contacted)?
     
  20. Offline

    Plague

  21. Offline

    Maoman

    :confused: Somehow I got in in my head that Celtic Minstrel was the developer for this mod. XD Kinda confused me for a moment. He's been answering all the questions - to which I thank for that, since you don't have to at all for someone else's mod.
     
  22. Offline

    xorvious

    I looked up the value on the wiki, it is listed as GENERIC, so I tried LEAVES@GENERIC and I dont get any drops from leaves at all. LEAVES@BIRCH works and LEAVES by itself works so I'm not sure if its the value that is wrong or something in the plugin.
    I'm glad it still works at all with no updates, hopefully this doesn't fall by the wayside. Thanks for the help Celtic!
     
  23. Offline

    Zarius

    I use LEAVES@GENERIC in my config and it works fine. Can you post the LEAVES@GENERIC section you've got?
     
  24. Offline

    xorvious

    Ok, here is what I was using last night,

    Code:
    otherblocks:
        LEAVES@GENERIC:
            - tool: AIR
              drop: APPLE
              quantity: 1
              chance: 5
    With this I was not getting any apple drops when I punched leaves so I changed it back to just LEAVES and it seemed to work fine. So I loaded it up this morning with GENERIC again, and changed the % to 50 just to test quicker, and now it does drop apples, BUT, only about 2-3 for a whole tree worth of leaves which works out to less that 10% chance. So figuring that rate, my 5% chance will almost never drop apples.
    At the same time I ended up with 5 saplings that are identical to plain saplings, but would not stack, indicating a different item id? Strange problems, I have no idea what is going on.
     
  25. Offline

    Celtic Minstrel

    Hehe, yeah, I'm not the developer here, though I did submit a pull request for some new features at one point. I might do it again at some point.

    ...I have no idea what's causing xorvious's problem, sorry.
     
  26. Offline

    Zarius

    @xorvious
    Odd - I had the opposite trouble. I had the chance at 10% and found the apples were falling far too often (like 10 per tree). Lowered the chance to 1% to compensate.
     
  27. Offline

    BlueJayofEvil

    I had the same problem as Zarius. I had apples set at 15% and gold apples a bit less than that and got about half my inventory's worth from 1 tree. I changed it to 5% for apples and 1% for golden apples and it's much better now.
     
  28. Offline

    Zarius

    1% for golden? I found my players were finding too many on 0.5% so I dropped it to 0.006% :D Personal preference though, I just like to keep them very rare :) Note: don't know how many decimal places actually matter in the code.
     
  29. Offline

    Niles

    Can anyone help me with my problem? I get this message when starting my server
    Code:
    19:08:17 [INFO] OtherBlocks: no values found in config file!
    my config file is in plugins/OtherBlocks/config.yml
    I have posted it here: http://pastie.org/1886992
    EDIT: I am using CraftBukkit build 740 and plugin version 0.7.4
     
  30. Offline

    Zarius

    The indentation is slightly out. Each of the block descriptions needs to be indented from the "otherblocks" section. You can fix this by putting two spaces in front of each block description, eg:

    instead of
    Code:
     GLASS:
         - tool: ALL
    
    use:
    Code:
       GLASS:
         - tool: ALL
    
     
  31. Offline

    Niles

Share This Page