Skip to content

Commit

Permalink
Venus : added fog
Browse files Browse the repository at this point in the history
Mars : made the earth smaller but still visible with a spyglass
Mercury : sun is now larger and stars are visible in the day
  • Loading branch information
zVoltaic committed Mar 3, 2024
1 parent c351c32 commit fc0ddaf
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 19 deletions.
6 changes: 2 additions & 4 deletions src/main/java/argent_matter/gcyr/common/data/GCyRBiomes.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,25 @@

import argent_matter.gcyr.GCyR;
import net.minecraft.core.HolderGetter;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.Registries;
import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.resources.ResourceKey;
import net.minecraft.sounds.Music;
import net.minecraft.util.Mth;
import net.minecraft.world.level.biome.*;
import net.minecraft.world.level.levelgen.carver.ConfiguredWorldCarver;
import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
import net.minecraft.world.level.levelgen.placement.PlacedFeature;
import org.jetbrains.annotations.Nullable;

public class GCyRBiomes {
public static final ResourceKey<Biome> SPACE = ResourceKey.create(Registries.BIOME, GCyR.id("space"));
public static final ResourceKey<Biome> MOON = ResourceKey.create(Registries.BIOME, GCyR.id("moon"));
public static final ResourceKey<Biome> INFERNAL_VENUS_BARRENS = ResourceKey.create(Registries.BIOME, GCyR.id("infernal_venus_barrens"));
public static final ResourceKey<Biome> VENUS_BARREN_PLAINS = ResourceKey.create(Registries.BIOME, GCyR.id("venus_barren_plains"));
public static final ResourceKey<Biome> MARTIAN_CANYON_CREEK = ResourceKey.create(Registries.BIOME, GCyR.id("martian_canyon_creek"));
public static final ResourceKey<Biome> MARTIAN_POLAR_CAPS = ResourceKey.create(Registries.BIOME, GCyR.id("martian_polar_caps"));
public static final ResourceKey<Biome> MARTIAN_WASTELANDS = ResourceKey.create(Registries.BIOME, GCyR.id("martian_wastelands"));
public static final ResourceKey<Biome> MERCURY_DELTAS = ResourceKey.create(Registries.BIOME, GCyR.id("mercury_deltas"));
public static final ResourceKey<Biome> VENUS_WASTELANDS = ResourceKey.create(Registries.BIOME, GCyR.id("venus_wastelands"));
public static final ResourceKey<Biome> VENUS_HILLS = ResourceKey.create(Registries.BIOME, GCyR.id("venus_hills"));


public static void bootstrap(BootstapContext<Biome> ctx) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ protected void addTags(HolderLookup.Provider provider) {
tag(GCyRTags.IS_MOON).addOptional(GCyRBiomes.MOON.location());
tag(GCyRTags.IS_MERCURY).addOptional(GCyRBiomes.MERCURY_DELTAS.location());
tag(GCyRTags.IS_MARS).addOptional(GCyRBiomes.MARTIAN_CANYON_CREEK.location()).addOptional(GCyRBiomes.MARTIAN_WASTELANDS.location()).addOptional(GCyRBiomes.MARTIAN_POLAR_CAPS.location());
tag(GCyRTags.IS_VENUS).addOptional(GCyRBiomes.VENUS_WASTELANDS.location()).addOptional(GCyRBiomes.INFERNAL_VENUS_BARRENS.location());
tag(GCyRTags.IS_VENUS).addOptional(GCyRBiomes.VENUS_HILLS.location()).addOptional(GCyRBiomes.VENUS_BARREN_PLAINS.location());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"colored_stars": true,
"daylight_visible": false
},
"sunset_color": "vanilla",
"sunset_color": "blue",
"dimension_effects": {
"type": "simple"
},
Expand All @@ -29,7 +29,7 @@
"texture": "gcyr:textures/sky/earth.png",
"blending": true,
"render_type": "static",
"scale": 1.0,
"scale": 0.2,
"rotation": [
-20.0,
-40.0,
Expand All @@ -40,7 +40,7 @@
"texture": "gcyr:textures/sky/light.png",
"blending": true,
"render_type": "dynamic",
"scale": 2.5,
"scale": 0.5,
"color": 8437759,
"rotation": [
-20.0,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"world": "gcyr:mercury",
"stars": {
"fancy_count": 13000,
"fast_count": 6000,
"colored_stars": true,
"daylight_visible": true
},
"sunset_color": "none",
"dimension_effects": {
"type": "simple"
},
"cloud_effects": "none",
"weather_effects": "none",
"horizon_angle": 0,
"sky_objects": [
{
"texture": "gcyr:textures/sky/sun.png",
"blending": true,
"render_type": "dynamic",
"scale": 90.0,
"rotation": [
0.0,
-90.0,
0.0
]
}
]
}
1 change: 1 addition & 0 deletions src/main/resources/data/gcyr/dimension_type/venus.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"natural": true,
"piglin_safe": true,
"respawn_anchor_works": false,
"effects": "minecraft:the_nether",
"bed_works": true,
"has_raids": false,
"has_skylight": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@
"temperature": 1.6,
"downfall": 1,
"has_precipitation": true,
"creature_spawn_probability": 0,
"effects": {
"sky_color": -3044526,
"fog_color": -3044526,
"sky_color": 13943453,
"fog_color": 15261874,
"water_color": 4159204,
"water_fog_color": 329011,
"grass_color": 9551193,
"foliage_color": 7842607
},
"creature_spawn_probability": 0,
"spawners": {
},
"spawn_costs": {
},
"spawners": {},
"spawn_costs": {},
"carvers": {
"air": [
"minecraft:cave",
Expand All @@ -29,4 +27,4 @@
"minecraft:pointed_dripstone"
]
]
}
}
6 changes: 3 additions & 3 deletions src/main/resources/data/gcyr/worldgen/biome/venus_hills.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"downfall": 1,
"has_precipitation": true,
"effects": {
"sky_color": -3044526,
"fog_color": -3044526,
"sky_color": 13943453,
"fog_color": 15261874,
"water_color": 4159204,
"water_fog_color": 329011,
"grass_color": 9551193,
"foliage_color": 7842607
},
"creature_spawn_probability": 0.2,
"creature_spawn_probability": 0,
"spawners": {
},
"spawn_costs": {
Expand Down

0 comments on commit fc0ddaf

Please sign in to comment.