[Request] Configurable hardrock-forming blocks and confining blocks?
nepphhh opened this issue ยท 2 comments
I'd like to make some modded materials harden under pressure and also to add them and some other blocks as confining blocks! Is there a config for 1.10.2 that would do this? If not, would you consider adding one?
I actually investigated making the blocks that could harden configurable, but my current knowledge of modding isn't adequate to the challenge. I gave up. If you know enough to tackle it, I'd welcome a pull request.
But for both that and configuring other blocks that "compress" I would only consider adding them for the latest version, currently 1.12.2. I may revisit these possible additions when I get around to upgrading this to 1.13 at some point.
How hard would it be for this list to be referenced from a config's list of blocks? Something like minecraft:dirt, minecraft:stone, quark:basalt, etc.?
> ~/blocks/BlockHardStone.java
public static boolean isCompressingBlock(Block block) {
return block instanceof BlockStone ||
block == Blocks.BEDROCK ||
block == Blocks.DIRT ||
block == Blocks.SANDSTONE ||
block == Blocks.RED_SANDSTONE ||
block == Blocks.STAINED_HARDENED_CLAY ||
block == Blocks.HARDENED_CLAY ||
(block instanceof BlockOre);
}
I'm not a Java coder, so I'm not sure how you're handling different types of rocks--how do you form hardstone granite, for example?
Would you consider forking off just the hardstone component of iberia into its own mod?