Added Decayed, Unfolded, Unwarped, and Unravelled block along with world gen
This commit is contained in:
parent
4c0b2c17b7
commit
59c64d8ee8
24 changed files with 98 additions and 9 deletions
|
@ -149,6 +149,18 @@ public final class ModBlocks {
|
|||
@RegistryEntry("eternal_fluid")
|
||||
public static final Block ETERNAL_FLUID = register(new EternalFluidBlock(FabricBlockSettings.of(Material.STONE, MapColor.RED).luminance(15)));
|
||||
|
||||
@RegistryEntry("decayed_block")
|
||||
public static final Block DECAYED_BLOCK = register(new UnravelledFabricBlock(FabricBlockSettings.of(Material.STONE, MapColor.BLACK).ticksRandomly().luminance(15)));
|
||||
|
||||
@RegistryEntry("unfolded_block")
|
||||
public static final Block UNFOLDED_BLOCK = register(new UnravelledFabricBlock(FabricBlockSettings.of(Material.STONE, MapColor.BLACK).ticksRandomly().luminance(15)));
|
||||
|
||||
@RegistryEntry("unwarped_block")
|
||||
public static final Block UNWARPED_BLOCK = register(new UnravelledFabricBlock(FabricBlockSettings.of(Material.STONE, MapColor.BLACK).ticksRandomly().luminance(15)));
|
||||
|
||||
@RegistryEntry("unravelled_block")
|
||||
public static final Block UNRAVELLED_BLOCK = register(new UnravelledFabricBlock(FabricBlockSettings.of(Material.STONE, MapColor.BLACK).ticksRandomly().luminance(15)));
|
||||
|
||||
@RegistryEntry("unravelled_fabric")
|
||||
public static final Block UNRAVELLED_FABRIC = register(new UnravelledFabricBlock(FabricBlockSettings.of(Material.STONE, MapColor.BLACK).ticksRandomly().luminance(15)));
|
||||
|
||||
|
|
|
@ -42,9 +42,4 @@ public class UnravelledFabricBlock extends Block {
|
|||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasRandomTicks(BlockState state) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ public class DetachedRiftBlockEntityRenderer implements BlockEntityRenderer<Deta
|
|||
}
|
||||
}
|
||||
|
||||
// this.renderCrack(vcs.getBuffer(MyRenderLayer.CRACK), matrices, rift); TODO
|
||||
this.renderCrack(vcs.getBuffer(MyRenderLayer.CRACK), matrices, rift);
|
||||
}
|
||||
|
||||
private void renderCrack(VertexConsumer vc, MatrixStack matrices, DetachedRiftBlockEntity rift) {
|
||||
|
|
|
@ -2,7 +2,9 @@ package org.dimdev.dimdoors.item;
|
|||
|
||||
import java.util.Collections;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import org.dimdev.dimdoors.block.ModBlocks;
|
||||
import org.dimdev.dimdoors.block.UnravelledFabricBlock;
|
||||
import org.dimdev.dimdoors.entity.ModEntityTypes;
|
||||
import org.dimdev.dimdoors.fluid.ModFluids;
|
||||
import org.dimdev.dimdoors.rift.targets.RandomTarget;
|
||||
|
@ -12,6 +14,8 @@ import org.dimdev.matrix.Registrar;
|
|||
import org.dimdev.matrix.RegistryEntry;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.MapColor;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
import net.minecraft.item.BlockItem;
|
||||
|
@ -202,6 +206,17 @@ public final class ModItems {
|
|||
@RegistryEntry("black_ancient_fabric")
|
||||
public static final Item BLACK_ANCIENT_FABRIC = create(ModBlocks.BLACK_ANCIENT_FABRIC);
|
||||
|
||||
@RegistryEntry("decayed_block")
|
||||
public static final Item DECAYED_BLOCK = create(ModBlocks.DECAYED_BLOCK);
|
||||
|
||||
@RegistryEntry("unfolded_block")
|
||||
public static final Item UNFOLDED_BLOCK = create(ModBlocks.UNFOLDED_BLOCK);
|
||||
|
||||
@RegistryEntry("unwarped_block")
|
||||
public static final Item UNWARPED_BLOCK = create(ModBlocks.UNWARPED_BLOCK);
|
||||
|
||||
@RegistryEntry("unravelled_block")
|
||||
public static final Item UNRAVELLED_BLOCK = create(ModBlocks.UNRAVELLED_BLOCK);
|
||||
|
||||
@RegistryEntry("unravelled_fabric")
|
||||
public static final Item UNRAVELLED_FABRIC = create(ModBlocks.UNRAVELLED_FABRIC);
|
||||
|
|
|
@ -89,7 +89,7 @@ public final class ModBiomes {
|
|||
.depth(0.1f)
|
||||
.downfall(0.0f)
|
||||
.effects(new BiomeEffects.Builder()
|
||||
.fogColor(0x000000)
|
||||
.fogColor(0x404040)
|
||||
.waterColor(0x101010)
|
||||
.foliageColor(0)
|
||||
.waterFogColor(0)
|
||||
|
@ -108,11 +108,13 @@ public final class ModBiomes {
|
|||
GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
ModFeatures.SOLID_STATIC_ORE
|
||||
)
|
||||
.feature(GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
ModFeatures.DECAYED_BLOCK_ORE)
|
||||
.surfaceBuilder(
|
||||
SurfaceBuilder.DEFAULT.withConfig(
|
||||
new TernarySurfaceConfig(
|
||||
ModBlocks.UNRAVELLED_FABRIC.getDefaultState(),
|
||||
ModBlocks.UNRAVELLED_FABRIC.getDefaultState(),
|
||||
ModBlocks.UNFOLDED_BLOCK.getDefaultState(),
|
||||
ModBlocks.UNWARPED_BLOCK.getDefaultState(),
|
||||
ModBlocks.ETERNAL_FLUID.getDefaultState()
|
||||
)
|
||||
))
|
||||
|
|
|
@ -18,6 +18,7 @@ import net.minecraft.world.biome.Biome;
|
|||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.decorator.ChanceDecoratorConfig;
|
||||
import net.minecraft.world.gen.decorator.Decoratable;
|
||||
import net.minecraft.world.gen.decorator.Decorator;
|
||||
import net.minecraft.world.gen.decorator.RangeDecoratorConfig;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
|
@ -42,6 +43,8 @@ public final class ModFeatures {
|
|||
public static final ConfiguredFeature<?, ?> TWO_PILLARS_FEATURE;
|
||||
public static final ConfiguredFeature<?, ?> LIMBO_GATEWAY_CONFIGURED_FEATURE;
|
||||
public static final ConfiguredFeature<?, ?> SOLID_STATIC_ORE;
|
||||
public static final ConfiguredFeature<?, ?> DECAYED_BLOCK_ORE;
|
||||
|
||||
@Deprecated public static final ConfiguredFeature<?, ?> ETERNAL_FLUID_LAKE = Feature.LAKE.configure(new SingleStateFeatureConfig(ModBlocks.ETERNAL_FLUID.getDefaultState())).decorate(ETERNAL_FLUID_LAKE_DECORATOR.configure(new ChanceDecoratorConfig(20)));
|
||||
|
||||
public static void init() {
|
||||
|
@ -78,5 +81,7 @@ public final class ModFeatures {
|
|||
TWO_PILLARS_FEATURE = SCHEMATIC_GATEWAY_FEATURE.configure(new SchematicGatewayFeatureConfig(SchematicGateway.ID_SCHEMATIC_MAP.inverse().get(TWO_PILLARS_GATEWAY))).decorate(ConfiguredFeatures.Decorators.SQUARE_TOP_SOLID_HEIGHTMAP.applyChance(gatewayChance));
|
||||
LIMBO_GATEWAY_CONFIGURED_FEATURE = LIMBO_GATEWAY_FEATURE.configure(DefaultFeatureConfig.INSTANCE).decorate(ConfiguredFeatures.Decorators.SQUARE_TOP_SOLID_HEIGHTMAP.applyChance(gatewayChance));
|
||||
SOLID_STATIC_ORE = Feature.ORE.configure(new OreFeatureConfig(new BlockMatchRuleTest(ModBlocks.UNRAVELLED_FABRIC), ModBlocks.SOLID_STATIC.getDefaultState(), 4)).range(new RangeDecoratorConfig(YOffset.getBottom(), YOffset.getTop())).repeat(3);
|
||||
DECAYED_BLOCK_ORE = Feature.ORE.configure(new OreFeatureConfig(new BlockMatchRuleTest(ModBlocks.UNRAVELLED_FABRIC), ModBlocks.DECAYED_BLOCK.getDefaultState(), 64)).rangeOf(YOffset.fixed(0), YOffset.fixed(79)).repeat(2);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "dimdoors:block/decayed_block"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "dimdoors:block/unfolded_block"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "dimdoors:block/unravelled_block"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "dimdoors:block/unwarped_block"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,6 +44,10 @@
|
|||
"block.dimdoors.green_ancient_fabric": "Green Altered Ancient Fabric",
|
||||
"block.dimdoors.red_ancient_fabric": "Red Altered Ancient Fabric",
|
||||
"block.dimdoors.eternal_fabric": "Eternal Fabric",
|
||||
"block.dimdoors.decayed_block": "Decayed Block",
|
||||
"block.dimdoors.unfolded_block": "Unfolded Block",
|
||||
"block.dimdoors.unwarped_block": "Unwarped Block",
|
||||
"block.dimdoors.unravelled_block": "Unraveled Block",
|
||||
"block.dimdoors.unravelled_fabric": "Unraveled Fabric",
|
||||
"block.dimdoors.rift": "Rift Scar",
|
||||
"block.dimdoors.eternal_fluid": "Eternal Fluid",
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "dimdoors:block/decayed_block" }
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "dimdoors:block/unfolded_block" }
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "dimdoors:block/unravelled_block" }
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "dimdoors:block/unwarped_block" }
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "dimdoors:block/decayed_block"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "dimdoors:block/unfolded_block"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "dimdoors:block/unravelled_block"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "dimdoors:block/unwarped_block"
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 528 B |
Binary file not shown.
After Width: | Height: | Size: 431 B |
Binary file not shown.
After Width: | Height: | Size: 417 B |
Binary file not shown.
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 370 B |
Binary file not shown.
After Width: | Height: | Size: 439 B |
Loading…
Reference in a new issue