[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

    lol :)
     
  3. Offline

    Trollkemada

    Nice, ill keep an eye on this, then :))
     
  4. Offline

    Lookatmego


    NOW UPDATED TO DROP WATERMELON AND PUMPKIN SEEDS HOWEVER coco beans were not added still looking into bringing that should be out next update!
     
  5. Offline

    Trollkemada

    Thanks :D I'll be waiting for coco beans :)
     
  6. Offline

    MPKaboose

    even if I set the droprate of some items to 0 they still drop ... why?
     
  7. Offline

    Lookatmego

    What do you mean?Even when you put a food to 0 it shouldnt drop did you reload the config by doing /ft reload?
     
  8. Offline

    MPKaboose

    actually if I set Apples to any value other then 0 it will drop apple or melon seeds even if the melonseeds is 0

    Code:
    FoodTrees:
        Nothing: 9
        Apples: 4
        GoldenApple: 1
        Pork: 0
        GrilledPork: 0
        Bread: 0
        RawFish: 0
        CookedFish: 0
        Cookie: 0
        MushroomSoup: 0
        Watermelon: 0
        RawBeef: 0
        CookedBeef: 0
        RawChicken: 0
        CookedChicken: 0
        RottenFlesh: 0
        Watermelonseeds: 0
        Pumpkinseeds: 0
    EDIT: yes I did and also restarted the server couple of times
     
  9. Offline

    Lookatmego

    ah i found the problem fixing it right now:) thanks for pointing it out. It was just a tiny code mess up i had


    error was fixed just go ahead and download again again thanks for letting me know:D enjoy

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

    Creepz21

    Hello, this is an AWESOME plugin! However, can you make it like if they break it with shears that it wont make anything pop out?
     
  11. Offline

    Lookatmego

    sure ill look into it!
     
  12. Offline

    MPKaboose

    that was quick nice work :)
     
  13. Offline

    Lookatmego

    thank you:)
     
  14. Offline

    Lookatmego

    i have that ready and complete and working just making so that coco beans can drop..some problems with that atm but soon a new release will come

    OK PLUGIN WAS UPDATED V0.8 IS NOW OUT AND HAS COCOA BEANS. A nice feature will be added in next update:D

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

    Lookatmego

    tell me what food you guys want me to add or item that you want added to this plugin:D
     
  16. Offline

    Celeixen

    Lol, watched the video wish that guy Read out "celeixen deserves a cookie". Btw i think i worked out a better way of doing the drops instead of the other way i made which your using.
     
  17. Offline

    Lookatmego

    what do you mean u figured out a better way?
     
  18. Offline

    Browniekun

    Hmm... Got a problem. Everytime I make a single change on the config, All food I get is apple and pork, on anything I change.
     
  19. Offline

    Lookatmego

    hmm let me look into that u are doing /ft reload right?

    can i get your config and also if any errors. ALso what build of CB are you using?
     
  20. Offline

    Celeixen

    Well its almost the same thing just less code, its probably easier to do it the way i already wrote for you but i think i could make it just 1 line per food you add.
     
  21. Offline

    Browniekun

    Yes, I'm doing ft reload.
    This was my last attempt on changing the variables. I also tried with higher numbers, etc.
    I used the url link of latest build at How to install Bukkit(Newb-Friendly) edition just yesterday, so I don't really know what version I got.
     
  22. Offline

    Lookatmego

    ok how you have it setup is that it will drop a food everytime no amtter what since your nothing is 0 now please use this craftbukkit build: http://ci.bukkit.org/job/dev-CraftBukkit/1240/ thats the latest craftbukkit and i just tested the plugin with that and works fine for me...so try it with that and see if you still get like apples or pork dropping

    get on skype random lol

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

    Celeixen

    whaat? you know me
     
  24. Offline

    Lookatmego

    -.- ur not a cod player are u? lol just get on skype
     
  25. Offline

    Browniekun

    Got the latest build, but now the trees drop apple and golden apple...
     
  26. Offline

    Lookatmego

    did you change the config?
     
  27. Offline

    Browniekun

    Yes, I tried, but no effect, still apple and golden apple...
     
  28. Offline

    Lookatmego

    hmm thats weird because im testing it on my server atm and its working...hmmmmm any errors in console?
     
  29. Offline

    Browniekun

    Nope. It says that Foodtree is enabled as usual.
     
  30. Offline

    Lookatmego

    you are using the latest version of foodtrees right?
     
  31. Offline

    Browniekun

    Yep. Even reinstalled to make sure.
     

Share This Page