This commit is contained in:
Daniel Mills 2020-09-09 05:11:55 -04:00
parent f5854f9342
commit 88b60ea945
2 changed files with 9 additions and 1 deletions

View File

@ -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();

View File

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