Skip to content

Commit

Permalink
crystallized amber now has a higher chance of containing a fossil and…
Browse files Browse the repository at this point in the history
… a sculk leech
  • Loading branch information
NewJumper committed May 18, 2024
1 parent ca3aa8b commit 2d3fa11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void generateFossil(Level level, BlockPos pos) {
if(fossilizedEntity || loot != ItemStack.EMPTY) return;

RandomSource random = RandomSource.create(pos.asLong());
if(random.nextFloat() < 0.1f) fossilizedEntity = true;
if(random.nextFloat() < 0.15f) fossilizedEntity = true;
rotation = random.nextFloat() * 180;
if(fossilizedEntity) return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ else if(amberLength > 9 && incomplete) {
if(gapPlacement < gapStart || gapPlacement > gapStart + gapSize) level.setBlock(blockPos, DDBlocks.GLOOMSLATE.get().defaultBlockState(), 3);
gapPlacement++;
} else {
boolean fossil = random.nextFloat() < 0.3f;
boolean fossil = random.nextFloat() < 0.4f;
BlockState amber = DDBlocks.CRYSTALLIZED_AMBER.get().defaultBlockState();
level.setBlock(blockPos, fossil ? amber.setValue(CrystallizedAmberBlock.FOSSILIZED, true) : amber, 3);
if(fossil && level.getBlockEntity(blockPos) instanceof CrystallizedAmberBlockEntity blockEntity) blockEntity.generateFossil(level.getLevel(), blockPos);
Expand Down

0 comments on commit 2d3fa11

Please sign in to comment.