Filled Custom Bonemeal

Discussion in 'Plugin Requests' started by IAmKnight, Aug 27, 2016.

Thread Status:
Not open for further replies.
  1. Offline


    Plugin category: Mechanics

    Minecraft version: 1.10+

    Suggested name: Custom Bonemeal

    What I want:
    I'm not sure if this should be a fairly simple plugin to build or not, but let's have a go.
    I'm trying to get a plugin that messes around with the number of times a plant takes for it to grow with bonemeal. This is because I am purposefully trying to make it harder to quickly grow plants like trees and crops. Here is how I propose it to be done:
    - Config has each plant that can be affected by bonemeal
    - Under each plant there will be a Min and Max value
    - The plugin randomises between the minimum and maximum value of how many times a bonemeal needs to be used to grow that plant.
    - 10
    - 20

    The player would then have to use 10 to 20 bonemeals to grow that tree, instead of the usual five or six.
    I think that the logic would go like this:
    - First few bonemeal uses have a 0% chance of growing the tree. It'll stay like this until the minimum value has been met.
    - From there, each bonemeal will have a 50% chance of growing that tree.
    - If the bonemeal never grew the tree up until the maximum value, the tree will grow.

    The only thing I'm not sure about is how those bigger trees are going to work, those 2 by 2 trees. That'll require a bit more thinking, I reckon.

    If anyone wants to ask questions, I'm here. I understand details of the design are important, so don't afraid to ask as many detailed questions as you can.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: bonemeal.bypass - Ignore min and max values and go by default minecraft rules.

    When I'd like it by: Whenever you feel like it. As long as it somehow gets done, I'll be happy :)
    Thanks for reading, and thanks in advance if you decide to help out!
  2. Offline


    I can do this.
  3. Offline


    Awesome! Let me know if you have any questions, good luck!
  4. Offline



    Alright, finished the plugin:

    I actually ended up adding one command - /cbm reload - which loads any changes to the configuration values that you input while the server is running. The rest of the plugin is as you specified - you can specify a minimum and maximum number of bonemeal uses for every type of "fertilizable" plant, and the plugin will select a random number in that range for the player to meet. You can check the auto-generated config.yml for more info.

    If you are opped or have the permission
    bonemeal.bypass, the plugin will ignore you and you'll be able to bonemeal in peace ;)

    Well, that's all. Tell me if there are any bugs!

    EDIT: Also, do you mind if I post this as a plugin on my BukkitDev profile?
  5. Offline


    Sweet! Thanks a heap, I'll give it a test and edit this post if there's anything to let you know of.
    Also, of course you can put it on your profile, you made it after all :)
  6. Offline


    Alright, thanks!
  7. Offline


    It's all working fine, thanks!
  8. Offline


    No problem - enjoy the plugin.
Thread Status:
Not open for further replies.

Share This Page