From 1bd64164bf315228de842b67a86cb693d0a450ca Mon Sep 17 00:00:00 2001 From: Shnupbups Date: Thu, 23 Jul 2020 20:41:51 +1000 Subject: [PATCH 1/2] ore doubling nether quartz whoopsies forgot this --- .../recipes/quartz_dust_from_triturating_ore.json | 13 +++++++++++++ .../resources/data/c/tags/items/quartz_ores.json | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 src/main/resources/data/astromine/recipes/quartz_dust_from_triturating_ore.json create mode 100644 src/main/resources/data/c/tags/items/quartz_ores.json diff --git a/src/main/resources/data/astromine/recipes/quartz_dust_from_triturating_ore.json b/src/main/resources/data/astromine/recipes/quartz_dust_from_triturating_ore.json new file mode 100644 index 000000000..ab966e777 --- /dev/null +++ b/src/main/resources/data/astromine/recipes/quartz_dust_from_triturating_ore.json @@ -0,0 +1,13 @@ +{ + "type": "astromine:triturating", + "input": { + "tag": "c:quartz_ores", + "count": 1 + }, + "output": { + "item": "astromine:quartz_dust", + "count": 2 + }, + "time": 30, + "energy_consumed": 280 +} diff --git a/src/main/resources/data/c/tags/items/quartz_ores.json b/src/main/resources/data/c/tags/items/quartz_ores.json new file mode 100644 index 000000000..6c65cff93 --- /dev/null +++ b/src/main/resources/data/c/tags/items/quartz_ores.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "minecraft:nether_quartz_ore" + ] +} \ No newline at end of file From 243f0a970901f2945ab1c894d85a106404be8885 Mon Sep 17 00:00:00 2001 From: SuperCoder7979 Date: Thu, 23 Jul 2020 08:52:43 -0400 Subject: [PATCH 2/2] help, why am I falling out of the moon? --- .../common/world/generation/MoonChunkGenerator.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/github/chainmailstudios/astromine/common/world/generation/MoonChunkGenerator.java b/src/main/java/com/github/chainmailstudios/astromine/common/world/generation/MoonChunkGenerator.java index 9d4b6e2ab..52379ef23 100644 --- a/src/main/java/com/github/chainmailstudios/astromine/common/world/generation/MoonChunkGenerator.java +++ b/src/main/java/com/github/chainmailstudios/astromine/common/world/generation/MoonChunkGenerator.java @@ -41,6 +41,7 @@ import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.source.BiomeSource; import net.minecraft.world.chunk.Chunk; +import net.minecraft.world.gen.ChunkRandom; import net.minecraft.world.gen.StructureAccessor; import net.minecraft.world.gen.chunk.ChunkGenerator; import net.minecraft.world.gen.chunk.StructuresConfig; @@ -93,6 +94,8 @@ public void populateNoise(WorldAccess world, StructureAccessor accessor, Chunk c int x2 = chunk.getPos().getEndX(); int z2 = chunk.getPos().getEndZ(); + ChunkRandom chunkRandom = new ChunkRandom(); + chunkRandom.setTerrainSeed(chunk.getPos().x, chunk.getPos().z); for (int x = x1; x <= x2; ++x) { for (int z = z1; z <= z2; ++z) { @@ -125,6 +128,12 @@ public void populateNoise(WorldAccess world, StructureAccessor accessor, Chunk c int height = (int) (depth + (noise * scale)); for (int y = 0; y <= height; ++y) { chunk.setBlockState(new BlockPos(x, y, z), AstromineBlocks.MOON_STONE.getDefaultState(), false); + if (y <= 5) { + if (chunkRandom.nextInt(y + 1) == 0) { + chunk.setBlockState(new BlockPos(x, y, z), Blocks.BEDROCK.getDefaultState(), false); + } + } + } } }