mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Yrand
This commit is contained in:
parent
f5854f9342
commit
88b60ea945
@ -347,6 +347,8 @@ public class IrisObject extends IrisRegistrant
|
||||
int ty = config.getTranslate().translate(new BlockVector(0, getCenter().getBlockY(), 0), config.getRotation(), spinx, spiny, spinz).getBlockY();
|
||||
int y = -1;
|
||||
int xx, zz;
|
||||
int yrand = config.getTranslate().getYRandom();
|
||||
yrand = yrand > 0 ? rng.i(0, yrand) : yrand < 0 ? rng.i(yrand, 0) : yrand;
|
||||
|
||||
if(yv < 0)
|
||||
{
|
||||
@ -482,7 +484,7 @@ public class IrisObject extends IrisRegistrant
|
||||
}
|
||||
|
||||
int lowest = Integer.MAX_VALUE;
|
||||
|
||||
y += yrand;
|
||||
for(BlockVector g : blocks.keySet())
|
||||
{
|
||||
BlockVector i = g.clone();
|
||||
|
@ -27,6 +27,12 @@ public class IrisObjectTranslate
|
||||
@Desc("The x shift in blocks")
|
||||
private int y = 0;
|
||||
|
||||
@MinNumber(-128)
|
||||
@MaxNumber(128)
|
||||
@DontObfuscate
|
||||
@Desc("Adds an additional amount of height randomly (translateY + rand(0 - yRandom))")
|
||||
private int yRandom = 0;
|
||||
|
||||
@MinNumber(-128)
|
||||
@MaxNumber(128)
|
||||
@DontObfuscate
|
||||
|
Loading…
x
Reference in New Issue
Block a user