Prison Plugins

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

Not open for further replies.
1. Offline

MrEminent42

Ok, Ok. You win.

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

#31
2. Offline

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

#32
3. Offline

MrEminent42

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

#33
4. Offline

#34
5. Offline

MrEminent42

#35
6. Offline

@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.

#36
7. Offline

MrEminent42

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!

#37
8. Offline

#38
9. Offline

MrEminent42

Yay!
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
#39
10. Offline

@awesone_ness

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.

#40
11. Offline

#41
12. Offline

poopnozle

#42
13. Offline

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

#43
poopnozle likes this.
14. Offline

poopnozle

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.

#44
15. Offline