mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
minor tweaks
This commit is contained in:
parent
cafd78cb73
commit
a5bc0cd4dc
@ -44,8 +44,9 @@ public class ItemModDefuser extends ItemArmorMod {
|
|||||||
|
|
||||||
for(EntityCreeper creeper : creepers) {
|
for(EntityCreeper creeper : creepers) {
|
||||||
|
|
||||||
if(creeper.getCreeperState() == 1 ) {
|
if(creeper.getCreeperState() == 1 || creeper.func_146078_ca()) {
|
||||||
creeper.setCreeperState(-1);
|
creeper.setCreeperState(-1);
|
||||||
|
creeper.getDataWatcher().updateObject(18, new Byte((byte) 0));
|
||||||
|
|
||||||
EntityAICreeperSwell toRem = null;
|
EntityAICreeperSwell toRem = null;
|
||||||
for(Object o : creeper.tasks.taskEntries) {
|
for(Object o : creeper.tasks.taskEntries) {
|
||||||
|
|||||||
@ -52,10 +52,10 @@ public class ItemModSensor extends ItemArmorMod {
|
|||||||
boolean poison = false;
|
boolean poison = false;
|
||||||
boolean explosive = false;
|
boolean explosive = false;
|
||||||
|
|
||||||
for(int i = -2; i <= 2; i++) {
|
for(int i = -3; i <= 3; i++) {
|
||||||
for(int j = -1; j <= 1; j++) {
|
for(int j = -1; j <= 1; j++) {
|
||||||
for(int k = -2; k <= 2; k++) {
|
for(int k = -3; k <= 3; k++) {
|
||||||
Block b = entity.worldObj.getBlock(x + i * 3, y + j * 3, z + k * 3);
|
Block b = entity.worldObj.getBlock(x + i * 2, y + j * 2, z + k * 2);
|
||||||
if(b == ModBlocks.gas_asbestos || b == ModBlocks.gas_coal || b == ModBlocks.gas_radon || b == ModBlocks.gas_monoxide || b == ModBlocks.gas_radon_dense || b == ModBlocks.chlorine_gas) {
|
if(b == ModBlocks.gas_asbestos || b == ModBlocks.gas_coal || b == ModBlocks.gas_radon || b == ModBlocks.gas_monoxide || b == ModBlocks.gas_radon_dense || b == ModBlocks.chlorine_gas) {
|
||||||
poison = true;
|
poison = true;
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ public class ItemModSensor extends ItemArmorMod {
|
|||||||
if(explosive) {
|
if(explosive) {
|
||||||
entity.worldObj.playSoundAtEntity(entity, "hbm:weapon.follyAquired", 0.5F, 1.0F);
|
entity.worldObj.playSoundAtEntity(entity, "hbm:weapon.follyAquired", 0.5F, 1.0F);
|
||||||
} else if(poison) {
|
} else if(poison) {
|
||||||
entity.worldObj.playSoundAtEntity(entity, "hbm:item.techBoop", 0.5F, 1.5F);
|
entity.worldObj.playSoundAtEntity(entity, "hbm:item.techBoop", 2F, 1.5F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,22 +39,22 @@ public class OreLayer3D {
|
|||||||
|
|
||||||
int cX = event.chunkX;
|
int cX = event.chunkX;
|
||||||
int cZ = event.chunkZ;
|
int cZ = event.chunkZ;
|
||||||
|
|
||||||
double scale = 0.01D;
|
double scaleH = 0.02D;
|
||||||
int threshold = 5;
|
double scaleV = 0.2D;
|
||||||
|
|
||||||
for(int x = cX + 8; x < cX + 24; x++) {
|
for(int x = cX + 8; x < cX + 24; x++) {
|
||||||
for(int z = cZ + 8; z < cZ + 24; z++) {
|
for(int z = cZ + 8; z < cZ + 24; z++) {
|
||||||
|
|
||||||
double nY = this.noiseY.func_151601_a(x, z);
|
double nY = this.noiseY.func_151601_a(x * scaleH, z * scaleH);
|
||||||
|
|
||||||
if(nY > 3) {
|
if(nY > 4) {
|
||||||
|
|
||||||
for(int y = 64; y > 5; y--) {
|
for(int y = 64; y > 5; y--) {
|
||||||
double nX = this.noiseY.func_151601_a(y, z);
|
double nX = this.noiseX.func_151601_a(y * scaleV, z * scaleH);
|
||||||
double nZ = this.noiseY.func_151601_a(x, y);
|
double nZ = this.noiseZ.func_151601_a(x * scaleH, y * scaleV);
|
||||||
|
|
||||||
if(nX > 3 && nZ > 3) {
|
if(nX > 4 && nZ > 4) {
|
||||||
Block target = world.getBlock(x, y, z);
|
Block target = world.getBlock(x, y, z);
|
||||||
|
|
||||||
if(target.isNormalCube() && target.getMaterial() == Material.rock) {
|
if(target.isNormalCube() && target.getMaterial() == Material.rock) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user