From fda190c829187cc6ca05be0609b071eef0d7c8fb Mon Sep 17 00:00:00 2001 From: SD Date: Tue, 14 Jul 2020 17:34:26 +0530 Subject: [PATCH] Added limbo world gen and JiJed openworlds Changes to be committed: modified: src/main/java/org/dimdev/dimdoors/DimensionalDoorsClientInitializer.java modified: src/main/resources/assets/dimdoors/models/block/marking_plate.json modified: src/main/resources/data/minecraft/dimension/dimdoors/limbo.json modified: src/main/resources/data/minecraft/dimension_type/dimdoors/limbo.json --- .../DimensionalDoorsClientInitializer.java | 3 + .../dimdoors/models/block/marking_plate.json | 1 + .../minecraft/dimension/dimdoors/limbo.json | 68 +++++++++++++++++-- .../dimension_type/dimdoors/limbo.json | 4 +- 4 files changed, 69 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/dimdev/dimdoors/DimensionalDoorsClientInitializer.java b/src/main/java/org/dimdev/dimdoors/DimensionalDoorsClientInitializer.java index eec81b29..51d1c3ec 100644 --- a/src/main/java/org/dimdev/dimdoors/DimensionalDoorsClientInitializer.java +++ b/src/main/java/org/dimdev/dimdoors/DimensionalDoorsClientInitializer.java @@ -2,6 +2,8 @@ package org.dimdev.dimdoors; import io.github.waterpicker.openworlds.OpenWorlds; import net.fabricmc.api.ClientModInitializer; +import net.fabricmc.api.EnvType; +import net.fabricmc.api.Environment; import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap; import net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler; import net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandlerRegistry; @@ -32,6 +34,7 @@ import org.dimdev.dimdoors.world.ModDimensions; import java.util.function.Function; +@Environment(EnvType.CLIENT) public class DimensionalDoorsClientInitializer implements ClientModInitializer { @Override public void onInitializeClient() { diff --git a/src/main/resources/assets/dimdoors/models/block/marking_plate.json b/src/main/resources/assets/dimdoors/models/block/marking_plate.json index 22817c42..2b0ffe78 100644 --- a/src/main/resources/assets/dimdoors/models/block/marking_plate.json +++ b/src/main/resources/assets/dimdoors/models/block/marking_plate.json @@ -1,4 +1,5 @@ { + "parent": "block/block", "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "0": "dimdoors:block/marking_plate" diff --git a/src/main/resources/data/minecraft/dimension/dimdoors/limbo.json b/src/main/resources/data/minecraft/dimension/dimdoors/limbo.json index bc83f71a..e73a716a 100644 --- a/src/main/resources/data/minecraft/dimension/dimdoors/limbo.json +++ b/src/main/resources/data/minecraft/dimension/dimdoors/limbo.json @@ -1,10 +1,68 @@ { + "type": "dimdoors:limbo", "generator": { - "type": "dimdoors:blank", + "type": "minecraft:noise", + "seed": 341873128753, "biome_source": { - "type": "minecraft:fixed", - "biome": "dimdoors:black_void" + "type": "minecraft:multi_noise", + "seed": 341873128753, + "biomes": [ + { + "parameters": { + "altitude": 0.20, + "weirdness": 0.20, + "offset": 0.00, + "temperature": 0.00, + "humidity": 0.00 + }, + "biome": "dimdoors:limbo" + } + ] + }, + "settings": { + "bedrock_floor_position": 0, + "bedrock_roof_position": -1, + "disable_mob_generation": false, + "sea_level": 0, + "structures": { + "structures": {} + }, + "noise": { + "density_factor": 1, + "density_offset": -0.26875, + "simplex_surface_noise": false, + "random_density_offset": true, + "island_noise_override": false, + "amplified": true, + "size_horizontal": 1, + "size_vertical": 4, + "height": 178, + "sampling": { + "xz_scale": 1, + "y_scale": 3, + "xz_factor": 60, + "y_factor": 240 + }, + "bottom_slide": { + "target": -30, + "size": 0, + "offset": 0 + }, + "top_slide": { + "target": -10, + "size": 3, + "offset": 0 + } + }, + "default_block": { + "Name": "dimdoors:unravelled_fabric" + }, + "default_fluid": { + "Name": "minecraft:water", + "Properties": { + "level": "0" + } + } } - }, - "type": "dimdoors:limbo" + } } \ No newline at end of file diff --git a/src/main/resources/data/minecraft/dimension_type/dimdoors/limbo.json b/src/main/resources/data/minecraft/dimension_type/dimdoors/limbo.json index 1f558ea3..69d144de 100644 --- a/src/main/resources/data/minecraft/dimension_type/dimdoors/limbo.json +++ b/src/main/resources/data/minecraft/dimension_type/dimdoors/limbo.json @@ -8,8 +8,8 @@ "infiniburn": "minecraft:infiniburn_overworld", "logical_height" : 256, "has_raids" : false, - "respawn_anchor_works": false, + "respawn_anchor_works": true, "bed_works" : false, "piglin_safe" : false, "fixed_time" : 6000 -} \ No newline at end of file +}