[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

    Rurikar22

    If you use TNT it overrides the settings. For example, I replaced Iron ore to drop only Gold Ore, but if I TNT a bunch of Iron I can still get the ore.
     
  3. Offline

    computerquip

    I'm trying to get BIRCH trees to drop apples only although this gets an error stating that it BIRCH is an invalid TreeSpecies. v

     
  4. Offline

    Celtic Minstrel

    @computerquip - You misunderstood the error; it's not that BIRCH is an invalid species; it's that TreeSpecies does not exist in your version of CraftBukkit. You need to use 560 for it to work (I think no earlier or later version will work).

    @cyklo - Could we have an update for 590+ soon? :)
     
  5. Offline

    cyklo

    Is it not working? Damn. I'm stupidly busy in work at the moment - I've not slept since Sunday. I will release what's working next time I get a chance to run some tests.
     
  6. Offline

    Shay Williams

    Is there a why to make it ONLY drop what you specify, like overwrite the default drop? Thanks.
     
  7. Offline

    Celtic Minstrel

    Was broken from 561 upward, actually.

    Yes. I think it the new way was putting "flags: [DEFAULT_NEVER]" in your drop definition. If that doesn't work , he hasn't implemented it yet; you can leave it in if you like, but also add a drop for air at 100% chance.
     
  8. Offline

    Shay Williams

    Thanks, adding the flag worked :D!
     
  9. Offline

    Celtic Minstrel

    Oh, so he did add that already. I wasn't sure.
     
  10. Offline

    Shay Williams

    Never-mind, solved.
     
  11. Offline

    cyklo

    Did I? :eek: I think I am losing my mind. I seriously need some sleep.

    Anyway, I have a couple of free hours now, so I shall check what's going on with the latest builds (and what it is I've added since 0.7.1) and push out what I've got so far. Hold on!

    Right, just uploaded 0.7.2. A changelog: (hooray for git commit messages!)

    • Specifying tree type also works for leaf decay events (e.g. SPECIAL_LEAFDECAY@BIRCH:)
    • Data values also work for if you are attacking a sheep (e.g. CREATURE_SHEEP@RED:)
    • You can specify a range of valid data values instead of one, although you must use the numerical way. You specify this data value as RANGE-MIN-MAX (e.g. CROPS@RANGE-1-6:)
    • Instead of specifying a weapon such as a sword, you can set mobs to drop different things for each different way they can die. Simply set the tool: field to be one of the following:
      • DAMAGE_BLOCK_EXPLOSION
      • DAMAGE_ENTITY_EXPLOSION
      • DAMAGE_FIRE
      • DAMAGE_CONTACT
      • DAMAGE_DROWNING
      • DAMAGE_FALL
      • DAMAGE_SUFFOCATION
    • You can also set different things to be dropped when mobs kill each other! (think gold and green records...). Set the tool: field to be any creature type, e.g. CREATURE_CREEPER
    • Also, fixed for CB 561+, I believe. Won't be backwards compatible though :(. Don't upgrade if you're not running 561 or higher.
    A fun combination of settings I've been playing with has been "SPECIAL_LEAFDECAY -> CREATURE_CREEPER", and set "creeper kills creeper" events to drop a gold block. Kinda fun punching down a tree, then strafing around to get them to bunch up, blow each other up and drop as much gold as possible. Somewhat reminiscent of Minigore!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  12. is there anything this does that DropBonus doesnt ?
     
  13. Offline

    Celtic Minstrel

    Short answer: yes. But there are also things DropBonus does that this does not.

    It would seem that they are about 90% similar, though.
     
  14. Offline

    Shay Williams

    Another question; CREATURE_GIANT causes errors, is there a proper name for the "GIANT" mob?
     
  15. Offline

    Celtic Minstrel

    No, CREATURE_GIANT is the correct name; however, it doesn't work in 560, so you'll have to wait until cyklo updates to be compatible with 600. Same goes for CREATURE_MONSTER.
     
  16. Offline

    cyklo

    I'll update tonight. Typical timing.

    I've not been keeping up to speed - what does CREATURE_MONSTER do?
     
  17. Offline

    Celtic Minstrel

    It's the "human monster"; like giants, it never spawns naturally on a normal server.
     
  18. As i am currently in the process of "converting" my DropBonus configuration to OtherBlocks could someone shed some light on how these settings work ?

    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)
     
  19. Offline

    cyklo

    You can use "quantity: 1-3" instead of just a single number, and it will drop a random quantity between 1 and 3.

    When you break a chest, it normally drops all its contents as well as the chest itself. Dispensers and furnaces are currently broken. A command block like the following would fix FURNACE drops until Mojang patch it:

    Code:
        ANY_FURNACE:
        - tool: ANY
          drop: FURNACE
        - tool: ANY
          drop: CONTENTS
     
  20. okay, so this might be a lengthy post but here it comes:
    Code:
    # ----- block drops -----
        STONE:
            - tool: ALL
              drop: STONE
              chance: 3
            - tool: ALL
              drop: IRON_ORE
              chance: 2
            - tool: ALL
              drop: DIAMOND
              chance: 1
            - tool: ALL
              drop: COAL
              chance: 1
            - tool: ALL
              drop: OBSIDIAN
              chance: 0.1
            - tool: ALL
              drop: GLOWSTONE
              chance: 0.1
            - tool: ALL
              drop: NETHERRACK
              chance: 0.1
            - tool: ALL
              drop: MOSSY_COBBLESTONE
              chance: 0.1
            - tool: ALL
              drop: GRAVEL
              chance: 0.1
            - tool: ALL
              drop: DIRT
              chance: 0.1
            - tool: ALL
              drop: GOLD_ORE
              chance: 0.1
            - tool: ALL
              drop: REDSTONE
              quantity: 1-3
              chance: 0.1
            # lapis lazuli below
            - tool: ALL
              drop: DYE
              color: BLUE
              quantity: 1-3
              chance: 100
        DIRT:
            - tool: ALL
              drop: SEEDS
              quantity: 1-3
              chance: 3
            - tool: ALL
              drop: FLINT
              chance: 1
            - tool: ALL
              drop: BONE
              chance: 0.5
            - tool: ALL
              drop: BOWL
              chance: 0.1
            - tool: ALL
              drop: WATCH
              chance: 0.1
            - tool: ALL
              drop: COMPASS
              chance: 0.1
        GRASS:
            - tool: ALL
              drop: YELLOW_FLOWER
              quantity: 1-2
              chance: 23
            - tool: ALL
              drop: RED_ROSE
              quantity: 1-2
              chance: 23
            - tool: ALL
              drop: SEEDS
              quantity: 1-3
              chance: 13
            - tool: ALL
              drop: PUMPKIN
              chance: 8
            - tool: ALL
              drop: SUGAR_CANE
              chance: 8
        SAND:
            - tool: ALL
              drop: SANDSTONE
              chance: 4
            - tool: ALL
              drop: CLAY_BALL
              chance: 3
            - tool: ALL
              drop: CACTUS
              chance: 0.5
            - tool: ALL
              drop: BONE
              chance: 0.5
            - tool: ALL
              drop: SOUL_SAND
              chance: 0.1
        GRAVEL:
            - tool: ALL
              drop: BONE
              chance: 0.5
        DIAMOND_ORE:
            - tool: ALL
              drop: DIAMOND_ORE
              chance: 5
        GLASS:
            - tool: ALL
              drop: GLASS
        GLOWSTONE:
            - tool: ALL
              drop: GLOWSTONE
        WOOD_STAIRS:
            - tool: ALL
              drop: WOOD_STAIRS
        COBBLESTONE_STAIRS:
            - tool: ALL
              drop: COBBLESTONE_STAIRS
        LEAVES:
            - tool: ALL
              drop: LOG
              color: GENERIC
              quantity: 1-2
              chance: 6
            - tool: ALL
              drop: LOG
              color: BIRCH
              quantity: 1-2
              chance: 6
            - tool: ALL
              drop: LOG
              color: REDWOOD
              quantity: 1-2
              chance: 6
            - tool: ALL
              drop: LEAVES
              quantity: 1-2
              chance: 3
            - tool: ALL
              drop: SAPLING
              chance: 1
            - tool: ALL
              drop: APPLE
              chance: 0.5
            - tool: ALL
              drop: GOLDEN_APPLE
              chance: 0.1
            #- tool: STICK
            #  drop: SPONGE
            #  quantity: 3-5
            #  chance: 100
        SPECIAL_LEAFDECAY:
            - drop: AIR
              chance: 100
            - drop: SAPLING
              chance: 1
            - drop: STICK
              chance: 0.1
            - drop: APPLE
              chance: 0.5
            - drop: GOLDEN_APPLE
              chance: 0.1
            # FUN below ;)
            - drop: CREATURE_SPIDER
              chance: 0.2
    # ----- passive mob drops -----
        CREATURE_CHICKEN:
            - tool: ALL
              drop: FEATHER
              quantity: 1-2
              chance: 87
            - tool: ALL
              drop: BONE
              chance: 39
            - tool: ALL
              drop: EGG
              chance: 27
        CREATURE_PIG:
            - tool: ALL
              drop: PORK
              quantity: 1-2
              chance: 86
            - tool: ALL
              drop: BONE
              quantity: 1-2
              chance: 45
            - tool: ALL
              drop: GRILLED_PORK
              chance: 5
            - tool: ALL
              drop: SADDLE
              chance: 0.5
        CREATURE_COW:
            - tool: ALL
              drop: LEATHER
              quantity: 1-2
              chance: 87
            - tool: ALL
              drop: BONE
              quantity: 1-3
              chance: 56
        CREATURE_SHEEP:
            - tool: ALL
              drop: BONE
              quantity: 1-2
              chance: 43
            - tool: ALL
              drop: WOOL
              color: WHITE
              quantity: 1-3
              chance: 14
            - tool: ALL
              drop: WOOL
              color: BLACK
              quantity: 1-3
              chance: 14
            - tool: ALL
              drop: WOOL
              color: GRAY
              quantity: 1-3
              chance: 14
            - tool: ALL
              drop: WOOL
              color: SILVER
              quantity: 1-3
              chance: 14
            - tool: ALL
              drop: WOOL
              color: ORANGE
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: MAGENTA
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: LIGHT_BLUE
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: YELLOW
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: LIME
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: PINK
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: CYAN
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: PURPLE
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: BLUE
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: BROWN
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: GREEN
              quantity: 1-3
              chance: 7
            - tool: ALL
              drop: WOOL
              color: RED
              quantity: 1-3
              chance: 7
        CREATURE_SQUID:
            - tool: ALL
              drop: INK_SACK
              quantity: 1-2
              chance: 85
            - tool: ALL
              drop: RAW_FISH
              quantity: 1-2
              chance: 65
            - tool: ALL
              drop: SLIME_BALL
              chance: 13
    # ----- agressive mob drops -----
        CREATURE_CREEPER:
            - tool: ALL
              drop: SULPHUR
              quantity: 1-3
              chance: 88
            - tool: ALL
              drop: TNT
              chance: 13
            # mob killed by modifier test below, either of
            # - tool: [FIRE, ENTITY_EXPLOSION, BLOCK_EXPLOSION, CONTACT, DROWNING, FALL, SUFFOCATION]
            #- tool: CONTACT
            #  drop: DIAMOND
            #  chance: 75
        CREATURE_SKELETON:
            - tool: ALL
              drop: BONE
              quantity: 1-2
              chance: 46
            - tool: ALL
              drop: ARROW
              quantity: 1-3
              chance: 43
            - tool: ALL
              drop: BOW
              chance: 4
            - tool: ALL
              drop: CHAINMAIL_CHESTPLATE
              chance: 6
            - tool: ALL
              drop: CHAINMAIL_BOOTS
              chance: 6
            - tool: ALL
              drop: CHAINMAIL_HELMET
              chance: 6
            - tool: ALL
              drop: CHAINMAIL_LEGGINGS
              chance: 6
            - tool: ALL
              drop: DIAMOND_CHESTPLATE
              chance: 3
            - tool: ALL
              drop: DIAMOND_BOOTS
              chance: 3
            - tool: ALL
              drop: DIAMOND_HELMET
              chance: 3
            - tool: ALL
              drop: DIAMOND_LEGGINGS
              chance: 3
        CREATURE_ZOMBIE:
            - tool: ALL
              drop: BROWN_MUSHROOM
              quantity: 1-2
              chance: 12
            - tool: ALL
              drop: RED_MUSHROOM
              quantity: 1-2
              chance: 12
            - tool: ALL
              drop: BONE
              quantity: 1-2
              chance: 9
            - tool: ALL
              drop: LEATHER
              quantity: 1-2
              chance: 8
            - tool: ALL
              drop: SLIME_BALL
              chance: 3
            - tool: ALL
              drop: CHAINMAIL_CHESTPLATE
              chance: 6
            - tool: ALL
              drop: CHAINMAIL_BOOTS
              chance: 6
            - tool: ALL
              drop: CHAINMAIL_HELMET
              chance: 6
            - tool: ALL
              drop: CHAINMAIL_LEGGINGS
              chance: 6
            - tool: ALL
              drop: DIAMOND_CHESTPLATE
              chance: 3
            - tool: ALL
              drop: DIAMOND_BOOTS
              chance: 3
            - tool: ALL
              drop: DIAMOND_HELMET
              chance: 3
            - tool: ALL
              drop: DIAMOND_LEGGINGS
              chance: 3
        CREATURE_SLIME:
            - tool: ALL
              drop: SLIME_BALL
              quantity: 1-2
              chance: 84
        CREATURE_SPIDER:
            - tool: ALL
              drop: STRING
              quantity: 1-2
              chance: 84
    
    ...seems to work from first tests on my server. This is a conversion from DropBonus and i couls post the config i converted from if anyone is interested ;)

    Only thing that seems strange is how to set up the "killed by": f.e. have a creeper drop a diamond on suffocation or a block of obsidian on death by fire.

    Thanks a lot !
     
  21. Offline

    cyklo

    Yup, idiot at work here. I've re-edited my original post to reflect my mistake. Each "damage" type should be prefixed with "DAMAGE_", the same way you do with creepers.

    This should work:

    Code:
        CREATURE_CREEPER:
        - tool: DAMAGE_FIRE
          drop: OBSIDIAN
        - tool: DAMAGE_SUFFOCATION
          drop: DIAMOND
     
  22. Offline

    Taxen0

    Nice! thanks for the update!
    Regarding my "problem" with mobspawners, would this be the correct config?(once creaturebox is updated)

    Code:
    # Make the mobspawners drop a spawner.
        MOB_SPAWNER:
             - tool: [WOOD_SWORD, STONE_SWORD, IRON_SWORD, DIAMOND_SWORD]
               flags: [DEFAULT_NEVER]
               drop: MOB_SPAWNER
               chance: 100
             - tool: GOLD_SWORD
               flags: [DEFAULT_ALWAYS]
             - tool: ANY
               flags: [DEFAULT_NEVER]
    
    # Make Leaf-dacay drop Apples 2% of the time
        SPECIAL_LEAFDECAY:
               drop: APPLE
               chance: 2
    This is what the log say when i start (ignore creaturebox error, that is unrelated)


    Code:
    2011-03-30 22:08:02 [INFO] Starting minecraft server version Beta 1.3
    2011-03-30 22:08:02 [INFO] Loading properties
    2011-03-30 22:08:02 [INFO] Starting Minecraft server on *:25565
    2011-03-30 22:08:02 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-605-g376d7e8-b602jnks (MC: 1.3)
    2011-03-30 22:08:02 [INFO] Preparing level "world"
    2011-03-30 22:08:02 [INFO] Preparing start region
    2011-03-30 22:08:03 [INFO] [Permissions] version [2.5.3] (Phoenix) was Initialized.
    2011-03-30 22:08:03 [INFO] ControllerBlock: 1.16 by Hell_Fire
    2011-03-30 22:08:03 [INFO] ControllerBlock: Using IRON_BLOCK (42) as ControllerBlock, loaded 0 disallowed types from config
    2011-03-30 22:08:03 [INFO] ControllerBlock: Enabling full redstone check
    2011-03-30 22:08:03 [INFO] ControllerBlock: Events registered
    2011-03-30 22:08:03 [INFO] [Permissions] version [2.5.3] (Phoenix)  loaded
    2011-03-30 22:08:03 [SEVERE] BLOCK_PLACED loading creaturebox v0.5.1 (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_PLACED
        at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.java:149)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at lodran.creaturebox.creaturebox.attachPermissions(creaturebox.java:561)
        at lodran.creaturebox.creaturebox.onEnable(creaturebox.java:93)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-30 22:08:03 [INFO] Loaded Essentials build 2.1.6 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-03-30 22:08:03 [INFO] Minecart Mania Core version 1.06a is enabled!
    2011-03-30 22:08:03 [INFO] Minecart Mania Sign Commands version 1.06 is enabled!
    2011-03-30 22:08:03 [INFO] OtherBlocks: AIR + LEAVES now drops 1x APPLE with 20.0% chance
    2011-03-30 22:08:03 [WARNING] Block "SPECIAL_LEAFDECAY" has no children. Have you included the dash?
    2011-03-30 22:08:03 [INFO] OtherBlocks: ANY_PICKAXE + COBBLESTONE_STAIRS now drops 1x COBBLESTONE_STAIRS
    2011-03-30 22:08:03 [INFO] OtherBlocks: ALL TOOLS + COBBLESTONE_STAIRS now drops 1x AIR
    2011-03-30 22:08:03 [INFO] OtherBlocks: ANY_AXE + WOOD_STAIRS now drops 1x WOOD_STAIRS
    2011-03-30 22:08:03 [INFO] OtherBlocks: ALL TOOLS + WOOD_STAIRS now drops 1x AIR
    2011-03-30 22:08:03 [INFO] OtherBlocks: ALL TOOLS + BOOKSHELF now drops 1x BOOKSHELF
    2011-03-30 22:08:03 [INFO] OtherBlocks: [WOOD_SWORD, STONE_SWORD, IRON_SWORD, DIAMOND_SWORD] + MOB_SPAWNER now drops 1x MOB_SPAWNER
    2011-03-30 22:08:03 [WARNING] Error while processing block MOB_SPAWNER: No enum const class org.bukkit.Material.null
    2011-03-30 22:08:03 [SEVERE] java.lang.IllegalArgumentException: No enum const class org.bukkit.Material.null
    2011-03-30 22:08:03 [SEVERE]     at java.lang.Enum.valueOf(Unknown Source)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.Material.valueOf(Material.java:14)
    2011-03-30 22:08:03 [SEVERE]     at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:202)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-30 22:08:03 [WARNING] Error while processing block MOB_SPAWNER: No enum const class org.bukkit.Material.null
    2011-03-30 22:08:03 [SEVERE] java.lang.IllegalArgumentException: No enum const class org.bukkit.Material.null
    2011-03-30 22:08:03 [SEVERE]     at java.lang.Enum.valueOf(Unknown Source)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.Material.valueOf(Material.java:14)
    2011-03-30 22:08:03 [SEVERE]     at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:202)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
    2011-03-30 22:08:03 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    2011-03-30 22:08:03 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-30 22:08:03 [INFO] OtherBlocks 0.7.2 loaded.
    2011-03-30 22:08:03 [INFO] Tombstone v.1.1.1 is enabled.
    2011-03-30 22:08:03 [INFO] [Tombstone] Using Permissions (v2.5.3)
    2011-03-30 22:08:03 [INFO] Minecart Mania Chest Control version 1.06 is enabled!
    2011-03-30 22:08:03 [INFO] Done (0,111s)! For help, type "help" or "?"
    2011-03-30 22:08:03 [INFO] ControllerBlock: Loaded v4 data - 1 ControllerBlocks loaded
    2011-03-30 22:08:08 [INFO] [Minecart Mania] Loading Sensor Data.
    
    also, whats "2011-03-30 22:08:03 [WARNING] Block "SPECIAL_LEAFDECAY" has no children. Have you included the dash?" about? isn't it formatted correctly?
     
  23. Offline

    Celtic Minstrel

    This will always drop pig spawners. Even if you "fix" that by adding the "color:" field with the mob index, it'll always drop the same kind. Unless cyklo introduces a way to detect the type of spawner, you're probably better off relying on creaturebox for spawner drops (and requesting that he had the ability to make it work how you want).

    Just what it says: you're missing a hyphen.
     
  24. Offline

    Taxen0

    i'm running this alongside with creaturebox, meaning DEFAULT_ALWAYS = creaturbox, DEFAULT_NEVER = nothing, and otherwise a MOB_SPAWNER (pig) drops, so no need for datavalues. I will put in a request at creaturebox, but in the mean time shouldn't this work?
    also, what are the errors about MOB_SPAWNER in otherblocks? a bug, or are they related to creaturebox aswell?

    lastly something unrelated, how would I make full-grown wheat drop seeds when destroyed by water? what DAMAGE_ type should I use?
     
  25. Offline

    Celtic Minstrel

    You've tested that and it works, then? It's quite possible that creaturebox would behave as the default drop, but I wouldn't count on it unless you have tested it and can verify that it does work that way.

    I honestly have no idea, but I think somehow they relate to your GOLD_SWORD and ANY parts respectively.

    I don't think that's possible at the moment. Water doesn't count as "damage" internally, so there would have to be a special exception to allow DAMAGE_WATER or something similar.
     
  26. Offline

    Taxen0

    I have not tested this yet, but I think/hope it counts as default. the reason is that creaturebox isn't updated for the latest craftbukkit yet.

    ok, if its possible to detect at all that would be a nice feature.

    Thanks for the help and quick responses!
     
  27. Offline

    giomiguelito

    Why do I keep getting this whenever I add ANYTHING to the config file?

    2011-03-30 10:50:05 [SEVERE] ENTITY_DAMAGE loading OtherBlocks v0.7.2 (Is it up to date?)
    java.lang.NoSuchFieldError: ENTITY_DAMAGE
    at com.sargant.bukkit.otherblocks.OtherBlocks.onEnable(OtherBlocks.java:292)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  28. Offline

    Wolfy9247

    I'm going to test later on my server, but is this up to date for b602? If not, please update, thanks! =)
     
  29. Offline

    Celtic Minstrel

    I haven't tested yet, but it should work.
     
  30. Offline

    Avous

    how do i set the limit of stuff i wanna drop. as in i only want one item or two different items MAX to drop at one time off a enemy how do i set that?
     
  31. Offline

    Malkierian

    Update for 1.4, pretty please? LOL.
     

Share This Page