Skip to content

Config Examples and Ideas

Zarius edited this page Jun 27, 2011 · 2 revisions

Please share your ideas for configuration files here! Use the following template, and add your ideas to the bottom of the page.

### My Awesome OtherBlocks Config Idea
Here is a quick description of what my config block does.

    NAME_OF_ORIGINAL_BLOCK_OR_MOB:
        - tool:
          drop:
          color:
          quantity:
          damage:
          chance:

Examples to add: example of dropping an item with low durability, example of doing more damage to the tool used, example of money, example of events.

Configuration samples

Infected Cows

Some cows in this world aren't very well... in fact some of them are so unwell, when they die, spiders pop out of them...

 CREATURE_COW:
     - tool: ALL
       drop: CREATURE_SPIDER
       quantity: 1-3
       chance: 5

Glass drops glass

Stop glass from breaking and drop it like any other block

 GLASS:
     - tool: ALL
       drop: GLASS

Stop a block from dropping anything

You want to make it drop air with 100% certainty. This stops the default drop from ever being activated.

 SAND:
     - tool: ALL
       drop: NOTHING

Apple harvest!

Makes one in 12 leaf blocks broken by hand drop an apple!

 LEAVES:
     - tool: AIR
       drop: APPLE
       chance: 8.33

Drop from all but one tool

SAND:
    - tool: DIAMOND_SPADE
      drop: SAND
    - tool: ALL
      drop: EGG

Mix up the leaf decay drops a bit

SPECIAL_LEAFDECAY:
    - drop: AIR
      chance: 100
    - drop: SAPLING
      chance: 10
    - drop: STICK
      chance: 10
    - drop: APPLE
      chance: 5
    - drop: CREATURE_SPIDER
      chance: 0.5
    - drop: GOLDEN_APPLE
      chance: 0.1