Skip to content

Commit

Permalink
Backend: Add mid-tier Umber (#3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaynx authored Dec 8, 2024
1 parent 2e19069 commit 4cb3985
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ enum class OreBlock(

// GLACIAL
LOW_TIER_UMBER(::isLowTierUmber, { inGlacite }),
MID_TIER_UMBER(::isMidTierUmber, { inGlacite }),
HIGH_TIER_UMBER(::isHighTierUmber, { inGlacite }),

LOW_TIER_TUNGSTEN_TUNNELS(::isLowTierTungstenTunnels, { inTunnels }),
Expand Down Expand Up @@ -166,8 +167,10 @@ private fun isRedSand(state: IBlockState): Boolean =
(state.block == Blocks.sand && state.getValue(BlockSand.VARIANT) == BlockSand.EnumType.RED_SAND)

private fun isLowTierUmber(state: IBlockState): Boolean =
state.block == Blocks.hardened_clay ||
(state.block == Blocks.stained_hardened_clay && state.getValue(BlockColored.COLOR) == EnumDyeColor.BROWN)
state.block == Blocks.hardened_clay

private fun isMidTierUmber(state: IBlockState): Boolean =
(state.block == Blocks.stained_hardened_clay && state.getValue(BlockColored.COLOR) == EnumDyeColor.BROWN)

private fun isHighTierUmber(state: IBlockState): Boolean =
(state.block == Blocks.double_stone_slab2 && state.getValue(BlockStoneSlabNew.VARIANT) == BlockStoneSlabNew.EnumType.RED_SANDSTONE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ enum class OreType(
UMBER(
"Umber",
"UMBER",
OreBlock.LOW_TIER_UMBER, OreBlock.HIGH_TIER_UMBER,
OreBlock.LOW_TIER_UMBER, OreBlock.MID_TIER_UMBER, OreBlock.HIGH_TIER_UMBER,
),
TUNGSTEN(
"Tungsten",
Expand Down

0 comments on commit 4cb3985

Please sign in to comment.