Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.

that feels right

+9 -2
+7 -1
common/src/main/java/net/lerariemann/infinity/options/SkyRenderer.java
··· 233 233 Vector3f color = options.getStellarColor(); 234 234 if (u > 0.0f) { 235 235 RenderSystem.setShaderColor(u*color.x, u*color.y, u*color.z, u); 236 - BackgroundRenderer.clearFog(); 236 + clearFog(); 237 237 starsBuffer.bind(); 238 238 starsBuffer.draw(matrix4f2, projectionMatrix, GameRenderer.getPositionProgram()); 239 239 VertexBuffer.unbind(); 240 240 fogCallback.run(); 241 241 } 242 242 } 243 + 244 + private void clearFog() { 245 + if (BackgroundRenderer.fogEnabled) 246 + BackgroundRenderer.toggleFog(); 247 + } 248 + 243 249 public float getStarBrightness(float tickDelta) { 244 250 float f = world.getSkyAngle(tickDelta); 245 251 float g = 1.0F - (MathHelper.cos(f * (float) (Math.PI * 2)) * 2.0F + 0.25F);
+2 -1
common/src/main/resources/infinity.accesswidener
··· 14 14 accessible method net/minecraft/block/NetherPortalBlock getOrCreateExitPortalTarget (Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Lnet/minecraft/world/TeleportTarget; 15 15 accessible class net/minecraft/entity/passive/FishEntity$FishMoveControl 16 16 accessible class net/minecraft/registry/SimpleRegistry$TagLookup 17 - accessible field net/minecraft/loot/context/LootContextTypes MAP Lcom/google/common/collect/BiMap; 17 + accessible field net/minecraft/loot/context/LootContextTypes MAP Lcom/google/common/collect/BiMap; 18 + accessible field net/minecraft/client/render/BackgroundRenderer fogEnabled Z