Filled Simple plugin.

Discussion in 'Archived: Plugin Requests' started by thecerealkill3r, Aug 21, 2014.

  1. Offline

    thecerealkill3r

    Hi there! Thanks for trying to help me :p

    Typing the command /thornedcrown will give the person who executed the command a thorned crown. But here's the catch. The crown has a chance to spawn with a durability of 2 - 30. If you could make any of those numbers completely random, I'd love that. Here's an example.

    /thornedcrown : Player gets Leather Helmet with THORNS III with dura ranging from 2 - 30.
    No permissions needed.
    I'd like it for 1.7.5 .
    Thanks ! :>
     
  2. Offline

    PolarCraft

    thecerealkill3r Please do not tahg people to try and get them to make a plugin for you.
     
  3. Offline

    thecerealkill3r

    PolarCraft He usually does my plugins for me, which is why I pretty much always tahg him :)
     
  4. Offline

    Darkpicasa

    well... I'm happy to do this for you
    But I'm sorta confused.
    The way you describe it, can't you just use that command again and again and again? And get more and more and more thorned crowns?
    Or is there supposed to be a delay, like you can only type the command once every 5 minutes or something...

    Also, do you even need it still?

    thecerealkill3r
     
  5. Offline

    thecerealkill3r

    Darkpicasa I do :(
    But no, there is no need for a cooldown. At this point, I don't care about the random value from 15 - 25, if you can make it meet these parameters, I'm happy. If it's not possible to get the random value, just make them spawn at 15 every time.
    - Gives a leather helmet with thorns III(At 15 dura OR 15 - 25 dura) when /thornedcrown has been executed.
    - No cooldown needed
    - No permissions needed
    - A command to reload the config, preferably /thornreload
    - Make sure the item has no special name, just "Thorned Crown" no color codes or anything.

    Thanks!
     
  6. Offline

    simgar98

    Why on earth do you want a reload for the config on this? there is nothing that has to be configured?
    I can make this if needed... but why that option?
     
  7. Offline

    thecerealkill3r

    Disregard that. Can you make the randomized durability 15 - 25 when the command is executed? If its too hard to do that or not possible, just make them spawn at 15 dura when the command is done. Thanks :)
    simgar98
     
  8. Offline

    simgar98

    Easy, on it.
     
  9. Offline

    Darkpicasa

  10. Offline

    simgar98

    Darkpicasa likes this.
  11. Offline

    Darkpicasa

    simgar98 Alright then, I won't start work on it :)
     
  12. Offline

    thecerealkill3r

    simgar98 :0

    simgar98 First off, I would like to say THANK YOU for making the plugin for me. But, there's a couple issues.

    - The helmet enchant is thorns II, not III
    - The helmet's name is blue when it spawns in, and not capitalized
    - The helm is supposed to spawn in their hand, not on their head.
    - And the helmets range is wrong, it goes down to 1, when the lowest is supposed to be 15.

    Don't get me wrong, I'm more than grateful for you even volunteering to share your creation, but if you could fix these errors, I'd be even more grateful :)

    Thank you very much, sir.

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

    simgar98

    Forgive me for my sins of not reading everything careful enough xD
    https://www.dropbox.com/s/ka0trlxyhneojnp/thorned.jar?dl=0
    have fun!
     
  14. Offline

    zachoooo

    Technically speaking the only completely random things in this universe appear to be the activities of sub atomic particles as outlined in quantum physics. In order for the durability to be truly completely random, there must be absolutely no way to predict the next number in the sequence even if you had infinite knowledge of all of the atoms in the universe and their position and velocity at any given time. Thus the only way to do this would be to make this plugin hook into a a machine that observed things in quantum mechanics such as radioactive decay or the spin direction of an electron.
     
  15. Online

    timtower Administrator Administrator Moderator

    zachoooo Technically speaking we have the random class in java
     
    zachoooo likes this.
  16. Offline

    zachoooo

    Yes, but computers being entirely logical and procedural inherently have no way of generating completely random data. What they create is pseudo random.
     
  17. Online

    timtower Administrator Administrator Moderator

    pseudo random is random enough for a game.
     
  18. Offline

    thecerealkill3r

  19. Offline

    Jaaakee224

Share This Page