[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

    Derf321

    Hey, let me say this is a GREAT plugin for any server, and I love how many creative things you can do with it! *thumbs up*
    I got everything else to work, but I can't seem to get boats to drop boats, or messages to work. Example:
    (put in the right format though)
    Help please?
     
  3. Offline

    Zarius

    Yup, boats were broken - fixed in new version 1.01 to be released soon. btw you can use:

    (code)(/code) ..replace ( with [.. blocks to add your examples in the right format.

    Forgot about this but there's a creepersheep plugin that does this for sheep (other mobs are planned), check it out here.

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

    Derf321

    Okay thanks! But what about the messages?
     
  5. I'm curious from a code stand-point. Does an arrow fired from a dispenser count the same as damage from a player held bow? (arrow = arrow?)

    If so, could the functionality be added to differentiate? (This is related to using OtherBlocks to fill my NoFarm need. ;) )
     
  6. Offline

    Zarius

    Messages are fine but because the boat drop is broken the message never appears. Messages for blocks, etc should work.

    Would need to test it but I think yes, it counts as the same. There should be a way to differentiate just got a lot things in my todo list :D

    Version 1.01 released

    * fix for boats
    * supports &# style colors in messages (eg. &3, &c)

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

    Steelstiletto

    Hey, just wanted to let you know that you have a few errors in your sample yml. Load it up in something that checks syntax (VIm or Notepad++ are my suggestions) and a few lines use tabs instead of spaces. Also, you have two configs that are the same thing: ob-fix_undroppables_opt and ob-goldtools-iceglassglow.
     
  8. Offline

    Zarius

    Oops, meant to remove the opt file :)

    I've fixed the tabs issue, have set Eclipse to use tabs instead of spaces so shouldn't happen again.
     
  9. Offline

    Nucleonic

    Hey, great Plugin.
    Been using it for a short while now and decided to change a few things in the config. however now i keep on getting this error. ive checked it against an example and see no problems. can you help?

    This is the YML file.

    Code:
    otherblocks:
        CLAY:
            - tool: ANY
              drop: CREATURE_SLIME
              chance: 1
              message: ["The slimy creature seems perturbed you removed it's home."]
    |
    | (etc)
    |
    V
        CREATURE_PIG:
            - tool: ALL
              drop: CREATURE_PIG_ZOMBIE
              chance: 0.25
              message: ["Express Delivery!"]
    
    And it outputs this error

    Code:
    [SEVERE] Error occurred while enabling OtherBlocks v1.01 (Is it up to date?): while parsing a block mapping; expected <block end>, but found BlockSequenceStart
    while parsing a block mapping
    in "<reader>", line 2, column 5:
            CLAY:
            ^
    expected <block end>, but found BlockSequenceStart
    in "<reader>", line 31, column 8:
              - tool: ALL
              ^
    
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:253)
        at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
        at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 16:16:27 [INFO] [Otherblocks] Payment method found (iConomy version: 5)
    2011-07-16 16:16:27 
    Im running 953 with v1.01
     
  10. Offline

    Gonfa

    Thanks man! awesome plugin, i really needed it :)
     
  11. Offline

    Zarius

    YAML errors indicate a problem with the formatting of the config file - check for tabs (do not use tabs, just spaces) and make sure the spacing is correct and consistent. If in doubt post/send me the whole config and I can check it.

    Glad you're enjoying it - watch this space, got heaps more ideas coming :D
     
  12. I'm getting this weird error when I boot, it seems to work fine regardless, but there it is.. Any idea what's causing it?

    Error 1.01 (open)

    Error occurred while enabling OtherBlocks v1.01 (Is it up to date?): java.lang.Integer cannot be cast to java.lang.String
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:431)
    at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  13. Offline

    Zarius

    @Lunarius Haberdash

    Hmm... do you have any numbered blocks? eg. 4: rather than COBBLESTONE:? Any numbered blocks need quotation marks ("4"). Otherwise not sure, will need to see the config.
     
  14. Offline

    Skirmisher

    Use [plain] tags to print tags like [code] without actually using them... ;)
     
  15. Ok, ever since I upgraded I've been getting a seriously huge error response from OtherBlocks.

    The New Error (open)

    2011-07-16 10:34:16 [SEVERE] java.lang.IllegalArgumentException: No enum const class org.bukkit.Material.NULL
    2011-07-16 10:34:16 [SEVERE] at java.lang.Enum.valueOf(Unknown Source)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.Material.valueOf(Material.java:14)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:893)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.Exception: Not a recognizable type
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:818)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.Exception: Not a recognizable type
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:818)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.Exception: Not a recognizable type
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:818)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.IllegalArgumentException: No enum const class org.bukkit.Material.NULL
    2011-07-16 10:34:16 [SEVERE] at java.lang.Enum.valueOf(Unknown Source)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.Material.valueOf(Material.java:14)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:893)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.Exception: Not a recognizable type
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:818)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.Exception: Not a recognizable type
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:818)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-16 10:34:16 [SEVERE] java.lang.Exception: Not a recognizable type
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.readTool(OtherBlocksConfig.java:818)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadSpecificFileVersion(OtherBlocksConfig.java:447)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:301)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
    2011-07-16 10:34:16 [SEVERE] at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:358)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-16 10:34:16 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-16 10:34:16 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    ANy idea what's throwing this off?
     
  16. Offline

    RugRats

    @Zarius here is my overhaul :D Feel free to do whatever you want with it.
    Code:
    otherblocks:
        SPECIAL_LEAFDECAY@BIRCH:
            - drop: DYE@BROWN
              chance: 0.95
        SPECIAL_LEAFDECAY:
            - drop: STICK
              chance: 1
            - drop: APPLE
              chance: 0.15
        GOLD_ORE:
            - tool: GOLD_PICKAXE
              drop: GOLD_INGOT
              quantity: 1
        IRON_ORE:
            - tool: GOLD_PICKAXE
              drop: IRON_INGOT
              quantity: 1
        CLAY:
            - tool: GOLD_SPADE
              drop: CLAY_BRICK
              quantity: 4
        LOG:
            - tool: GOLD_AXE
              drop: COAL
              color: CHARCOAL
              quantity: 1
        GLASS:
            - tool: ANY
              drop: GLASS
              quantity: 1
            - tool: [AIR, GLASS]
              drop: NOTHING
              damageattacker: 1
              message: "&4Ouch!& That hurt."
              chance: 20
        GLOWSTONE:
            - tool: ALL
              drop: GLOWSTONE
              quantity: 1
        BOOKSHELF:
            - tool: ANY
              drop: BOOKSHELF
              quantity: 1
        BOAT:
            - tool: ALL
              drop: BOAT
              quantity: 1
        DOUBLE_STEP:
            - tool: ALL
              drop: DOUBLE_STEP
              quantity: 1
        COBBLESTONE_STAIRS:
            - tool: ALL
              drop: COBBLESTONE_STAIRS
              quantity: 1
        WOOD_STAIRS:
            - tool: ALL
              drop: WOOD_STAIRS
              quantity: 1
        STONE:
            - tool: DIAMOND_PICKAXE
              drop: STONE
              quantity: 1
              chance: 20
            - tool: GOLD_PICKAXE
              drop: STONE
              quantity: 1
        COBBLESTONE:
            - tool: DIAMOND_PICKAXE
              drop: MOSSY_COBBLESTONE
              quantity: 1
              chance: 20
            - tool: GOLD_PICKAXE
              drop: STONE
              quantity: 1
        DIRT:
            - tool: ALL
              drop: BUCKET
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: LEATHER_BOOTS
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: SADDLE
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: BOWL
              quantity: 0.10
              chance: 1
        GRAVEL:
            - tool: ALL
              drop: BUCKET
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: LEATHER_BOOTS
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: SADDLE
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: BOWL
              quantity: 1
              chance: 0.10
        GRASS:
            - tool: ALL
              drop: BUCKET
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: LEATHER_BOOTS
              quantity: 1
              chance: 1
            - tool: ALL
              drop: SADDLE
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: BOWL
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: SEEDS
              quantity: 1-3
              chance: 5
              time: DAY
            - tool: ALL
              drop: BROWN_MUSHROOM
              quantity: 1
              chance: 5
              time: NIGHT
        SAND:
            - tool: ALL
              drop: BUCKET
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: LEATHER_BOOTS
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: SADDLE
              quantity: 1
              chance: 0.10
            - tool: ALL
              drop: BOWL
              quantity: 1
              chance: 0.10
            - tool: GOLD_SPADE
              drop: GLASS
              quantity: 1
        CREATURE_CHICKEN:
            - tool: ALL
              drop: EGG
              quanity: 0-2
              chance: 100
            - tool: ALL
              drop: FEATHER
              quantity: 0-2
              chance: 50
        CREATURE_PIG:
            - tool: GOLD_SWORD
              drop: GRILLED_PORK
              quantity: 0-2
        CREATURE_PIG_ZOMBIE:
            - tool: ALL
              drop: GRILLED_PORK
              quantity: 0-2
              chance: 100
        CREATURE_SPIDER:
            - tool: ALL
              drop: STRING
              quantity: 0-3
              chance: 100
              time: NIGHT
            - tool: ALL
              drop: STRING
              quantity: 0-1
              chance: 100
              time: DAY
        CREATURE_ZOMBIE:
            - tool: ALL
              drop: FEATHER
              quantity: 0-2
              chance: 100
        CREATURE_SQUID:
            - tool: ALL
              drop: INK_SACK
              quantity: 0-3
              chance: 100
        CREATURE_SKELETON:
            - tool: ALL
              drop: BONE
              quantity: 0-2
              chance: 100
            - tool: ALL
              drop: ARROW
              quantity: 0-2
              chance: 100
            - tool: GOLD_SWORD
              drop: BOW
              quantity: 1
              chance: 100
        CREATURE_WOLF@NEUTRAL:
            - tool: ALL
              drop: DEFAULT
        CREATURE_WOLF@ANGRY:
            - tool: ALL
              drop: BREAD
              quantity: 1-2
              chance: 100
        CREATURE_WOLF@TAME:
            - tool: ALL
              drop: DEFAULT
        CREATURE_GHAST:
            - tool: ALL
              drop: SULPHUR
              quantity: 0-15
              chance: 100
        CREATURE_SLIME:
            - tool: ALL
              drop: SLIME_BALL
              quantity: 0-3
              chance: 100
        CREATURE_CREEPER:
            - tool: ALL
              drop: SULPHUR
              quantity: 0-3
              chance: 100
              time: NIGHT
            - tool: ALL
              drop: SULPHUR
              quantity: 0-1
              chance: 100
              time: DAY
        CREATURE_PIG@SADDLED:
            - tool: ALL
              drop: SADDLE
              quantity: 1
        ANY_FURNACE:
            - tool: ANY
              drop: CONTENTS
            - tool: ANY_PICKAXE
              drop: FURNACE
        CREATURE_COW:
            - tool: GOLD_SWORD
              drop: MILK_BUCKET
              chance: 25
     
  17. I seem to be having a problem with creature drops (block drops seem to be running fine) in the latest version (1.01), using bukkit dev 996 (which is likely the problem).

    Upon death the event to decide which drop occurs seems to be running multiple times as I'm getting a truckload of drops from every mob with multiple instances of the same drop too. I'll drop my configuration file below, but I don't see any blatant problem with it.

    I don't know if it's a bug in the development version of bukkit, a weird interaction with other plugins (I don't think I have anything that may interfere with creature drops) or an incompatibility of the plugin with the latest bukkit revisions but I'm letting you know regardless as it may be something you might wish to look into.

    Cheers for the great plugin, my players really like it.

    Code:
    defaults:
      - biomes: ALL
        worlds: ALL
    
    otherblocks:
      CREATURE_CHICKEN:
        - tool: ANY
          drop: FEATHER
          quantity: 2-4
          chance: 60
        - tool: ANY
          drop: EGG
          quantity: 1-2
          chance: 20
        - tool: ANY
          drop: SEEDS
          quantity: 1-2
          chance: 20
      CREATURE_COW:
        - tool: ANY
          drop: LEATHER
          quantity: 1-6
          chance: 80
      CREATURE_CREEPER:
        - tool: ANY_SWORD
          drop: SULPHUR
          quantity: 1-4
          chance: 20
        - tool: ANY_SWORD
          drop: REDSTONE
          quantity: 1-2
          chance: 10
        - tool: ANY_SWORD
          drop: TNT
          chance: 5
          message: ["You slice through the green monster so quickly its explosive brain falls out, inert."]
        - tool: ANY
          drop: NOTHING
          chance: 100
      CREATURE_GHAST:
        - tool: ANY_SWORD
          drop: WOOL
          quantity: 1-2
          chance: 100
        - tool: ANY_SWORD
          drop: SULPHUR
          quantity: 1-2
          chance: 50
        - tool: ANY_SWORD
          drop: DIAMOND
          chance: 1
        - tool: ANY
          drop: NOTHING
          chance: 100
      CREATURE_PIG:
        - tool: GOLD_SWORD
          drop: GRILLED_PORK
          quantity: 1-3
          chance: 100
        - tool: ANY
          drop: PORK
          quantity: 1-3
          chance: 80
        - tool: ANY
          drop: LEATHER
          quantity: 1-4
          chance: 80
      CREATURE_PIG_ZOMBIE:
        - tool: ANY_SWORD
          drop: GOLD_SWORD
          chance: 5
        - tool: ANY_SWORD
          drop: GOLD_HELMET
          chance: 5
        - tool: ANY_SWORD
          drop: GOLD_CHESTPLATE
          chance: 5
        - tool: ANY_SWORD
          drop: GOLD_LEGGINGS
          chance: 5
        - tool: ANY_SWORD
          drop: GOLD_BOOTS
          chance: 5
        - tool: ANY
          drop: DYE
          color: 1
          chance: 30
        - tool: ANY
          drop: NOTHING
          chance: 100
      CREATURE_SHEEP:
        - tool: ANY
          drop: LEATHER
          quantity: 1-3
          chance: 60
      CREATURE_SKELETON:
        - tool: ANY_SWORD
          drop: BONE
          quantity: 2-4
          chance: 50
        - tool: ANY_SWORD
          drop: ARROW
          quantity: 4-8
          chance: 20
        - tool: ANY_SWORD
          drop: BOW
          chance: 10
        - tool: ANY_SWORD
          drop: STICK
          chance: 10
        - tool: ANY_SWORD
          drop: DYE
          color: 7
          chance: 10
        - tool: ANY_SWORD
          drop: DYE
          color: 8
          chance: 10
        - tool: ANY_SWORD
          drop: DYE
          color: 15
          chance: 10
        - tool: ANY
          drop: NOTHING
          chance: 100
      CREATURE_SLIME:
        - tool: ANY
          drop: SLIME_BALL
          chance: 100
      CREATURE_SPIDER:
        - tool: ANY_SWORD
          drop: WEB
          chance: 5
          message: ["Puncturing the abdomen of the arachnid reveals its sticky web glands."]
      CREATURE_SQUID:
        - tool: GOLD_SWORD
          drop: COOKED_FISH
          quantity: 1-2
          chance: 100
        - tool: ANY
          drop: RAW_FISH
          quantity: 1-2
          chance: 100
        - tool: ANY
          drop: DYE
          color: 0
          quantity: 1-2
          chance: 20
      CREATURE_WOLF:
        - tool: ANY
          drop: LEATHER
          quantity: 1-2
          chance: 50
      CREATURE_ZOMBIE:
        - tool: ANY_SWORD
          drop: BONE
          quantity: 1-2
          chance: 60
        - tool: ANY_SWORD
          drop: DYE
          color: 10
          chance: 10
        - tool: ANY_SWORD
          drop: LEATHER_HELMET
          chance: 5
        - tool: ANY_SWORD
          drop: LEATHER_CHESTPLATE
          chance: 5
        - tool: ANY_SWORD
          drop: LEATHER_LEGGINGS
          chance: 5
        - tool: ANY_SWORD
          drop: LEATHER_BOOTS
          chance: 5
        - tool: ANY
          drop: NOTHING
          chance: 100
      SAND:
        - tool: GOLD_SPADE
          drop: GLASS
          chance: 75
          quantity: 1-2
      GRAVEL:
        - tool: GOLD_SPADE
          drop: SOUL_SAND
          chance: 75
          quantity: 1-2
      REDSTONE_ORE:
        - tool: GOLD_PICKAXE
          drop: GLOWSTONE_DUST
          quantity: 4
      GLOWING_REDSTONE_ORE:
        - tool: GOLD_PICKAXE
          drop: GLOWSTONE_DUST
          quantity: 4
      GLOWSTONE:
        - tool: GOLD_PICKAXE
          drop: GLOWSTONE
          chance: 30
      GLASS:
        - tool: ANY
          drop: GLASS
        - tool: AIR
          drop: NOTHING
          damageattacker: 1-2
          message: ["Ouch! Breaking glass with your bare hands hurts."]
          chance: 50
        - tool: ANY
          toolexcept: GOLD_PICKAXE
          drop: NOTHING
          exclusive: 1
          chance: 60
      LOG:
        - tool: ANY
          drop: LOG
          quantity: 1-2
        - tool: GOLD_AXE
          drop: COAL
          quantity: 1-2
          chance: 70
          exclusive: 1
      DIAMOND_ORE:
        - tool: [IRON_PICKAXE, DIAMOND_PICKAXE, GOLD_PICKAXE]
          drop: DIAMOND_BLOCK
          message: ["What a lucky day! That block of diamond was very rich."]
          chance: 2
      ICE:
        - tool: GOLD_PICKAXE
          drop: ICE
          chance: 40
          chance: 100
        - tool: ANY
          drop: RAW_FISH
          quantity: 3-6
          chance: 5
          message: ["Breaking the ice reveals a long frozen school of delicious fish."]
      GRASS:
        - tool: ALL
          drop: SEEDS
          quantity: 1-3
          chance: 2
          time: DAY
        - tool: ALL
          drop: BROWN_MUSHROOM
          quantity: 1
          chance: 3
          time: NIGHT
        - tool: GOLD_HOE
          drop: GRASS
          chance: 20
      STONE:
        - tool: GOLD_PICKAXE
          drop: STONE
          quantity: 1-2
      CLAY:
        - tool: GOLD_SPADE
          drop: CLAY_BRICK
          quantity: 1-4
        - tool: ANY
          drop: CREATURE_SLIME
          chance: 5
          message: ["The slimy creature seems perturbed by the fact that you removed its cozy home."]
      WOOD_STAIRS:
        - tool: ANY_AXE
          drop: WOOD_STAIRS
      COBBLESTONE_STAIRS:
        - tool: ANY_PICKAXE
          drop: COBBLESTONE_STAIRS
      BOOKSHELF:
        - tool: ANY_AXE
          drop: BOOKSHELF
      BOAT:
        - tool: ALL
          drop: BOAT
      LEAVES:
        - tool: ANY
          drop: APPLE
          chance: 2
        - tool: ANY
          drop: SAPLING
          chance: 5
        - tool: ANY
          drop: STICK
          quantity: 1-2
          chance: 3
        - tool: ANY
          drop: CREATURE_SPIDER
          chance: 0.05
        - tool: ALL
          drop: GOLDEN_APPLE
          chance: 0.02
          message: ["A §Egolden§F apple falls from the tree!"]
      SPECIAL_LEAFDECAY:
        - drop: AIR
          chance: 100
        - drop: SAPLING
          chance: 2
        - drop: STICK
          quantity: 1-2
          chance: 0.5
        - drop: CREATURE_SPIDER
          chance: 0.1
     
  18. Offline

    Celtic Minstrel

    It's a little of both. The § symbol is considered to begin a colour code by Minecraft, but many plugins define their own colour codes which they then map to the §-based ones.

    I see you've chosen to do this as well, but did you remember to consider the point that & may be desired in a non-colour-code context? For example, if the message is "green&blue", it won't come out as intended; you need some way to allow it to do so. (I think the most common is replacing double ampersands with single ones.)

    Or if you use a build beyond the recommended one. :p
     
  19. I was wondering if this was capable of handling non-death events?
    IE
    CREATURE_CHICKEN
    - tool: seed
    drop: feathers
    quantity: 1-4
    chance: 50
    - tool: seed
    drop: egg
    quantity: 1
    chance: 50

    (Also: I never got the skinny on this, is it possible to do either/or events, rather than '% chance of all'? If so could I get an example?)

    Also:

    Is it possible to set it to drop damaged items? (It drops leather armor with 20-60% of it's health left, for instance)
     
  20. Offline

    gsand

    Hi,

    I was wondering, is it possible to blacklists certain groups from receiving specific drops?

    Thanks
     
  21. Offline

    Zarius

    Yup, can do this...
    For an example lets use two groups, hunters and minters.
    Give the hunters groups the permission "otherblocks.custom.hunters". Then for all drops that you want them to have give them permissions: "hunters" and for all drops you don't want them to have use permissionsexcept: "hunters".
     
  22. Offline

    gsand

    Thanks Awesome!

    On another note, know of any plugin that disable mob aggro with a permission node?
     
  23. Offline

    Zarius

    Not sure if it supports permissions yet but take a look at Friendly.
     
  24. Offline

    gsand

    thanks
     
  25. Offline

    RugRats

    @Zarius With the ob-examples can you make your own file and then in the global config you would put like
    Code:
    ob-adventure-drops: yes
    Would it work if there was a file called ob-adventure-drops?

    Also what does exclusive mean? Like exclusive: 1. If so this would be very cool if it was a yes for my first question, because then I can just rock out new ideas for drops for my server :O
     
  26. Offline

    Zarius

    I'd call it rr-adventure-drops :D But yes, it then looks for a file called rr-adventure-drops.yml.

    Exclusive means that if this item drops no others will (unless they also have the same exclusive tag).

    eg. grass: -tool: ALL drop: APPLE -tool: ALL drop: DIAMOND chance: 1 exclusive: 1 - if a diamond does happen to drop then you will get no apple, without the exclusive tag you'll always get an apple and if a diamond drops you get both.
     
  27. Offline

    RugRats

    Ah very cool thank you very much :D!

    @Zarius
    Code:
    2011-07-16 23:06:54 [SEVERE] Error occurred while enabling OtherBlocks v1.01 (Is it up to date?): while scanning for the next token; found character     '\t' that cannot start any token
    while scanning for the next token
    found character     '\t' that cannot start any token
     in "<reader>", line 36, column 24:
            ob-undead_chaos: no         # the undead shall rise again ...
                               ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at com.sargant.bukkit.otherblocks.OtherBlocksConfig.loadConfig(OtherBlocksConfig.java:253)
        at com.sargant.bukkit.otherblocks.OtherBlocksConfig.load(OtherBlocksConfig.java:66)
        at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:242)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:864)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:152)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:137)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Error on start up with default config not touching anything. I can't find the problem.

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

    Celtic Minstrel

    Yes. Use the color: attribute to set how damaged it is (higher = more damaged, up to a maximum which is dependent on the item and can be looked up on the Minecraft wiki)

    @RugRats — There's a tab on line 36.
     
  29. Offline

    Zarius

    either/or - see this example:

    Code:
      GRASS:
        - tool: ALL
          drop: EGG
        - tool: ALL
          drop: IRON_SWORD@RANGE-125-250  # random 0% to 50% durability
          chance: 50
          exclusive: 1
        - tool: ALL
          drop: CREATURE_SPIDER
          chance: 5
          exclusive: 2
    
    This will drop an egg, OR an iron sword 50% of the time OR a spider 5% of the time.
     
  30. Offline

    saumonzx

    Finally worked thanks ! But my config file isn't working (At least, it say that it is reloaded, and not internal error :)).
    Can you take a look at it ?

    Code:
    priority: lowest
    verbosity: normal
    
    otherblocks:
        PLAYER:
            - tool: ALL
              drop: CREATURE_ZOMBIE
        GLASS:
            - tool: ALL
              drop: GLASS
        CREATURE_ZOMBIE:
            - tool: ALL
              drop: CREATURE_ZOMBIE
              chance: 50
        BOOKSHELF:
            - tool: ALL
              drop: BOOKSHELF
        COBBLESTONE_STAIRS:
            - tool: ALL
              drop: COBBLESTONE_STAIRS
        WOOD_STAIRS:
            - tool: ALL
              drop: WOOD_STAIRS
        CREATURE_CHICKEN:
            - tool: ALL
              drop: SLIME_BALL
        CREATURE_SPIDER:
            - tool: ALL
              drop: WEB
              chance: 50
              quantity: 1-3
        CREATURE_ZOMBIE:
            - tool: ALL
              drop: MOSSY_COBBLESTONE
              quantity: 1-3
     
  31. You sir, write the most amazing stuff. ;)

    1. But does that work on LivingEntity's?
    IE ~ Feed a Chicken seeds it drops stuff. (Similar to SheepFeed)​

    2. The exclusive thing, can I set multiple things exclusive: 1 and have them drop as a group?

    3. Can I have something that always has a chance to drop (IE ~ An egg) as well as other items that only drop some of the time? (IE ~ Spiders). So basically: "Grass always drops an egg, sometimes it ALSO drops"
     

Share This Page