Prison Plugins

Discussion in 'Plugin Help/Development/Requests' started by poopnozle, Feb 12, 2015.

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

    MrEminent42

    @mrCookieSlime
    Ok, Ok. You win.

    One question though: Isn't the same thing applied for the square formula?
     
  2. Offline

    mrCookieSlime

    @awesone_ness
    Yes. However the square formula is less complex meaning less calculations going on.
     
  3. Offline

    MrEminent42

    @mrCookieSlime
    Oh ok. Thanks for the explanation.

    EDIT: I assume generating a random shape with an area of X is more complicated than a circle? xD
     
  4. Offline

    mrCookieSlime

  5. Offline

    MrEminent42

  6. Offline

    mrCookieSlime

    @awesone_ness
    Not either.
    Im assuming you mean like destroy 4 blocks around the broken block in a radius of 3 for example. And the distance between the broken one and the current one is random.
    If so, then this is less complex than a square.
     
  7. Offline

    MrEminent42

    @mrCookieSlime
    Well yes. Could this possibly be in PrisonGems?
    Lvl 1-9: Destroy 1 extra block in a radius of whatever
    10-19: 2 blocks extra
    100-109: 11 blocks extra

    Now this would be AWESOME!
     
  8. Offline

    mrCookieSlime

  9. Offline

    MrEminent42

    @mrCookieSlime
    Yay! :D :D :D
    Thanks a lot!

    EDIT: Could you add a configurable chance for the explosion? For all explosive levels.

    By the way, where do you get the formulas? Have I just not learned them in school yet xD?
     
    Last edited: Feb 14, 2015
  10. Offline

    mrCookieSlime

    @awesone_ness
    I can add the chances.

    Well, you will learn those formulas at some point in school.
    However the formulas you are going to learn are not instantly applicable via Java.
    For example you don't have for loops in math, do you?
    So the formula you enter will be converted to a boolean for your for loop.
    For example the formula for a straight line is
    f(x)=0

    Not applicable in Java though, its a bit different, its
    for (int y = 0; true; y++)

    So, you have to form your formula into a boolean to use it in your for loop.
    now getting some random Blocks is as easy as
    for (int i = 0; i < random; i++)
    x = x + random;
    y = y + random;

    While making a square requires 3 loops, for x y and z.
     
  11. Offline

    MrEminent42

  12. Offline

    poopnozle

  13. Offline

    mrCookieSlime

    @poopnozle
    Not going to add this to PrisonUtils but maybe I will make a Plugin for that at some point. No promises though.
     
    poopnozle likes this.
  14. Offline

    poopnozle

    @mrCookieSlime
    Do you have a Twitter or somewhere where you post information on when plugins are updated?

    It's a little bit of a hassle going around and looking at each plugin's update log. :p
     
  15. Offline

    mrCookieSlime

    @poopnozle
    No, but you can subscribe Plugins on BukkitDev and get an email whenever a new file gets uploaded.
     
Thread Status:
Not open for further replies.

Share This Page