mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 05:02:30 +00:00
Rainbows for @nemsun.
This commit is contained in:
1 parent
221a7c590e
commit
08747b599b
1 file changed
+15
-2
@@ -60,9 +60,22 @@ public class ItemFlightTiara extends ItemBauble implements IManaUsingItem {
|
||||
double x = event.entityLiving.posX - 0.5;
|
||||
double y = event.entityLiving.posY - 1.7;
|
||||
double z = event.entityLiving.posZ - 0.5;
|
||||
float pink = player.getGameProfile().getName().equals("Vazkii") ? (float) Math.random() * 0.75F + 0.25F : 0F;
|
||||
|
||||
String name = player.getGameProfile().getName();
|
||||
float r = 1F;
|
||||
float g = 1F;
|
||||
float b = 1F;
|
||||
|
||||
if(name.equals("Vazkii"))
|
||||
g = 1F - ((float) Math.random() * 0.75F + 0.25F);
|
||||
else if(name.equals("Nemsun")) {
|
||||
r = (float) Math.random();
|
||||
g = (float) Math.random();
|
||||
b = (float) Math.random();
|
||||
}
|
||||
|
||||
for(int i = 0; i < 3; i++)
|
||||
Botania.proxy.sparkleFX(event.entityLiving.worldObj, x + Math.random() * event.entityLiving.width, y + Math.random() * 0.4, z + Math.random() * event.entityLiving.width, 1F, 1F - pink, 1F, 2F * (float) Math.random(), 20);
|
||||
Botania.proxy.sparkleFX(event.entityLiving.worldObj, x + Math.random() * event.entityLiving.width, y + Math.random() * 0.4, z + Math.random() * event.entityLiving.width, r, g, b, 2F * (float) Math.random(), 20);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user