LessFood aka Dropcontrol

logo

LessFood aka DropControl

... makes food more valuable by controlling the items dropped by animals and slowing down crops, melons, pumpkins, trees, cacti's growing rate. Also changing block-drops is supported (why not drop rotten flesh by destroying an diamond_ore? ). Everything is configurable.

Check out all of my plugins: http://dev.bukkit.org/profiles/metakiwi/ :)

Why LessFood? And why "aka DropControl"?

On our servers we want only bred animals to drop eatable things to make beeing a farmer more valuable for other players. Even it makes economy better, because digging-addicted players (who dont have time to breed animals) need to buy food from farmers. Even that "making plants growing slower"-thing is to make economy better - LessFood ;)

We call this plugin 'aka DropControl' in cause of its generic nature. It just controls what entities/blocks can drop. Of course also creepers, spiders, slimes, etc, too.

Features

  • No dependencies to other plugins
  • Change what entities/blocks drop (also experience)
  • Remove what entities drop naturally
  • Every mob behaviour is configurable
  • "Breed-Detection": you can configure bred and non-bred animals differently (for example: make normal animals drop nothing, but bred animals drop food. Beeing farmer is more valuable now)
  • Slowing down grow rates (so theres not toooo much food)

Take a look at the default config to see whats possible!

Incompatibilities

  • There are problems when using CHDistantFarm and LessFood together - it have a growRate-modifier too. If you want to control growrates use the CHDistantFarm config instead.

Commands

There are no commands needed atm ;)

Some example configuration files

Lets change drop-behavour of some blocks

debug: false            # output debug informations to console
version: 2.0.1

GRASS:                 # grass block will:
  clearDrops: true     # .. not drop a dirt block
  addDrops:
    CROPS: 2           # .. drop 2 crops
    MELON_SEEDS: 5     # .. drop 5 melon seeds

DIAMOND_ORE:           # diamond block will:
  exp: 10              # .. drop 10 experience points
  addDrops:
    DIAMOND: 1 5       # .. drop (randomly) 1 to 5 diamonds

IRON_ORE:               # iron block will:
  exp: 1 5              # .. drop (randomly) 1 to 5 experience points
  addDrops:
    IRON_ORE: 1 5       # .. drop (randomly) 1 to 5 iron ores

WOOD:                   # wood block will:
  exp: 1 10 30% +5      # .. drop (randomly) 1 to 10 experience by a chance of 30% and a bonus of +5 exp.
  addDrops:
    WOOD: 6 80% +2      # .. drop 6 wood blocks by a chance of 80% and a bonus of +2

LEAVES:
  addDrops:
    APPLE: 64

Easy, hm?

Okay, now lets change drops of mobs

debug: false            # output debug informations to console
version: 2.0.1

COW:                      
  normal:                 # a normal cow will:
    clearDrops: true      # remove natural dropped items
    addDrops:
      ROTTEN_FLESH: 1 10  # .. drop (randomly) 1 to 10 rotten flesh

CHICKEN:                      
  bredChild:              # a bred, young chicken will:
    exp: 0                # no experience for killing kids >:(
    clearDrops: true      # remove natural dropped items
                          # so.. a bred baby chicken will drop nothing
PIG:
  normal:
    exp: 0                # no experience
    clearDrops: true      # remove natural dropped items
  bredChild:              # a bred, young chicken will:
    exp: 0                # no experience for killing kids >:(
    clearDrops: true      # remove natural dropped items
  bredAdult:
    exp: 2 5 %80 +8       # drop 2 to 5 experience by a change of 80% and a bonus of +8                      
    clearDrops: true
    addDrops:
      DIAMOND: 10

And now lets change grow times of plants :)

CROPS:
  growRate: 4          # quadraple grow time
  
PUMPKIN_STEM:
  growRate: 4          # quadraple grow time

MELON_STEM:
  growRate: 4          # quadraple grow time
  
MELON_BLOCK:
  growRate: 20         # etc...

PUMPKIN:
  growRate: 10

SUGAR_CANE_BLOCK:
  growRate: 3
  
CACTUS:
  growRate: 3

TREE:
  growRate: 3

Configuration file format

BLOCK_NAME:
  exp: AMOUNT        # optional! AMOUNT can be a maaagic number
  addDrops:          # optional! (in case you want to drop 
                     # additional items)
    ITEM_NAME: AMOUNT  # optional! AMOUNT can be a maaagic number

ENTITY_NAME:           # required! need to be written in UPPERCASE
  normal:
    exp: AMOUNT        # optional! AMOUNT can be a maaagic number
    clearDrops: true/false # optional!
    addDrops:          # optional! (in case you want to drop 
                       # additional items)
      ITEM_NAME: AMOUNT  # optional! AMOUNT can be a maaagic number

  bredChild:        # optional! (in case you want to configure
                    # bred entities)
    exp: EXP_AMOUNT
    clearDrops: true/false 
    addDrops: 
      ITEM_NAME: AMOUNT 

  bredAdult: 
    exp: EXP_AMOUNT
    clearDrops: true/false
    addDrops:
      ITEM_NAME: AMOUNT

PLANT_NAME:            # can be: CROPS, MELON_STEM, PUMPKIN_STEM,
                       # TREE, CACTUS, SUGAR_CANE_BLOCK, PUMPKIN,
                       # MELON_BLOCK, ...
  growRate: GROW_RATE  # 1=normal. 2 means: double grow time,
                       # 3 means: triple grow time and so on...

Versioning

Releases will be numbered with the following format.

<major>.<minor>.<patch>

And constructed with the following guidelines.

  • Breaking backwards compatibility bumps the major
  • New additions without breaking backwards compatibility bumps the minor
  • Bug fixes and misc changes bump the patch

Known issues

  • atm the animals looses their "bred"-flag after server restart/reload o.O I have to find another way so save that state. Comes with next update.

I need your help!

Hey, I'm not a native english speaker. I try my best to translate my plugins configs/help pages/commands/dev.bukkit-profiles - but.. erm.. I think you noticed allready, that its not perfect ;) Please be picky and tell me _every_ wrong word/sentence/textblock. Please PM me my corrected texts.

Of course you will be mentioned in the sourcecode and on the plugins page.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of SeeRazo SeeRazo Apr 21, 2014 at 06:53 UTC - 0 likes

    @madtomic: Go

    Yes. It works for me. 1.7.2-R0.3

  • Avatar of madtomic madtomic Apr 02, 2014 at 13:53 UTC - 0 likes

    Can i use this on cb1.7.2-r0.3?

  • Avatar of erik1988 erik1988 Jan 27, 2014 at 11:41 UTC - 0 likes

    Does it work on 1.7?

  • Avatar of Onewingseraphim Onewingseraphim Dec 18, 2013 at 05:51 UTC - 0 likes

    Please add a Reload Command thanks :)

    Add support to Remove Drops also please! I really want zombies to stop dropping rotten flesh but also keep dropping their heads but seems like there's no way to do this ):

    Also I removed animals and wood from the config but when I did Wood still gives XP and animals drop nothing... what's going on there? :/

    Last edited Dec 18, 2013 by Onewingseraphim
  • Avatar of Hangjai Hangjai Nov 08, 2013 at 16:15 UTC - 0 likes

    How can i set breeding don't givie any exp? bredChild: exp: 0 it's don't work

    Last edited Nov 09, 2013 by Hangjai
  • Avatar of OMGigotslush OMGigotslush Nov 04, 2013 at 01:20 UTC - 0 likes

    Ty very good plugins , is the bred animal lose their flag again at restart of the server?

  • Avatar of JoaoEstrella JoaoEstrella Oct 30, 2013 at 15:21 UTC - 0 likes

    Could be added chance of dropping items with random enchantments and lores, plants have the time to wait to grow larger or smaller as 0.5. For something that could mess with the enchant fortune or loot. thank you

  • Avatar of MohammadCreeper MohammadCreeper Oct 26, 2013 at 16:43 UTC - 0 likes

    Greetings man, how can we make the items we want mobs to drop...enchanted? What I mean is, I want so there's 1% chance of a zombie dropping a diamondsword sharpness V

  • Avatar of DiamondObsidian DiamondObsidian Oct 24, 2013 at 04:00 UTC - 0 likes

    I like it. Might put it on my server. can you make growing like... .5 so it will grow 2x as fast?

  • Avatar of metakiwi metakiwi Oct 23, 2013 at 22:29 UTC - 0 likes

    fixed in 2.0.1

Facts

Date created
Jun 08, 2012
Categories
Last update
Oct 23, 2013
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
LessFood aka Dropcontrol
Downloads
3,708
Recent files

Authors