Farming Yields

Discussion in 'Archived: Plugin Requests' started by DrEinsteinium, May 24, 2013.

  1. Offline

    DrEinsteinium

    Plugin Name: FarmingPlus

    This plugin would increase the amount of crops you receive from fully grown plants based on specific instances and permission nodes. It would listen for when players break crops, check to see if they have a specific permission node that ties back to an instance in this plugin, and modifies the amount of yield the crop gives.

    The Configuration:
    Code:
    FarmingPlus:
        Instance1:
            AffectedCrop: 'Wheat'
            YieldModifier: '10x'
    
    This would take the base yield of wheat and multiply it by 10. It would also be nice if the plugin supporting floating point variables as well.

    Crops to Effect: (This is just what I need it for, but you can go ahead and program every yield in the game if that is what suits your fancy)
    • Wheat
    • Carrots
    • Potatoes
    • Melon Blocks
    • Nether Warts
    Permission Nodes:
    The permission nodes would correspond with the instance names in the configuration files. The permission node for the configuration example would be farmingplus.instance1 (These permissions would automatically be denied to operators.)

    When I want this by: June 10th would be incredible <3

    Bump. Is there anyone willing to do this?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  2. Offline

    GreySwordz

    I'll give it a shot :)
     
  3. Offline

    GreySwordz

    @slimedog007
    slimedog007 Making this with permissions won't really make sense. What would you say to the config being:
    Code:
    FarmingPlus:
        Instance1:
            AffectedCrop: 'Wheat'
            YieldModifier: '10x'
            Players:
                       'Player1'
                       'Player2'
     
  4. Offline

    DrEinsteinium

    GreySwordz

    Thanks for working on this idea,

    Why wouldn't it make sense? Every player that has permissions to have the multiplier would receive it. Think about having a large amount of players on a server. I would certainly not want to put all of their names down in a configuration file like this, as it would get messy and the server would have a hard time reading so many strings from one file.

    Using permissions would allow me to set the permissions to groups of players that have the rank on my server. Everyone who logs in gets the default rank, and if I set the default rank to receive farmingplus.instance1, the plugin would not have to write their name in the configuration. It would be more versatile, as well as lightweight.
     
  5. Offline

    GreySwordz

    slimedog007 I'm sorry, I was half asleep when I wrote that. Do you want custom names or just Instance 1, Instance 2, etc?
     
  6. Offline

    DrEinsteinium

    Well, the whole point of the plugin was to create custom instances, so each instance would be another permission to be added.
    Code:
    FarmingPlus:
        Instance1:
            AffectedCrop: 'Wheat' 
            YieldModifier: '10x'
        Instance2:
            AffectedCrop: 'Wheat'
            YieldModifier: '10x'
        Instance3:
            AffectedCrop: 'Wheat'
            YieldModifier: '10x'
    Theoretically I could add as many instances of the configuration as I wanted. The "instance1" thing would just be the name that corresponds with the permissions.
     
  7. Offline

    GreySwordz

    slimedog007 I was wondering if you wanted custom instance names for instances. It will cut down a little on lag if its Instance1, Instance2, etc. So that it wouldn't have to check the txt, see if the player has permission, and check the txt to modify yield.
     
  8. Offline

    DrEinsteinium

    GreySwordz

    Yeah. As long as I can add as many instances I want, the configuration does not matter to me. Thank you very much for working so hard on this plugin :)
     
  9. Offline

    GreySwordz

  10. Offline

    slayr288

    GreySwordz

    It won't cause anymore delay at all if you just define a variable of the instance..
    That, or make an arraylist of all of the config instances.
     
  11. Offline

    GreySwordz

    slayr288 I forgot about arraylists, thank you for reminding me :p. I'll go with making an arraylist in the beginning, then.
     
  12. Offline

    DrEinsteinium

    GreySwordz likes this.
  13. Offline

    DrEinsteinium

    GreySwordz Are you still working on this plugin?
     
  14. Offline

    GreySwordz

    @slimdog007 Yes, and I want to apoligize for it taking so long. I had to do other, unexpected, work(not minecraft related) so I couldn't work on the plugin. Since when I finish it I'll be in a no-internet zone, I'll get it to you by next week-ish.
     
  15. Offline

    Ryxuma

    slimedog007
    I could make it? Should be done today!
     
  16. Offline

    DrEinsteinium

    Ryxuma GreySwordz was already working on it.
     
  17. Offline

    Ryxuma

    More than one person can work on it :p
     
  18. Offline

    DrEinsteinium

    Ryxuma Well I'm not sure if Grey is going to appreciate you finishing the plugin before him, and have all of his work wasted.
     
  19. Offline

    Ryxuma

    slimedog007 Yeah see what you mean, i'll wait to ask him :)
     
  20. Offline

    DrEinsteinium

    Ryxuma I have another plugin request if you're interested. I haven't opened an official thread, but here it is:

    A plugin that will give configurable amounts of experience for breaking crops based on permission nodes. (I'm not sure if you can see a trend, but I'm all about those permissions xD)

    Config:
    Code:
    FarmExperience:
      Instance1:
        Crop: 'Wheat'
        Experience: '536'
        
    Where each wheat would be the experience amount in Minecraft terms based on the wiki. Every time you break a piece of wheat you get 536 experience in orbs.

    I'm not sure if this could be an added feature of the current plugin being developed by GreySwordz, but it would be a nice bonus feature which in my opinion, would be easy to add in.
     
  21. Offline

    Ryxuma

    slimedog007
    I think it would be better to ask GreySwordz as to do that i would have to remake the framework that he has, It would be far easier for him just to add it in :) - I'll be happy to do any non crop related plugins though :-P
     
  22. Offline

    DrEinsteinium

    Ryxuma How about a permission-based plugin that allows you to get extra effects on potions when brewing? For example.

    If I had potionchance.duration, I would have a chance of getting increased duration on a potion I brew without having to add the extra redstone. So if I was brewing a health potion, I might get increased health II without adding the extra glowstone since I have the permission node potionchance.potency.

    potionchance.duration
    potionchance.potency
    potionchance.corrupt
    potionchance.throwable
     
  23. Offline

    GreySwordz

    Ryxuma If you give me the code, I could implement it into my plugin, and add you as a co-author on bukkitdev.
    slimedog007 Found wifi. should be finished soon.
     
  24. Offline

    DrEinsteinium

Share This Page