Worldgen data (update 16 of 20)

This commit is contained in:
SD 2021-02-12 00:01:15 +05:30
parent 7c69995338
commit 2e181a6ae1
No known key found for this signature in database
GPG key ID: E36B57EE08544BC5
6 changed files with 97 additions and 53 deletions

View file

@ -17,6 +17,11 @@ repositories {
url = "https://maven.fabricmc.net/"
}
maven {
name = "Haven's Maven"
url = "https://hephaestus.dev/release"
}
maven {
url = "https://www.cursemaven.com"
content {
@ -86,8 +91,9 @@ dependencies {
includeCompile("io.github.BoogieMonster1O1", "OpenWorlds", "d487eaa")
includeCompile("io.github.cottonmc", "LibGui", "3.3.2+1.16.4")
includeCompile("me.shedaniel.cloth", "config-2", "5.0.0")
includeCompile("io.github.onyxstudios", "Cardinal-Components-API", "3.0.0-nightly.1.17-20w45a")
includeCompile("io.github.onyxstudios", "Cardinal-Components-API", "3.0.0-nightly.20w48a")
includeCompile("me.sargunvohra.mcmods", "autoconfig1u", "3.3.1")
includeCompile("dev.hephaestus", "seedy-behavior", "1.0.1")
modCompileOnly("io.github.prospector:modmenu:2.0.0-beta.1+build.2") {
exclude module: "fabric-api"

View file

@ -1,28 +1,21 @@
package org.dimdev.dimdoors.world.level;
import dev.onyxstudios.cca.api.v3.component.Component;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import dev.onyxstudios.cca.api.v3.item.ItemComponent;
public class Counter implements Component {
private final ItemStack stack;
private int counter;
public class Counter extends ItemComponent {
public Counter(ItemStack stack) {
super(stack, DimensionalDoorsComponents.COUNTER_COMPONENT_KEY);
if (!this.hasTag("counter"))
this.putInt("counter", 0);
}
public int count() {
return getInt("counter");
}
public void set(int value) {
this.putInt("counter", omitZero(value));
this.stack = stack;
}
public int increment() {
int count = count() + 1;
this.putInt("counter", count);
return count;
this.counter++;
return this.counter;
}
public static <T> Counter get(T provider) {
@ -30,21 +23,12 @@ public class Counter extends ItemComponent {
}
@Override
protected void putInt(String key, int value) {
super.putInt(key, omitZero(value));
public void readFromNbt(CompoundTag tag) {
this.counter = tag.getInt("counter");
}
@Override
protected int getInt(String key) {
return withZero(super.getInt(key));
}
private int omitZero(int value) {
return value >= 0 ? value + 1 : value;
}
private int withZero(int value) {
return value > 0 ? value - 1 : value;
public void writeToNbt(CompoundTag tag) {
tag.putInt("counter", this.counter);
}
}

View file

@ -7,4 +7,4 @@
}
},
"type": "dimdoors:pocket"
}
}

View file

@ -1,6 +1,55 @@
{
"type": "dimdoors:limbo",
"generator": {
"type": "dimdoors:limbo_chunk_generator"
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:fixed",
"biome": "dimdoors:limbo"
},
"settings": {
"bedrock_floor_position": 0,
"bedrock_roof_position": -1,
"disable_mob_generation": false,
"sea_level": 32,
"structures": {
"structures": {}
},
"noise": {
"density_factor": 1,
"density_offset": -0.26875,
"simplex_surface_noise": true,
"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"
}
}
}
}
}
}

View file

@ -1,15 +1,17 @@
{
"ultrawarm": false,
"natural": false,
"ambient_light": 0.1,
"fixed_time" : 6000,
"has_skylight": true,
"has_ceiling": false,
"infiniburn": "minecraft:infiniburn_overworld",
"logical_height" : 256,
"has_raids" : false,
"respawn_anchor_works": true,
"bed_works" : false,
"ultrawarm": false,
"natural": false,
"coordinate_scale": 4,
"piglin_safe" : false,
"fixed_time" : 6000,
"coordinate_scale": 4
"bed_works" : false,
"respawn_anchor_works": true,
"has_raids" : false,
"min_y": 0,
"height": 256,
"logical_height": 256,
"infiniburn": "minecraft:infiniburn_overworld",
"ambient_light": 0.1
}

View file

@ -1,14 +1,17 @@
{
"ultrawarm": false,
"natural": false,
"ambient_light": 0.1,
"fixed_time" : 6000,
"has_skylight": true,
"has_ceiling": false,
"infiniburn": "minecraft:infiniburn_overworld",
"logical_height" : 256,
"has_raids" : false,
"respawn_anchor_works": true,
"bed_works" : false,
"ultrawarm": false,
"natural": false,
"coordinate_scale": 4,
"piglin_safe" : false,
"coordinate_scale": 4
}
"bed_works" : false,
"respawn_anchor_works": true,
"has_raids" : false,
"min_y": 0,
"height": 256,
"logical_height" : 256,
"infiniburn": "minecraft:infiniburn_overworld",
"ambient_light": 0.1
}