Expand D1 Level Logging of ore generators.
This commit is contained in:
parent
bed07999bd
commit
d115aa7ebf
2 changed files with 22 additions and 1 deletions
|
@ -6,6 +6,7 @@ import gregtech.api.enums.Materials;
|
|||
import gregtech.api.world.GT_Worldgen;
|
||||
import gregtech.common.blocks.GT_TileEntity_Ores;
|
||||
import gregtech.loaders.misc.GT_Achievements;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
|
@ -96,7 +97,16 @@ public class GT_Worldgen_GT_Ore_Layer
|
|||
}
|
||||
}
|
||||
if (GT_Values.D1) {
|
||||
System.out.println("Generated Orevein: " + this.mWorldGenName);
|
||||
System.out.println(
|
||||
"Generated Orevein:" + this.mWorldGenName +
|
||||
" @ dim="+aDimensionType+
|
||||
" chunkX="+aChunkX+
|
||||
" chunkZ="+aChunkZ+
|
||||
" 1st="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()+
|
||||
" 2nd="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()+
|
||||
" 3rd="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()+
|
||||
" 4th="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()
|
||||
);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
package gregtech.common;
|
||||
|
||||
import gregtech.api.GregTech_API;
|
||||
import gregtech.api.enums.GT_Values;
|
||||
import gregtech.api.enums.Materials;
|
||||
import gregtech.api.world.GT_Worldgen;
|
||||
import gregtech.common.blocks.GT_TileEntity_Ores;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
|
||||
|
@ -45,6 +47,15 @@ public class GT_Worldgen_GT_Ore_SmallPieces
|
|||
int i = 0;
|
||||
for (int j = Math.max(1, this.mAmount / 2 + aRandom.nextInt(this.mAmount) / 2); i < j; i++) {
|
||||
GT_TileEntity_Ores.setOreBlock(aWorld, aChunkX + aRandom.nextInt(16), this.mMinY + aRandom.nextInt(Math.max(1, this.mMaxY - this.mMinY)), aChunkZ + aRandom.nextInt(16), this.mMeta, true);
|
||||
if(GT_Values.D1){
|
||||
System.out.println(
|
||||
"Small Ore:" + this.mWorldGenName +
|
||||
" @ dim="+aDimensionType+
|
||||
" chunkX="+aChunkX+
|
||||
" chunkZ="+aChunkZ+
|
||||
" ore="+new ItemStack(GregTech_API.sBlockOres1,1,mMeta).getDisplayName()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue