[MECH/FUN] FoodTrees v0.8- Ideal plugin for MC 1.8! [PERMISSIONS][1240]

Discussion in 'Inactive/Unsupported Plugins' started by Lookatmego, Sep 14, 2011.

  1. Offline

    Lookatmego

    We now also use bukkit dev!​
    FoodTrees-Food now grows on trees!
    Version: v0.8
    This is a pretty basic plugin where there is a custom percentage chance of a food dropping from a leaf by breaking it or leaf decay. All foods are avaiable.

    Features:
    • Lightweight and easy to use(just drag and drop)
    • Insures you always have food to eat specially for 1.8
    • You can choose what food to drop through the config!
    • Choose the percentage of chance of each food dropping
    • reload the config file from in-game easily!
    • PERMISSIONS SUPPORT!
    Download:


    Download(Direct)

    Command + Permission Nodes:

    I added a command in the last update:

    /ft reload

    This command reload the plugin from in-game so you don't have to reload/restart your whole server everytime! So next time you edit your config file just go ahead and do /ft reload to reload it and get your plugin working easily!

    Permissions node:

    foodtrees.reload

    Config File breakdown:

    FoodTrees:
    Bread: 10
    Cookie: 10
    CookedBeef: 10
    Nothing: 10 <-----this is the ratio for the leaf dropping nothing at all!
    Apples: 10
    RawBeef: 10
    Pork: 10
    CookedChicken: 10
    MushroomSoup: 10
    GrilledPork: 10
    RawFish: 10
    RottenFlesh: 10
    GoldenApple: 10
    Watermelon: 10
    RawChicken: 10
    CookedFish: 10
    Pumpkinseeds: 10
    Cocoabeans: 10
    Watermelonseeds: 10




    This is what the config will look like first time when you run the plugin,here by DEFAULT each food has a 100 percent chance of falling but notice there is an option for droping NOTHING as-well. Here you can put 0 infront of a food you do not want to drop and put the rest a lower number than the number for nothing. It basically uses the ratio beteween each to find the percentage.

    Meaning if you have everything as 0,nothing as 10 and apples as 1. There is a 1 in 10 chance of dropping an apple.:D

    Enjoy

    Video(Tutorial):


    Thanks to BeerHuntor for video:D


    Changelog
    Latest Version 0.8
    • Added Cocoa Beans to drop list.
    • Fixed up the code and get it ready for a new feature for the plugin released in v0.9
    • tested and confirmed that it works with CB build 1240
    Show Spoiler

    version 0.7
    • fixed a bug where everytime you broke a leaf it dropped pumpkin and melon seeds even if set to 0 in config file
    • cleaned up the code for future uses
    version 0.6
    • added watermelon seeds to drop list
    • added pumpkin seeds to drop list
    • cleaned up the code
    Version 0.5
    • Added a command to reload the config file from in-game
    • Added permissions support for the command(default op)
    Version 0.4
    • changed code and cleaned it up a bit
    • added percentage for each food or dropping nothing in config file(Thanks to celeixen)
    • config file fully has now changed
    Version 0.3
    • added the new foods added in 1.8
    • updated to recommended build(1185)
    Version 0.2
    • added a config file that is generated when you first run the plugin
    • You can now choose what foods drop in the config file
    Version 0.1
    • Releasing the plugin

    To Do:
    • Add more foods with release of 1.8
    • Allow permissions
    • commands?To reload config file from ingame!
    • config file to choose the percentage of different foods
    • config file to choose which foods to drop
    • add pumpkin and watermelon seeds to drop list
    • add cocoa beans to drop
    • add a feature where if leaf is broken by shears no food drops(WITH CONFIG)
    • give me more ideas below!

    please tell me what you think also keep in mind that this would be very useful in 1.8 so if you are low on hunger trees may save the day!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
    Trollkemada, jonassm and Starrk like this.
  2. Offline

    Lookatmego

    man i am confused about the problemmm did you set apple and goldenapples to 0 in the config?reload the plugin and then also make sure no other one of your plugin drop apples aswell?
     
  3. Offline

    Browniekun

    No other plugin I got drop apples.
     
  4. Offline

    Celeixen

    Did you change the config?
     
  5. Offline

    hantoo

    Is it possible to add more items like sticks and logs. If you could add any block/item into the config folder that would be great. Love using this mod. Thanks. Hantoo
     
  6. Offline

    Lookatmego

    ye sure i will probably release a second version of this same thing which has every item that you want and you can just set the config:) ill let you know when its out
     
  7. Offline

    hantoo

    thanks :D
     
  8. Offline

    Lookatmego

    np:)
     
  9. Offline

    blaxout1213

    Can i use decimals so i can make an apple drop 2/10 and a golden apple 0.01/10?
     
  10. Offline

    Lookatmego

    no it has to be integers sadly...ill probably change it tho next update if you want

    actually i looked and someone has made a plugin that you can edit what blocks drop what items-.- so i dont think ill be making what you wanted anymore..

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

    Celeixen

    No-one understands my config code :/ the way the config works is that its all in ratio. So if you want 0.1 of a food you change all the other foods to 100 and that food to 1. If you want 0.05 you change all the foods to 1000 and that food to 5.

    You understand now?, i made it pretty flexible & this way you dont have wasted options like in the old way.
     
  12. Offline

    Lookatmego

    sir can u get on skype for a second????
     
  13. Offline

    Celeixen

    Sorry i am at school (skype = blocked), just Msg me :p
     
  14. Offline

    Lookatmego

    noob
     
  15. Offline

    TreePunchers

    Could you add Regular Seeds, Mushrooms, Wheat, and Sugar Cane to the list of possible drops? These make more sense than meat.
     
  16. Offline

    Lookatmego

    next update expect it:D
     
  17. Offline

    Lookatmego

    SORRY GUYS BEEN REALLY BUSY WITH SCHOOL. UPDATING ALL MY PLUGINS FOR NEXT CRAFTBUKKIT 1.0.0
     
    matej122 likes this.
  18. Offline

    matej122

    when will be aut for 1.2 ? I need it
     
  19. Offline

    Lookatmego

    IM ONCE AGAIN UPDATING THIS PLUGIN. NEW VERSION FOR IT WILL BE UP SOON!
     
  20. Offline

    PixelblockRupp

    Nice Plugin XD Whats the point? :D
     

Share This Page