Skip to content

Commit

Permalink
1.3.0 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Sep 15, 2020
1 parent 3271192 commit a2d01c6
Show file tree
Hide file tree
Showing 81 changed files with 2,375 additions and 2,850 deletions.
13 changes: 10 additions & 3 deletions bin/main/assets/backrooms/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,16 @@
"block.backrooms.dotted_red_torn_wallpaper": "Torn Dotted Red Wallpaper",
"block.backrooms.vent": "Vent",
"biome.backrooms.level0": "Level 0",
"biome.backrooms.level0decrepit": "Level 0 Decrepit",
"biome.backrooms.level0dotted": "Level 0 Dotted",
"biome.backrooms.level0red": "Level 0 Red",
"biome.backrooms.level0dottedred": "Level 0 Dotted Red",
"biome.backrooms.level1": "Level 1",
"biome.backrooms.level1off": "Level 1 Off",
"biome.backrooms.level2": "Level 2",
"biome.backrooms.level2long": "Level 2 Long",
"biome.backrooms.level2messy": "Level 2 Messy",
"biome.backrooms.level3": "Level 3",
"biome.backrooms.level0red": "The Redrooms",
"biome.backrooms.level0dotted": "Level 0 Dotted",
"block.buzz": "Buzz",
"music.general.menu": "Backrooms Menu",
"menu.switch": "§cSwitch",
Expand Down Expand Up @@ -131,17 +136,19 @@
"text.autoconfig.backrooms.title": "Backrooms Configurations",
"text.autoconfig.backrooms.option.Level0DoorChance": "Chance for door to appear in level 0",
"text.autoconfig.backrooms.option.Level1DoorChance": "Chance for door to appear in level 1",
"text.autoconfig.backrooms.option.Level3DoorChance": "Chance for door to appear in level 3",
"text.autoconfig.backrooms.option.Level0LayerCount": "How many Layers in level 0",
"text.autoconfig.backrooms.option.Level1LayerCount": "How many Layers in level 1",
"text.autoconfig.backrooms.option.VBDoor": "Chance for the void block to appear in a door",
"text.autoconfig.backrooms.option.EnderPearlChance": "Chance for an enderpearl",
"text.autoconfig.backrooms.option.SuffocationChance": "Chance for suffocation",
"text.autoconfig.backrooms.option.ChestSpawnChance": "Chance for a chest to spawn",
"text.autoconfig.backrooms.option.SearchRange": "Search Range For Noise Making Blocks",
"text.autoconfig.backrooms.option.ForceLevel0": "Forces title screen to stay as Level 0",
"text.autoconfig.backrooms.option.ForceLevel1": "Forces title screen to stay as Level 1",
"text.autoconfig.backrooms.option.ForceLevel2": "Forces title screen to stay as Level 2",
"text.autoconfig.backrooms.option.ForceLevel3": "Forces title screen to stay as Level 3",
"text.autoconfig.backrooms.option.ForceNormal": "Forces title screen to stay as it should be",
"text.autoconfig.backrooms.option.SanityEffects": "Sanity Effects",
"text.autoconfig.backrooms.option.SanityEffects": "(Currently not in use) Sanity Effects",
"text.autoconfig.backrooms.option.TallDoors": "Have doors be ever so slightly taller"
}
75 changes: 37 additions & 38 deletions bin/main/assets/backrooms/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,81 +248,80 @@
}
]
},
"buzz": {
"humm_buzz": {
"sounds": [
{
"name": "backrooms:buzz"
}
]
},
"gulp": {
"sounds": [
"name": "backrooms:level_noise/buzz1"
},
{
"name": "backrooms:gulp/gulp1"
"name": "backrooms:level_noise/buzz2"
},
{
"name": "backrooms:gulp/gulp2"
"name": "backrooms:level_noise/buzz3"
},
{
"name": "backrooms:gulp/gulp3"
"name": "backrooms:level_noise/buzz4"
}
]
},
"level.0.ambience": {
"humm_buzz_around": {
"sounds": [
{
"name": "backrooms:ambient/breath1"
"name": "backrooms:level_noise/buzz_around1"
},
{
"name": "backrooms:ambient/breath2"
"name": "backrooms:level_noise/buzz_around2"
},
{
"name": "backrooms:ambient/breath3"
"name": "backrooms:level_noise/buzz_around3"
},
{
"name": "backrooms:ambient/breath4"
},
{
"name": "backrooms:ambient/harp1"
},
{
"name": "backrooms:ambient/harp2"
},
{
"name": "backrooms:ambient/harp3"
},
"name": "backrooms:level_noise/buzz_around4"
}
]
},
"vent": {
"sounds": [
{
"name": "backrooms:ambient/knock1"
"name": "backrooms:level_noise/vent1"
},
{
"name": "backrooms:ambient/knock2"
"name": "backrooms:level_noise/vent2"
},
{
"name": "backrooms:ambient/knock3"
"name": "backrooms:level_noise/vent3"
},
{
"name": "backrooms:ambient/synth1"
},
"name": "backrooms:level_noise/vent4"
}
]
},
"sizzle": {
"sounds": [
{
"name": "backrooms:ambient/synth2"
"name": "backrooms:level_noise/sizzle1"
},
{
"name": "backrooms:ambient/synth3"
"name": "backrooms:level_noise/sizzle2"
},
{
"name": "backrooms:ambient/tone1"
"name": "backrooms:level_noise/sizzle3"
},
{
"name": "backrooms:ambient/tone2"
},
"name": "backrooms:level_noise/sizzle4"
}
]
},
"gulp": {
"sounds": [
{
"name": "backrooms:ambient/tone3"
"name": "backrooms:gulp/gulp1"
},
{
"name": "backrooms:ambient/tone4"
"name": "backrooms:gulp/gulp2"
},
{
"name": "backrooms:ambient/whistle1"
"name": "backrooms:gulp/gulp3"
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion bin/main/backrooms.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"client": [
"BuiltinModelItemRendererMixin",
"MusicMixin",
"TitleScreenMixin"
"TitleScreenMixin",
"WorldAccessor"
],
"injectors": {
"defaultRequire": 1
Expand Down
2 changes: 1 addition & 1 deletion bin/main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "backrooms",
"version": "1.2.2",
"version": "$version",
"name": "The Backrooms",
"description": "The backrooms, endless mono yellow rooms to traverse.",
"authors": [
Expand Down
Binary file modified bin/main/net/ludocrypt/backrooms/BackroomsClient.class
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/config/BackroomsConfig.class
Binary file not shown.
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/features/Level0RedRoom.class
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/features/Level0Room.class
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/features/Level1Room.class
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/features/Level3Room.class
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/features/LevelsFeatureInit.class
Binary file not shown.
Binary file modified bin/main/net/ludocrypt/backrooms/misc/BackroomsSoundEvents.class
Binary file not shown.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ repositories {


dependencies {
minecraft "com.mojang:minecraft:1.16.2"
mappings "net.fabricmc:yarn:1.16.2+build.9:v2"
modImplementation "net.fabricmc:fabric-loader:0.9.1+build.205"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.17.2+build.396-1.16"
modApi("me.shedaniel.cloth:config-2:4.7.0-unstable") {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modApi("me.shedaniel.cloth:config-2:4.8.1") {
exclude(group: "net.fabricmc.fabric-api")
}
include "me.shedaniel.cloth:config-2:4.7.0-unstable"
modApi "me.sargunvohra.mcmods:autoconfig1u:3.2.0-unstable"
include "me.sargunvohra.mcmods:autoconfig1u:3.2.0-unstable"
include "me.shedaniel.cloth:config-2:4.8.1"
modApi "me.sargunvohra.mcmods:autoconfig1u:3.2.2"
include "me.sargunvohra.mcmods:autoconfig1u:3.2.2"
modImplementation "io.github.prospector:modmenu:1.14.6+build.31"
include(modImplementation('com.github.Chocohead:Fabric-ASM:v2.1'))
include(modImplementation('com.github.rdvdev2:DisableCustomWorldsAdvice:v1.0'))
modImplementation 'com.github.grondag:darkness:1.16-SNAPSHOT'
}

processResources {
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
org.gradle.jvmargs=-Xmx2G
mod_version = 1.2.3
mod_version = 1.3.0
maven_group = net.ludocrypt
archives_base_name = the-backrooms

minecraft_version=1.16.2
yarn_mappings=1.16.2+build.9
loader_version=0.9.1+build.205
fabric_version=0.17.2+build.396-1.16
minecraft_version=1.16.3
yarn_mappings=1.16.3+build.7
loader_version=0.9.3+build.207
fabric_version=0.20.2+build.402-1.16


18 changes: 14 additions & 4 deletions src/main/java/net/ludocrypt/backrooms/BackroomsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.rendereregistry.v1.BlockEntityRendererRegistry;
import net.ludocrypt.backrooms.client.render.block.entity.VoidBlockEntityRenderer;
import net.ludocrypt.backrooms.misc.BuzzHandler;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher;
import net.minecraft.client.render.block.entity.BlockEntityRenderer;
Expand All @@ -24,7 +27,8 @@ public class BackroomsClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
registerBlockEntityRenderer("void_block", VoidBlockEntityRenderer::new);

ClientTickEvents.START_CLIENT_TICK.register(BackroomsClient::clientTickEvent);

}

public static void putItemRenderLayer(Item item, RenderLayer layer) {
Expand All @@ -38,9 +42,15 @@ public static RenderLayer getItemRenderLayer(Item item) {
@SuppressWarnings("unchecked")
private <E extends BlockEntity> void registerBlockEntityRenderer(String identifier,
Function<BlockEntityRenderDispatcher, BlockEntityRenderer<E>> blockEntityRenderer) {
BlockEntityRendererRegistry.INSTANCE.register((BlockEntityType<E>) Registry.BLOCK_ENTITY_TYPE.get(Backrooms.getId(identifier)), blockEntityRenderer);
BlockEntityRendererRegistry.INSTANCE.register(
(BlockEntityType<E>) Registry.BLOCK_ENTITY_TYPE.get(Backrooms.getId(identifier)), blockEntityRenderer);
}

public static void clientTickEvent(MinecraftClient minecraft) {
if (minecraft.world != null) {
BuzzHandler.buzzCheckingAndRunning(minecraft.gameRenderer.getCamera(), minecraft, minecraft.worldRenderer,
minecraft.world);
}
}



}
47 changes: 22 additions & 25 deletions src/main/java/net/ludocrypt/backrooms/biome/BkBiomes.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ public static Biome Level0() {
.surfaceBuilder(ConfiguratedSurfaceBuilders.LEVELBUILDER)
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL0ROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL0DECORATOR.configure(DecoratorConfig.DEFAULT)))
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL01ROOF.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL01ROOFDECORATOR.configure(DecoratorConfig.DEFAULT)));
.decorate(LevelsFeatureInit.LEVEL0DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(14402413).waterFogColor(14402413).fogColor(14402413)
Expand All @@ -48,8 +45,8 @@ public static Biome Level0Decrepit() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL0DECREPITROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL0DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(14402413).waterFogColor(14402413).fogColor(14402413)
.skyColor(14402413).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL0WEIGHTEDMUSIC))
.build())
Expand All @@ -63,8 +60,8 @@ public static Biome Level0Dotted() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL0DOTTEDROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL0DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(14402413).waterFogColor(14402413).fogColor(14402413)
.skyColor(14402413).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL0MUSIC))
.build())
Expand All @@ -78,8 +75,8 @@ public static Biome Level0DottedRed() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL0DOTTEDREDROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL0DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(14402413).waterFogColor(14402413).fogColor(-5171911)
.skyColor(-5171911).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL0WEIGHTEDMUSIC))
.build())
Expand All @@ -95,8 +92,8 @@ public static Biome Level0Red() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL0REDROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL0DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level0"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(14402413).waterFogColor(14402413).fogColor(-5171911)
.skyColor(-5171911).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL0WEIGHTEDMUSIC))
.build())
Expand All @@ -113,8 +110,8 @@ public static Biome Level1() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL1ROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL1DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level1")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level1"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(-6710887).waterFogColor(-6710887).fogColor(-6710887)
.skyColor(-6710887).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL1ONMUSIC))
.build())
Expand All @@ -131,8 +128,8 @@ public static Biome Level1Off() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL1OFFROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL1DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level1")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level1"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(-6710887).waterFogColor(-6710887).fogColor(-6710887)
.skyColor(-6710887).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL1OFFMUSIC))
.build())
Expand All @@ -150,8 +147,8 @@ public static Biome Level2() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL2ROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL2DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level2")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level2"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(-6710887).waterFogColor(-6710887).fogColor(-6710887)
.skyColor(-6710887).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL2MUSIC))
.build())
Expand All @@ -169,8 +166,8 @@ public static Biome Level2Long() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL2LONGROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL2DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level2")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level2"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(-6710887).waterFogColor(-6710887).fogColor(-6710887)
.skyColor(-6710887).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL2LONGMUSIC))
.build())
Expand All @@ -188,14 +185,14 @@ public static Biome Level2Messy() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL2MESSYROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL2DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level2")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level2"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(-6710887).waterFogColor(-6710887).fogColor(-6710887)
.skyColor(-6710887).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL2MESSYMUSIC))
.build())
.spawnSettings(spawnSettings).generationSettings(builder.build()).build();
}

public static Biome Level3() {
SpawnSettings spawnSettings = (new SpawnSettings.Builder())
.spawn(SpawnGroup.AMBIENT, new SpawnSettings.SpawnEntry(EntityType.ENDERMAN, 2, 0, 2))
Expand All @@ -207,8 +204,8 @@ public static Biome Level3() {
.feature(GenerationStep.Feature.LOCAL_MODIFICATIONS,
LevelsFeatureInit.LEVEL3ROOM.configure(FeatureConfig.DEFAULT)
.decorate(LevelsFeatureInit.LEVEL3DECORATOR.configure(DecoratorConfig.DEFAULT)));
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level3")).depth(0F)
.scale(0F).temperature(1.0F).downfall(0.0F)
return (new Biome.Builder()).precipitation(Biome.Precipitation.NONE).category(Biome.Category.valueOf("level3"))
.depth(0F).scale(0F).temperature(1.0F).downfall(0.0F)
.effects((new BiomeEffects.Builder()).waterColor(-6710887).waterFogColor(-6710887).fogColor(-6710887)
.skyColor(-6710887).music(MusicType.createIngameMusic(BackroomsSoundEvents.LEVEL3MUSIC))
.build())
Expand Down
Loading

0 comments on commit a2d01c6

Please sign in to comment.