Skip to content

Commit

Permalink
customBiome
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiShanair committed Feb 24, 2024
1 parent 5794d2a commit bf035e7
Show file tree
Hide file tree
Showing 16 changed files with 386 additions and 14 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repositories {
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
maven { url = 'https://maven.minecraftforge.net/' }
}

fabricApi {
Expand All @@ -30,6 +31,7 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation 'com.github.glitchfiend:TerraBlender-fabric:1.20-3.0.0.163'

// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20 2024-02-23T10:16:31.9377071 Tutorial Mod/Block Loot Tables
// 1.20 2024-02-24T13:00:24.3629096 Tutorial Mod/Block Loot Tables
f856acdc24b7ee23232ef53a2730f89be45a6fb0 data\tutorialmod\loot_tables\blocks\ice_ether_pressure_plate.json
9c6ea6e91265bcba013fbd0ff3c1474c06ef7b07 data\tutorialmod\loot_tables\blocks\ice_ether_leaves.json
104db78bc21c049f01d0a45256b364a5c46b4247 data\tutorialmod\loot_tables\blocks\ice_ether_slab.json
Expand All @@ -7,8 +7,8 @@ aec821070ab5dee5fd108b77f0ce6c82f141f493 data\tutorialmod\loot_tables\blocks\ice
5215aa3604a66fa37216c55a41081759e8be6783 data\tutorialmod\loot_tables\blocks\ice_ether_stair.json
666c86893ecc68049f972766034b8b82bc203176 data\tutorialmod\loot_tables\blocks\ice_ether_button.json
4a9fa211008dad1727dc66a1cf109e0c84cae82e data\tutorialmod\loot_tables\blocks\ice_ether_fence_gate.json
2e3660e88029c9d2bdbc927a70666bb6874df046 data\tutorialmod\loot_tables\blocks\ice_ether_planks.json
80c8a30b787c65f39c88b263cb8f23791ebd8d50 data\tutorialmod\loot_tables\blocks\ice_ether_trapdoor.json
2e3660e88029c9d2bdbc927a70666bb6874df046 data\tutorialmod\loot_tables\blocks\ice_ether_planks.json
75ce3e90124790908b628da659572035293311ef data\tutorialmod\loot_tables\blocks\ice_ether_log.json
921371bb425e3b2c5b33039e36353de3134c4a1b data\tutorialmod\loot_tables\blocks\raw_ice_ether_block.json
6ef871eebaaf4c426be910a62fac6cc90c7706bb data\tutorialmod\loot_tables\blocks\stripped_ice_ether_log.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// 1.20 2024-02-23T10:16:31.940707 Tutorial Mod/Tags for minecraft:block
6594795e343a0735ffeed65007f8302fe6eefc6b data\minecraft\tags\blocks\walls.json
// 1.20 2024-02-24T13:00:24.3651087 Tutorial Mod/Tags for minecraft:block
7d2d23a1205b470cb0bf371376bb0bd61747008d data\tutorialmod\tags\blocks\prospector_list.json
6594795e343a0735ffeed65007f8302fe6eefc6b data\minecraft\tags\blocks\walls.json
da0c8afadbc3b0594ff3355cbf4785e7c875b347 data\minecraft\tags\blocks\mineable\pickaxe.json
7c2f7d0466e52c396756c1ed4a61216de16caf09 data\minecraft\tags\blocks\needs_iron_tool.json
f73b2ddce5db4133eaa9b3aa403f51a2f5e3319b data\minecraft\tags\blocks\fence_gates.json
fed6b5368f9ac2d6673baa42557633cfecc51b9e data\fabric\tags\blocks\needs_tool_level_4.json
0bfa34a0d1522fa6d9de2257bbe8a3eec8be3e06 data\minecraft\tags\blocks\needs_stone_tool.json
fed6b5368f9ac2d6673baa42557633cfecc51b9e data\fabric\tags\blocks\needs_tool_level_4.json
6e0031b4cc3bdd65f8c9f6be6dba94a6a8b1493d data\minecraft\tags\blocks\fences.json
0d8f0fa47521f4f5ef9dd34ee3f82e88adf79a09 data\minecraft\tags\blocks\needs_diamond_tool.json
1f7cbaca51d2406ff9e819b6305fbfa57465c538 data\minecraft\tags\blocks\logs_that_burn.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20 2024-02-23T10:16:31.9397068 Tutorial Mod/Model Definitions
// 1.20 2024-02-24T13:00:24.363909 Tutorial Mod/Model Definitions
8f322c19ddc2db4ce7e171d77ebb9db5603f651d assets\tutorialmod\models\item\raw_ice_ether.json
bffb482765941ed0f5d1ebdc91deead34197b921 assets\tutorialmod\blockstates\ice_ether_fence_gate.json
20c838e70833de9004bf47ea5feb56f6f22df8eb assets\tutorialmod\models\item\ice_ether_helmet_emerald_trim.json
Expand Down Expand Up @@ -44,8 +44,8 @@ dd1d7f811c88b16f8a0afc37f1c410d3bb629975 assets\tutorialmod\models\item\ice_ethe
c48afdae2b39d197dfa476616ce66bd1a86f61c3 assets\tutorialmod\models\item\ice_ether_boots_netherite_trim.json
451e60e1259946accc25af95f5e5ec2f62a67114 assets\tutorialmod\models\item\ice_ether_trapdoor.json
943869b1b72d1ae84a23b4cde9aeb9ad5da840af assets\tutorialmod\models\item\prospector.json
51a333e7e3ab9bc1e06cb80155a8c3c3489765f1 assets\tutorialmod\models\item\ice_ether_helmet_gold_trim.json
29f3fdd1f47c22948a11fd818673495f656ba3af assets\tutorialmod\models\block\stripped_ice_ether_log.json
51a333e7e3ab9bc1e06cb80155a8c3c3489765f1 assets\tutorialmod\models\item\ice_ether_helmet_gold_trim.json
a32931542da8d8782c8117c56fcfed5e7bc90e66 assets\tutorialmod\models\block\strawberry_crop_stage2.json
dbbfcbe1b6524f166f969deb1fb73e96d241ccb3 assets\tutorialmod\blockstates\ice_ether_slab.json
55a290da0cbda33f8f75aee451d6d1c678e082ef assets\tutorialmod\models\item\ice_ether_leggings_redstone_trim.json
Expand All @@ -70,8 +70,8 @@ ce0fb17dcd9810d4f5cfdfd93a61a8a77a1ad9a5 assets\tutorialmod\models\item\polishin
50bbebb4b891a4bbf8b03f274e70f810abbbf967 assets\tutorialmod\models\item\ice_ether_button.json
e68789011afede5a84a342053df4da4214ad9414 assets\tutorialmod\models\item\ice_ether_helmet_netherite_trim.json
c1d93274316a629398ff1352788325c6b102423a assets\tutorialmod\models\block\ice_ether_fence_gate_wall.json
511ca2acda508aba33110458010a081dfc6aa30e assets\tutorialmod\models\item\anthracite.json
6c004e3de5a45f480f3738c83348a1b3a5cf2b00 assets\tutorialmod\models\block\ice_ether_door_top_left_open.json
511ca2acda508aba33110458010a081dfc6aa30e assets\tutorialmod\models\item\anthracite.json
37f9ad8e408f4df80840554eb029be0e61b102d8 assets\tutorialmod\models\item\ice_ether_chestplate.json
634390f9ef2b006f97befe3aace1cc6ed39389cb assets\tutorialmod\models\item\ice_ether_leggings_copper_trim.json
429d5891cd4d1d57695f92608f83dae3a3b36a16 assets\tutorialmod\models\item\ice_ether_helmet_redstone_trim.json
Expand Down Expand Up @@ -140,15 +140,15 @@ b7c81ba5bd25f81b8c0358b7877505959e59612c assets\tutorialmod\models\item\ice_ethe
b956188af81c5654089eeeb9aad7217e0da404b4 assets\tutorialmod\blockstates\ice_ether_log.json
60edf87cb6f6757a07d9ec1947b133feaf290253 assets\tutorialmod\models\block\ice_ether_door_bottom_left.json
6f7edadaadb519da96dd6045fb6f52f78ca46de2 assets\tutorialmod\models\block\ice_ether_wall_side_tall.json
e3c1ef38f3632c960a26452f06734f8877af0dfd assets\tutorialmod\models\item\ice_ether_helmet_amethyst_trim.json
beae1de33c286eb9da43f0c75525766bd6cc4088 assets\tutorialmod\models\item\ice_ether_log.json
e3c1ef38f3632c960a26452f06734f8877af0dfd assets\tutorialmod\models\item\ice_ether_helmet_amethyst_trim.json
af2ceebdf60643859cc4b5f207165cf86a04bf40 assets\tutorialmod\models\item\ice_ether_boots_redstone_trim.json
8a410b48a692029440b7eb8a7670cfa6a553da9d assets\tutorialmod\models\item\ice_ether_leaves.json
12664b4c4a4e1ce91949906d538042222617ee75 assets\tutorialmod\blockstates\ice_ether_leaves.json
1fa481f9106dcfdb539da79e461f65ef7a0afe58 assets\tutorialmod\models\block\ice_ether_wood.json
9034f3575a4c07ce94a29f8333af5f2dbc804621 assets\tutorialmod\models\item\ice_ether_boots_emerald_trim.json
bf854aeb4489ab43fdb707fdab7ff0b8f04ed176 assets\tutorialmod\models\item\ice_ether_chestplate_quartz_trim.json
fcf79cdd6d5dd8239ea073342ad409cc08400844 assets\tutorialmod\models\block\ice_ether_tree_sapling.json
bf854aeb4489ab43fdb707fdab7ff0b8f04ed176 assets\tutorialmod\models\item\ice_ether_chestplate_quartz_trim.json
83e5cda88bc0d826ea885f430c9bcb19f12e43c3 assets\tutorialmod\models\item\happy_new_year_music_disc.json
aae31cd6e30b8d7a7194787e615c6b4cd3b80972 assets\tutorialmod\blockstates\ice_ether_wall.json
aa754c11f0064668356780e35365a1ea368d3748 assets\tutorialmod\models\item\ice_ether_door.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// 1.20 2024-02-23T10:16:31.940707 Tutorial Mod/World Gen
// 1.20 2024-02-24T13:00:24.3661091 Tutorial Mod/World Gen
7ae7163669e786623d208917d72defcc7af5b122 data\tutorialmod\worldgen\biome\diamond_biome.json
4a5e997d35726137d1475dd08214665f9b5a1b0b data\tutorialmod\worldgen\configured_feature\ice_ether_ore.json
023758fa1cc39dbe4745abe178261c99218c0e87 data\tutorialmod\worldgen\configured_feature\ice_ether_tree.json
2b37213a87c63c7154bb606cde8fc31f31996f6e data\tutorialmod\worldgen\placed_feature\ice_ether_ore_placed.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20 2024-02-23T10:16:31.9387076 Tutorial Mod/Recipes
// 1.20 2024-02-24T13:00:24.3629096 Tutorial Mod/Recipes
0446d0bd45e65c672637f3c6c4be6bfa8bd90c57 data\tutorialmod\advancements\recipes\misc\ice_ether.json
18aab3737a6b952a7883838edaa01e69c5a83600 data\tutorialmod\recipes\ice_ether_from_smelting_raw_ice_ether.json
a7a52623ff3f32e9f526354c6a1c278326e79d6c data\tutorialmod\recipes\ice_ether.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.20 2024-02-23T10:16:31.9387076 Tutorial Mod/Tags for minecraft:point_of_interest_type
// 1.20 2024-02-24T13:00:24.363909 Tutorial Mod/Tags for minecraft:point_of_interest_type
78962891c373229b4fe870a6579bd271c66c239e data\minecraft\tags\point_of_interest_type\acquirable_job_site.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20 2024-02-23T10:16:31.9377071 Tutorial Mod/Tags for minecraft:item
// 1.20 2024-02-24T13:00:24.3619092 Tutorial Mod/Tags for minecraft:item
ce010d2466a35ec6f527d2d2cfd45bb119c1b373 data\minecraft\tags\items\trimmable_armor.json
1f7cbaca51d2406ff9e819b6305fbfa57465c538 data\minecraft\tags\items\logs_that_burn.json
306f39b9aba10f8b2b11e685a58e9a18ac9a455a data\minecraft\tags\items\music_discs.json
Expand Down
208 changes: 208 additions & 0 deletions src/main/generated/data/tutorialmod/worldgen/biome/diamond_biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"carvers": {
"air": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
]
},
"downfall": 0.4,
"effects": {
"fog_color": 2269670,
"foliage_color": 13763580,
"grass_color": 8324092,
"mood_sound": {
"block_search_extent": 8,
"offset": 2.0,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": {
"sound_id": "tutorialmod:happy_new_year"
}
},
"sky_color": 3197208,
"water_color": 15216187,
"water_fog_color": 12524326
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode",
"minecraft:forest_rock"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:ore_coal_upper",
"minecraft:ore_coal_lower",
"minecraft:ore_iron_upper",
"minecraft:ore_iron_middle",
"minecraft:ore_iron_small",
"minecraft:ore_gold",
"minecraft:ore_gold_lower",
"minecraft:ore_redstone",
"minecraft:ore_redstone_lower",
"minecraft:ore_diamond",
"minecraft:ore_diamond_large",
"minecraft:ore_diamond_buried",
"minecraft:ore_lapis",
"minecraft:ore_lapis_buried",
"minecraft:ore_copper",
"minecraft:underwater_magma",
"minecraft:ore_gold_extra"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:trees_plains",
"minecraft:forest_flowers",
"minecraft:patch_large_fern",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_sugar_cane",
"minecraft:patch_pumpkin"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "tutorialmod:tiger",
"maxCount": 5,
"minCount": 3,
"weight": 2
},
{
"type": "minecraft:wolf",
"maxCount": 4,
"minCount": 4,
"weight": 5
},
{
"type": "minecraft:sheep",
"maxCount": 4,
"minCount": 4,
"weight": 12
},
{
"type": "minecraft:pig",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:chicken",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:cow",
"maxCount": 4,
"minCount": 4,
"weight": 8
}
],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:creeper",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.7
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.besson.tutorialmod.datagen.*;
import com.besson.tutorialmod.world.ModConfiguredFeatures;
import com.besson.tutorialmod.world.ModPlacedFeatures;
import com.besson.tutorialmod.world.biome.ModBiomes;
import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
import net.minecraft.registry.RegistryBuilder;
Expand All @@ -27,5 +28,6 @@ public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
public void buildRegistry(RegistryBuilder registryBuilder) {
registryBuilder.addRegistry(RegistryKeys.CONFIGURED_FEATURE, ModConfiguredFeatures::boostrap);
registryBuilder.addRegistry(RegistryKeys.PLACED_FEATURE, ModPlacedFeatures::boostrap);
registryBuilder.addRegistry(RegistryKeys.BIOME, ModBiomes::boostrap);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public ModWorldGenerator(FabricDataOutput output, CompletableFuture<RegistryWrap
protected void configure(RegistryWrapper.WrapperLookup registries, Entries entries) {
entries.addAll(registries.getWrapperOrThrow(RegistryKeys.CONFIGURED_FEATURE));
entries.addAll(registries.getWrapperOrThrow(RegistryKeys.PLACED_FEATURE));
entries.addAll(registries.getWrapperOrThrow(RegistryKeys.BIOME));
}

@Override
Expand Down
Loading

0 comments on commit bf035e7

Please sign in to comment.