generated from QuiltMC/quilt-template-mod
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ore generate and fix recipes and lang
- Loading branch information
1 parent
54d5691
commit cc520e2
Showing
15 changed files
with
108 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,8 @@ features [ | |
"disk_sand" | ||
"disk_clay" | ||
"disk_gravel" | ||
|
||
"wwizardry:ore/rose_quartz_biome" | ||
] | ||
[ | ||
"sculk_vein" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
type = "ore" | ||
|
||
config { | ||
discard_chance_on_air_exposure = 0 | ||
size = 6 | ||
targets [ | ||
{ | ||
state { Name = "wwizardry:rose_quartz_ore" } | ||
target { | ||
predicate_type = "tag_match" | ||
tag = "stone_ore_replaceables" | ||
} | ||
} | ||
{ | ||
state { Name = "wwizardry:deepslate_rose_quartz_ore" } | ||
target { | ||
predicate_type = "tag_match" | ||
tag = "deepslate_ore_replaceables" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
feature = "wwizardry:ore/rose_quartz" | ||
|
||
placement [ | ||
{ | ||
type = "count" | ||
count = 13 | ||
} | ||
{ type = "in_square" } | ||
{ | ||
type = "height_range" | ||
height { | ||
type = "trapezoid" | ||
max_inclusive { above_bottom = 96 } | ||
min_inclusive { above_bottom = -16 } | ||
} | ||
} | ||
{ type = "biome" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
feature = "wwizardry:ore/rose_quartz" | ||
|
||
placement [ | ||
{ | ||
type = "count" | ||
count = 6 | ||
} | ||
{ type = "in_square" } | ||
{ | ||
type = "height_range" | ||
height { | ||
type = "trapezoid" | ||
max_inclusive { above_bottom = 128 } | ||
min_inclusive { above_bottom = 0 } | ||
} | ||
} | ||
{ type = "biome" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
src/main/java/dev/sweetberry/wwizardry/world/WanderingBiomes.java
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
src/main/java/dev/sweetberry/wwizardry/world/WanderingWorldgen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package dev.sweetberry.wwizardry.world; | ||
|
||
import dev.sweetberry.wwizardry.WanderingMod; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.world.biome.Biome; | ||
import net.minecraft.world.biome.Biomes; | ||
import net.minecraft.world.biome.source.util.MultiNoiseUtil; | ||
import net.minecraft.world.gen.GenerationStep; | ||
import net.minecraft.world.gen.feature.PlacedFeature; | ||
import org.quiltmc.qsl.worldgen.biome.api.BiomeModifications; | ||
import org.quiltmc.qsl.worldgen.biome.api.BiomeSelectors; | ||
import org.quiltmc.qsl.worldgen.biome.api.ModificationPhase; | ||
import terrablender.api.ModifiedVanillaOverworldBuilder; | ||
|
||
public class WanderingWorldgen { | ||
private static final MultiNoiseUtil.ParameterRange FULL_RANGE = MultiNoiseUtil.ParameterRange.of(-1.0f, 1.0f); | ||
public static final RegistryKey<Biome> FORGOTTEN_FIELDS = key("forgotten_fields"); | ||
public static final RegistryKey<PlacedFeature> ROSE_QUARTZ = RegistryKey.of(RegistryKeys.PLACED_FEATURE, WanderingMod.id("ore/rose_quartz")); | ||
|
||
public static RegistryKey<Biome> key(String path) { | ||
return RegistryKey.of(RegistryKeys.BIOME, WanderingMod.id(path)); | ||
} | ||
|
||
public static void init() { | ||
var modification = BiomeModifications.create(WanderingMod.id("modifications")); | ||
|
||
modification.add(ModificationPhase.ADDITIONS, BiomeSelectors.foundInOverworld(), (ctx, modifications) -> { | ||
modifications.getGenerationSettings().addFeature(GenerationStep.Feature.UNDERGROUND_ORES, ROSE_QUARTZ); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/resources/data/wwizardry/worldgen/biome/forgotten_fields.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"temperature":0.55,"downfall":0.8,"has_precipitation":true,"effects":{"sky_color":7907327,"fog_color":12638463,"water_color":4159204,"water_fog_color":329011,"grass_color":1479277,"foliage_color":1479277,"mood_sound":{"sound":"ambient.cave","tick_delay":6000,"block_search_extent":8,"offset":2}},"spawn_costs":{},"carvers":{"air":["cave","cave_extra_underground","canyon"]},"features":[[],["lake_lava_underground","lake_lava_surface"],["amethyst_geode"],["monster_room","monster_room_deep"],[],[],["ore_dirt","ore_gravel","ore_granite_upper","ore_granite_lower","ore_diorite_upper","ore_diorite_lower","ore_andesite_upper","ore_andesite_lower","ore_tuff","ore_coal_upper","ore_coal_lower","ore_iron_upper","ore_iron_middle","ore_iron_small","ore_gold","ore_gold_lower","ore_redstone","ore_redstone_lower","ore_diamond","ore_diamond_large","ore_diamond_buried","ore_lapis","ore_lapis_buried","ore_copper","underwater_magma","disk_sand","disk_clay","disk_gravel"],["sculk_vein","wwizardry:rare_sculk_patch"],["spring_water","spring_lava"],["wwizardry:tree/denia","wwizardry:flower_patch","glow_lichen","patch_tall_grass_2","flower_plains","patch_grass_plain","brown_mushroom_normal","red_mushroom_normal","patch_sugar_cane","patch_pumpkin"],["freeze_top_layer"]],"spawners":{"ambient":[{"type":"bat","weight":10,"minCount":8,"maxCount":8}],"axolotls":[],"creature":[{"type":"sheep","weight":12,"minCount":4,"maxCount":4},{"type":"pig","weight":10,"minCount":4,"maxCount":4},{"type":"chicken","weight":10,"minCount":4,"maxCount":4},{"type":"cow","weight":8,"minCount":4,"maxCount":4},{"type":"horse","weight":5,"minCount":2,"maxCount":6},{"type":"donkey","weight":1,"minCount":1,"maxCount":3}],"misc":[],"monster":[{"type":"spider","weight":100,"minCount":4,"maxCount":4},{"type":"zombie","weight":95,"minCount":4,"maxCount":4},{"type":"zombie_villager","weight":5,"minCount":1,"maxCount":1},{"type":"skeleton","weight":100,"minCount":4,"maxCount":4},{"type":"creeper","weight":100,"minCount":4,"maxCount":4},{"type":"slime","weight":100,"minCount":4,"maxCount":4},{"type":"enderman","weight":10,"minCount":1,"maxCount":4},{"type":"witch","weight":5,"minCount":1,"maxCount":1}],"underground_water_creature":[{"type":"glow_squid","weight":10,"minCount":4,"maxCount":6}],"water_ambient":[],"water_creature":[]}} | ||
{"temperature":0.55,"downfall":0.8,"has_precipitation":true,"effects":{"sky_color":7907327,"fog_color":12638463,"water_color":4159204,"water_fog_color":329011,"grass_color":1479277,"foliage_color":1479277,"mood_sound":{"sound":"ambient.cave","tick_delay":6000,"block_search_extent":8,"offset":2}},"spawn_costs":{},"carvers":{"air":["cave","cave_extra_underground","canyon"]},"features":[[],["lake_lava_underground","lake_lava_surface"],["amethyst_geode"],["monster_room","monster_room_deep"],[],[],["ore_dirt","ore_gravel","ore_granite_upper","ore_granite_lower","ore_diorite_upper","ore_diorite_lower","ore_andesite_upper","ore_andesite_lower","ore_tuff","ore_coal_upper","ore_coal_lower","ore_iron_upper","ore_iron_middle","ore_iron_small","ore_gold","ore_gold_lower","ore_redstone","ore_redstone_lower","ore_diamond","ore_diamond_large","ore_diamond_buried","ore_lapis","ore_lapis_buried","ore_copper","underwater_magma","disk_sand","disk_clay","disk_gravel","wwizardry:ore/rose_quartz_biome"],["sculk_vein","wwizardry:rare_sculk_patch"],["spring_water","spring_lava"],["wwizardry:tree/denia","wwizardry:flower_patch","glow_lichen","patch_tall_grass_2","flower_plains","patch_grass_plain","brown_mushroom_normal","red_mushroom_normal","patch_sugar_cane","patch_pumpkin"],["freeze_top_layer"]],"spawners":{"ambient":[{"type":"bat","weight":10,"minCount":8,"maxCount":8}],"axolotls":[],"creature":[{"type":"sheep","weight":12,"minCount":4,"maxCount":4},{"type":"pig","weight":10,"minCount":4,"maxCount":4},{"type":"chicken","weight":10,"minCount":4,"maxCount":4},{"type":"cow","weight":8,"minCount":4,"maxCount":4},{"type":"horse","weight":5,"minCount":2,"maxCount":6},{"type":"donkey","weight":1,"minCount":1,"maxCount":3}],"misc":[],"monster":[{"type":"spider","weight":100,"minCount":4,"maxCount":4},{"type":"zombie","weight":95,"minCount":4,"maxCount":4},{"type":"zombie_villager","weight":5,"minCount":1,"maxCount":1},{"type":"skeleton","weight":100,"minCount":4,"maxCount":4},{"type":"creeper","weight":100,"minCount":4,"maxCount":4},{"type":"slime","weight":100,"minCount":4,"maxCount":4},{"type":"enderman","weight":10,"minCount":1,"maxCount":4},{"type":"witch","weight":5,"minCount":1,"maxCount":1}],"underground_water_creature":[{"type":"glow_squid","weight":10,"minCount":4,"maxCount":6}],"water_ambient":[],"water_creature":[]}} |
1 change: 1 addition & 0 deletions
1
src/main/resources/data/wwizardry/worldgen/configured_feature/ore/rose_quartz.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"ore","config":{"discard_chance_on_air_exposure":0,"size":6,"targets":[{"state":{"Name":"wwizardry:rose_quartz_ore"},"target":{"predicate_type":"tag_match","tag":"stone_ore_replaceables"}},{"state":{"Name":"wwizardry:deepslate_rose_quartz_ore"},"target":{"predicate_type":"tag_match","tag":"deepslate_ore_replaceables"}}]}} |
1 change: 1 addition & 0 deletions
1
src/main/resources/data/wwizardry/worldgen/placed_feature/ore/rose_quartz.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"feature":"wwizardry:ore/rose_quartz","placement":[{"type":"count","count":13},{"type":"in_square"},{"type":"height_range","height":{"type":"trapezoid","max_inclusive":{"above_bottom":96},"min_inclusive":{"above_bottom":-16}}},{"type":"biome"}]} |
1 change: 1 addition & 0 deletions
1
src/main/resources/data/wwizardry/worldgen/placed_feature/ore/rose_quartz_biome.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"feature":"wwizardry:ore/rose_quartz","placement":[{"type":"count","count":6},{"type":"in_square"},{"type":"height_range","height":{"type":"trapezoid","max_inclusive":{"above_bottom":128},"min_inclusive":{"above_bottom":0}}},{"type":"biome"}]} |