-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
level 3, level 2 fixed, void block balanced and fixed. new advancements, recipies for when you get afvancements.
- Loading branch information
Showing
90 changed files
with
2,792 additions
and
507 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ repositories { | |
maven { | ||
url = "https://jitpack.io" | ||
} | ||
|
||
jcenter() | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package net.ludocrypt.backrooms.biome; | ||
|
||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import net.ludocrypt.backrooms.Backrooms; | ||
import net.ludocrypt.backrooms.features.LevelsFeatureInit; | ||
import net.ludocrypt.backrooms.features.decorators.Level2RoomDecorator; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.world.biome.Biome; | ||
import net.minecraft.world.gen.GenerationStep; | ||
import net.minecraft.world.gen.decorator.Decorator; | ||
import net.minecraft.world.gen.decorator.DecoratorConfig; | ||
import net.minecraft.world.gen.decorator.NopeDecoratorConfig; | ||
import net.minecraft.world.gen.feature.FeatureConfig; | ||
import net.minecraft.world.gen.surfacebuilder.SurfaceBuilder; | ||
|
||
public class Level3 extends Biome { | ||
protected static final BlockState WALL = Backrooms.WALL.getDefaultState(); | ||
public static final Decorator<NopeDecoratorConfig> LEVEL3PLACER = new Level2RoomDecorator(NopeDecoratorConfig::deserialize); | ||
|
||
public Level3() { | ||
|
||
super(new Biome.Settings().configureSurfaceBuilder(SurfaceBuilder.NOPE, SurfaceBuilder.AIR_CONFIG) | ||
.precipitation(Biome.Precipitation.NONE).category(Biome.Category.NONE).depth(0F).scale(0F) | ||
.temperature(5.0F).downfall(0F).waterColor(69).waterFogColor(69).parent((String) null)); | ||
|
||
this.addFeature(GenerationStep.Feature.LOCAL_MODIFICATIONS, | ||
LevelsFeatureInit.LEVEL3ROOM.configure(FeatureConfig.DEFAULT) | ||
.createDecoratedFeature(LEVEL3PLACER.configure(DecoratorConfig.DEFAULT))); | ||
} | ||
|
||
@Environment(EnvType.CLIENT) | ||
public int getGrassColorAt(double p_225528_1_, double p_225528_3_) { | ||
return 226217111; | ||
} | ||
|
||
@Environment(EnvType.CLIENT) | ||
public int getFoliageColor() { | ||
return 226217111; | ||
} | ||
} |
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
59 changes: 59 additions & 0 deletions
59
src/main/java/net/ludocrypt/backrooms/blocks/LinedPipe.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,59 @@ | ||
package net.ludocrypt.backrooms.blocks; | ||
|
||
import java.util.Random; | ||
|
||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; | ||
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.Material; | ||
import net.minecraft.entity.EntityContext; | ||
import net.minecraft.particle.ParticleTypes; | ||
import net.minecraft.sound.BlockSoundGroup; | ||
import net.minecraft.state.StateManager; | ||
import net.minecraft.state.property.IntProperty; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.shape.VoxelShape; | ||
import net.minecraft.world.BlockView; | ||
import net.minecraft.world.World; | ||
|
||
public class LinedPipe extends Block { | ||
|
||
public static final IntProperty TYPE = IntProperty.of("type", 1, 2); | ||
|
||
public static final VoxelShape SHAPE = Block.createCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 14.0D, 16.0D); | ||
|
||
public LinedPipe() { | ||
super(FabricBlockSettings.of(Material.STONE).breakByTool(FabricToolTags.PICKAXES).sounds(BlockSoundGroup.STONE) | ||
.hardness(6).resistance(6).lightLevel(5)); | ||
setDefaultState(getStateManager().getDefaultState().with(TYPE, 1)); | ||
} | ||
|
||
@Override | ||
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, EntityContext context) { | ||
return SHAPE; | ||
} | ||
|
||
@Override | ||
protected void appendProperties(StateManager.Builder<Block, BlockState> stateManager) { | ||
stateManager.add(TYPE); | ||
} | ||
|
||
@Override | ||
@Environment(EnvType.CLIENT) | ||
public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random) { | ||
super.randomDisplayTick(state, world, pos, random); | ||
if (random.nextInt(2) == 0) { | ||
world.addParticle(ParticleTypes.MYCELIUM, (double) pos.getX() + (double) random.nextFloat(), | ||
(double) pos.getY() + (double) random.nextFloat(), | ||
(double) pos.getZ() + (double) random.nextFloat(), 1.0D, -1.0D, 1.0D); | ||
} | ||
if (random.nextInt(10) == 0) { | ||
world.addParticle(ParticleTypes.DRIPPING_WATER, (double) pos.getX() + (random.nextDouble() / 4) + 0.5, | ||
(double) pos.getY(), (double) pos.getZ() + (random.nextDouble() / 4) + 0.5, 0.0D, 0.0D, | ||
0.0D); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.