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. Everything is configurable.

Check out all of my plugin: 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 can drop. Also you can configure creepers, spiders, slimes, etc, too.

Features

  • No dependencies to other plugins
  • Change what entities drop (also experience)
  • Clear 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 too 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 ;)

Configuration file (example config.yml)

# LessFood complete configuration
# I hope i added every possible configuration here. Customize it
# as you want ;)

##################
#### READ ME #####
##################
             #####
          ###########
           #########
             #####
               #

# We got a new config-feature!
# Everywhere where you can configure amounts you're now able to 
# use maaaagic. We're supporting fixed values, random values
# (in a range), chances (in %) and bonus.
# fixed  = a fixed value is a single number like 1 or 140
# range  = a range is 2 numbers like: 1 15 (means between 1 and 15)
# chance = is a percent value. means: you have a % chance to get
#          the fixed/range value
# bonus = is a single number which means: whatever what is the
#         final result of a value, it get +bonus
# examples:
# -you want to drop 1x rotten flesh:
# addDrops:
#   367: 1
# -you want to drop rotten flesh with a amount between 2 and 10:
# addDrops:
#   367: 2 10
# -you want to drop rotten flesh with a amount between 2 and 10 by
#  a chance of 10%
# addDrops:
#   367: 2 10 10%
# -you want to drop rotten flesh with a amount between 2 and 10 by
#  a chance of 10% and a bonus of 5 everytime
# addDrops:
#   367: 2 10 10% +5
#
# you can mix fixed, range, bonus and chance-values as you wish.
# 367: 10% 2 +5   is valid to ;) (means: get 2 rotten by a chance
#                                 of 10% and basically 5 added)
#######################################

# happy configuration

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

## animals
MUSHROOM_COW:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredAdult:
    exp: 4 8
    clearDrops: true
    addDrops:
      363: 1 4

SQUID:
  normal:
    #exp: 0          # we dont want to override squids dropped exp       
    clearDrops: false
    addDrops:

# kill a wolf and get.. nothing
WOLF:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
  bredAdult:
    exp: 0
    clearDrops: true
    addDrops:

COW:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredAdult:
    exp: 4 8
    clearDrops: true
    addDrops:
      363: 1 4

CHICKEN:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredAdult:
    exp: 4 8
    clearDrops: true
    addDrops:
      365: 1
      288: 1 5 30%   # some feathers :)
      
PIG:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredAdult:
    exp: 4 8
    clearDrops: true
    addDrops:
      363: 1 4

OCELOT:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
  bredAdult:
    exp: 0
    clearDrops: true
    addDrops:

# sheeps shouldnt be killed for wool >:|
SHEEP:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%
  bredAdult:
    exp: 0
    clearDrops: true
    addDrops:
      367: 1 30%

VILLAGER:
  normal:
    exp: 0
    clearDrops: true
    addDrops:
  bredChild:
    exp: 0
    clearDrops: true
    addDrops:
  bredAdult:
    exp: 0
    clearDrops: true
    addDrops:


## special guys :)
IRON_GOLEM:
  normal:
    clearDrops: true
    addDrops:

SNOWMAN:
  normal:
    clearDrops: true
    addDrops:

## ZOMBIES
CREEPER:               
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

PIG_ZOMBIE:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

MAGMA_CUBE:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

ENDERMAN:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

BLAZE:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

SKELETON:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

SLIME:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

ZOMBIE:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

CAVE_SPIDER:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

SPIDER:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

GHAST:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

SILVERFISH:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

# never seen this guy o.O
GIANT:
  normal:
    #exp: 4
    clearDrops: false
    addDrops:

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
  
# what should leaves drop on break/decay?
LEAVES:
  clearDrops: false
  addDrops:

Configuration file format

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_ID: 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_ID: AMOUNT 

  bredAdult: 
    exp: EXP_AMOUNT
    clearDrops: true/false
    addDrops:
      ITEM_ID: 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 Figfewdisgewd Figfewdisgewd Jun 02, 2013 at 23:32 UTC - 0 likes

    I would also like an updated version, if that means anything.

  • Avatar of Sylevar Sylevar Apr 27, 2013 at 05:57 UTC - 0 likes

    How about an update?  This is exactly what I am looking for but such an old version scares me to even try it on 1.5.1.

  • Avatar of TheSkullkid01 TheSkullkid01 Apr 07, 2013 at 17:31 UTC - 0 likes

    CREEPER: normal:

    1. exp: 4 clearDrops: false
      • addDrops:

    So with "Add Drops" i want to have 0.0001% of getting a Diamond Chest plate with protection 4 enchantment. How would i do this?

  • Avatar of user_126711 user_126711 Jan 13, 2013 at 21:21 UTC - 0 likes

    Has anyone got GrowthRates working for 1.4.6/1.4.7?

  • Avatar of donage666 donage666 Dec 07, 2012 at 16:50 UTC - 0 likes

    Does this plugin also work for the new foods? Potatos and Carrots?

  • Avatar of Flutterwry Flutterwry Dec 03, 2012 at 09:41 UTC - 0 likes

    I am not sure if this plugin is dead or still alive. Considering author last logged in on the 4th Nov 2012. However last update was in June for MC 1.2.5.

    I had many uses for this plugin, hopefully it is not gone yet.

  • Avatar of Jemrada Jemrada Nov 18, 2012 at 23:44 UTC - 0 likes

    Is it possible to control the amount of seeds dropped by percentage with crops?

    Should this work?

    CROPS:
      growRate: 3
      normal:
        clearDrops: true
        addDrops:
          295: 1 50%
    
  • Avatar of ceddy3000 ceddy3000 Sep 27, 2012 at 01:09 UTC - 0 likes

    Can i make a request if possible to make it so that we can make stuff grow slower. If not possible thats fine.

    Also this is the most important one. Make it have permissions, lets say VIP1 gets 2x rate and VIP2 could get 3 times rate etc.

    Thanks and please let me know if its doable.

  • Avatar of a123b a123b Aug 14, 2012 at 07:43 UTC - 0 likes

    Will you make an update for 1.3.1-1.0 which solves the tickets in the bug tracker? With that bug with the bred flags I can't use the plugin. The other suggestions on the bug tracker would be very useful, too!

  • Avatar of HavenOfKairos HavenOfKairos Aug 09, 2012 at 23:57 UTC - 0 likes

    Thanks!

    Although i'm trying to modify growth rates, but something with this plugin doesn't work. I deleted the grow rate rows, wanting to use the bukkit.yml for growth rates. Instead growth rates still don't work, they work without the plugin installed though. Best drop control, but I can't get it's growth rates to work!

Facts

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

Authors