Skip to content

Commit

Permalink
Randomize tree of time position on spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Sep 28, 2024
1 parent a500228 commit a316ac5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public boolean generate(World world, Random random, BlockPos pos) {
buildBranchRing(world, random, pos, diameter, 1, 2, 18, 0, 0.9D, 0, 3, 5, 3, false);

// add clock block
this.setBlockAndNotifyAdequately(world, pos.add(-1, 2, 0), TFBlocks.magic_log_core.getDefaultState());
EnumFacing facing = EnumFacing.HORIZONTALS[random.nextInt(4)];
int xOff = facing.getXOffset();
int zOff = facing.getZOffset();
this.setBlockAndNotifyAdequately(world, pos.add(xOff, 2, zOff), TFBlocks.magic_log_core.getDefaultState());

return true;
}
Expand Down

0 comments on commit a316ac5

Please sign in to comment.