Merge remote-tracking branch 'origin/1.17' into 1.17

This commit is contained in:
CreepyCre 2021-10-28 00:02:42 +02:00
commit 5b75f9d4e5
5 changed files with 10 additions and 6 deletions

View file

@ -4,6 +4,7 @@ import static net.minecraft.block.Blocks.ACACIA_LOG;
import static net.minecraft.block.Blocks.ACACIA_PLANKS; import static net.minecraft.block.Blocks.ACACIA_PLANKS;
import static net.minecraft.block.Blocks.ACACIA_WOOD; import static net.minecraft.block.Blocks.ACACIA_WOOD;
import static net.minecraft.block.Blocks.ANDESITE; import static net.minecraft.block.Blocks.ANDESITE;
import static net.minecraft.block.Blocks.BEDROCK;
import static net.minecraft.block.Blocks.BIRCH_LOG; import static net.minecraft.block.Blocks.BIRCH_LOG;
import static net.minecraft.block.Blocks.BIRCH_PLANKS; import static net.minecraft.block.Blocks.BIRCH_PLANKS;
import static net.minecraft.block.Blocks.BIRCH_WOOD; import static net.minecraft.block.Blocks.BIRCH_WOOD;
@ -53,6 +54,7 @@ import static net.minecraft.block.Blocks.SPRUCE_PLANKS;
import static net.minecraft.block.Blocks.SPRUCE_WOOD; import static net.minecraft.block.Blocks.SPRUCE_WOOD;
import static net.minecraft.block.Blocks.STONE; import static net.minecraft.block.Blocks.STONE;
import static net.minecraft.block.Blocks.STONE_BRICKS; import static net.minecraft.block.Blocks.STONE_BRICKS;
import static org.dimdev.dimdoors.block.ModBlocks.SOLID_STATIC;
import static org.dimdev.dimdoors.block.ModBlocks.UNRAVELLED_BLOCK; import static org.dimdev.dimdoors.block.ModBlocks.UNRAVELLED_BLOCK;
import static org.dimdev.dimdoors.block.ModBlocks.UNRAVELLED_FABRIC; import static org.dimdev.dimdoors.block.ModBlocks.UNRAVELLED_FABRIC;
@ -109,7 +111,7 @@ public class LimboDecayProvider implements DataProvider {
}; };
createSimplePattern(new Identifier("dimdoors:stone"), STONE, COBBLESTONE).run(consumer); createSimplePattern(new Identifier("dimdoors:stone"), STONE, COBBLESTONE).run(consumer);
createSimplePattern(new Identifier("dimdoors:cobblestone"), COBBLESTONE, END_STONE).run(consumer); createSimplePattern(new Identifier("dimdoors:cobblestone"), COBBLESTONE, GRAVEL).run(consumer);
createSimplePattern(new Identifier("dimdoors:gravel"), GRAVEL, SAND).run(consumer); createSimplePattern(new Identifier("dimdoors:gravel"), GRAVEL, SAND).run(consumer);
turnIntoSelf(new Identifier("dimdoors:sand"), SAND).run(consumer); turnIntoSelf(new Identifier("dimdoors:sand"), SAND).run(consumer);
createSimplePattern(new Identifier("dimdoors:glass"), GLASS, SAND).run(consumer); createSimplePattern(new Identifier("dimdoors:glass"), GLASS, SAND).run(consumer);
@ -142,7 +144,7 @@ public class LimboDecayProvider implements DataProvider {
createSimplePattern(new Identifier("dimdoors:farmland"), FARMLAND, DIRT).run(consumer); createSimplePattern(new Identifier("dimdoors:farmland"), FARMLAND, DIRT).run(consumer);
createSimplePattern(new Identifier("dimdoors:stone_bricks"), STONE_BRICKS, CRACKED_STONE_BRICKS).run(consumer); createSimplePattern(new Identifier("dimdoors:stone_bricks"), STONE_BRICKS, CRACKED_STONE_BRICKS).run(consumer);
createSimplePattern(new Identifier("dimdoors:cracked_stone_bricks"), CRACKED_STONE_BRICKS, DIORITE).run(consumer); createSimplePattern(new Identifier("dimdoors:cracked_stone_bricks"), CRACKED_STONE_BRICKS, DIORITE).run(consumer);
createSimplePattern(new Identifier("dimdoors:end_stone"), END_STONE, SAND).run(consumer); createSimplePattern(new Identifier("dimdoors:end_stone"), END_STONE, SANDSTONE).run(consumer);
createSimplePattern(new Identifier("dimdoors:oak_log"), OAK_LOG, OAK_PLANKS).run(consumer); createSimplePattern(new Identifier("dimdoors:oak_log"), OAK_LOG, OAK_PLANKS).run(consumer);
createSimplePattern(new Identifier("dimdoors:birch_log"), BIRCH_LOG, BIRCH_PLANKS).run(consumer); createSimplePattern(new Identifier("dimdoors:birch_log"), BIRCH_LOG, BIRCH_PLANKS).run(consumer);
createSimplePattern(new Identifier("dimdoors:spruce_log"), SPRUCE_LOG, SPRUCE_PLANKS).run(consumer); createSimplePattern(new Identifier("dimdoors:spruce_log"), SPRUCE_LOG, SPRUCE_PLANKS).run(consumer);
@ -155,6 +157,7 @@ public class LimboDecayProvider implements DataProvider {
createSimplePattern(new Identifier("dimdoors:jungle_wood"), JUNGLE_WOOD, JUNGLE_LOG).run(consumer); createSimplePattern(new Identifier("dimdoors:jungle_wood"), JUNGLE_WOOD, JUNGLE_LOG).run(consumer);
createSimplePattern(new Identifier("dimdoors:acacia_wood"), ACACIA_WOOD, ACACIA_LOG).run(consumer); createSimplePattern(new Identifier("dimdoors:acacia_wood"), ACACIA_WOOD, ACACIA_LOG).run(consumer);
createSimplePattern(new Identifier("dimdoors:dark_oak_wood"), DARK_OAK_WOOD, DARK_OAK_LOG).run(consumer); createSimplePattern(new Identifier("dimdoors:dark_oak_wood"), DARK_OAK_WOOD, DARK_OAK_LOG).run(consumer);
createSimplePattern(new Identifier("dimdoors:bedrock"), BEDROCK, SOLID_STATIC).run(consumer);
} }
private DecayPatternData turnIntoSelf(Identifier identifier, Block before) { private DecayPatternData turnIntoSelf(Identifier identifier, Block before) {

View file

@ -172,7 +172,7 @@ public final class ModBlocks {
public static final Block MARKING_PLATE = register(new MarkingPlateBlock(FabricBlockSettings.of(Material.METAL, DyeColor.BLACK).nonOpaque())); public static final Block MARKING_PLATE = register(new MarkingPlateBlock(FabricBlockSettings.of(Material.METAL, DyeColor.BLACK).nonOpaque()));
@RegistryEntry("solid_static") @RegistryEntry("solid_static")
public static final Block SOLID_STATIC = register(new Block(FabricBlockSettings.of(Material.STONE).strength(7, 25).breakByTool(FabricToolTags.PICKAXES, 3).breakByHand(false).sounds(BlockSoundGroup.SAND))); public static final Block SOLID_STATIC = register(new UnravelledFabricBlock(FabricBlockSettings.of(Material.STONE).strength(7, 25).ticksRandomly().breakByTool(FabricToolTags.PICKAXES, 3).breakByHand(false).sounds(BlockSoundGroup.SAND)));
private static Block register(Block block) { private static Block register(Block block) {
return block; return block;

View file

@ -9,7 +9,7 @@ import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory; import net.fabricmc.fabric.api.event.EventFactory;
public class DecayPattern { public class DecayPattern {
public static final Event<EntropyEvent> ENTROPY_EVENT = EventFactory.createArrayBacked(EntropyEvent.class, (world, pos, entorpy) -> { System.out.println("Entorpy value of " + entorpy + " at " + pos + " in " + world.getRegistryKey().getValue()); }, entropyEvents -> (world, pos, entorpy) -> { public static final Event<EntropyEvent> ENTROPY_EVENT = EventFactory.createArrayBacked(EntropyEvent.class, (world, pos, entorpy) -> {}, entropyEvents -> (world, pos, entorpy) -> {
for (EntropyEvent event : entropyEvents) event.entropy(world, pos, entorpy); for (EntropyEvent event : entropyEvents) event.entropy(world, pos, entorpy);
}); });

View file

@ -2,7 +2,7 @@ package org.dimdev.dimdoors.world.pocket.type;
import org.dimdev.dimdoors.world.pocket.type.addon.DyeableAddon; import org.dimdev.dimdoors.world.pocket.type.addon.DyeableAddon;
public class PrivatePocket extends Pocket implements DyeableAddon.DyeablePocket { public class PrivatePocket extends LazyGenerationPocket implements DyeableAddon.DyeablePocket {
public static String KEY = "private_pocket"; public static String KEY = "private_pocket";
public static PrivatePocketBuilder<?, PrivatePocket> builderPrivatePocket() { public static PrivatePocketBuilder<?, PrivatePocket> builderPrivatePocket() {

View file

@ -13,5 +13,6 @@
"height": 256, "height": 256,
"logical_height": 256, "logical_height": 256,
"infiniburn": "minecraft:infiniburn_overworld", "infiniburn": "minecraft:infiniburn_overworld",
"ambient_light": 0.1 "ambient_light": 0.1,
"effects": "dimdoors:limbo"
} }