Skip to content

Commit

Permalink
Partially update to 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kalucky0 committed Jan 11, 2025
1 parent 1231f30 commit 6741267
Show file tree
Hide file tree
Showing 42 changed files with 351 additions and 320 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'maven-publish'
}

Expand Down
37 changes: 18 additions & 19 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G
org.gradle.jvmargs=-Xmx4G

# Fabric Properties
# check these on https://fabricmc.net/develop/
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.3
loader_version=0.14.11
# check these on https://fabricmc.net/develop/
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.16.10

#Fabric api
fabric_version=0.59.0+1.19.2
#Fabric api
fabric_version=0.76.1+1.19.3

# Dependency Properties
architectury_version=6.2.43
rei_version=9.1.526
incubus_version=1.9.4
trinkets_version=3.4.0
cc_version=5.0.1
satin_version=1.9.0
reach_version=2.3.0
modmenu_version=4.0.6

architectury_version=6.6.92
rei_version=9.2.784
incubus_version=1.9.4
trinkets_version=3.4.1
cc_version=5.0.2
satin_version=1.9.1
reach_version=2.3.0
modmenu_version=4.1.2

# Mod Properties
mod_version = 0.0.3-dev
maven_group = net.cr24
archives_base_name = primeval
mod_version=0.0.3-dev
maven_group=net.cr24
archives_base_name=primeval
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public CollapsibleBlock(Settings settings) {
@Override
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) {
if (!(neighborState.getBlock() instanceof FluidBlock)) {
world.createAndScheduleBlockTick(pos, this, this.getFallDelay());
world.scheduleBlockTick(pos, this, this.getFallDelay());
}
return state;
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/cr24/primeval/block/GrassySoilBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import net.minecraft.block.*;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.registry.tag.BlockTags;
import net.minecraft.registry.tag.FluidTags;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.Properties;
import net.minecraft.tag.BlockTags;
import net.minecraft.tag.FluidTags;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.random.Random;
Expand Down Expand Up @@ -55,7 +55,7 @@ public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random
if (world.getLightLevel(pos.up()) >= 9) {
BlockState blockState = this.getDefaultState();

for(int i = 0; i < 4; ++i) {
for (int i = 0; i < 4; ++i) {
BlockPos blockPos = pos.add(random.nextInt(3) - 1, random.nextInt(5) - 3, random.nextInt(3) - 1);
Block block = world.getBlockState(blockPos).getBlock();
if (grass_spreadable.containsKey(block) && canSpread(blockState, world, blockPos)) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/cr24/primeval/block/PrimevalBlockTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import net.cr24.primeval.PrimevalMain;
import net.minecraft.block.Block;
import net.minecraft.tag.TagKey;
import net.minecraft.util.registry.Registry;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.registry.tag.TagKey;

public class PrimevalBlockTags {

Expand Down Expand Up @@ -33,6 +33,6 @@ public class PrimevalBlockTags {
public static final TagKey<Block> MINEABLE_CHISEL = register("mineable/chisel");

private static TagKey<Block> register(String id) {
return TagKey.of(Registry.BLOCK_KEY, PrimevalMain.getId(id));
return TagKey.of(RegistryKeys.BLOCK, PrimevalMain.getId(id));
}
}
34 changes: 18 additions & 16 deletions src/main/java/net/cr24/primeval/block/PrimevalBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
import net.minecraft.fluid.FlowableFluid;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.registry.Registries;
import net.minecraft.screen.ScreenHandlerType;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.registry.Registry;
import net.minecraft.registry.Registry;
import net.minecraft.sound.SoundEvents;
import org.jetbrains.annotations.NotNull;

import java.util.Arrays;
Expand Down Expand Up @@ -192,7 +194,7 @@ public class PrimevalBlocks {
public static final Block PIT_KILN = registerBlockWithoutItem("pit_kiln", new PitKilnBlock(FabricBlockSettings.of(Material.PLANT).strength(1.0F).sounds(BlockSoundGroup.GRASS).nonOpaque()));
public static final Block CRUDE_CRAFTING_BENCH = registerBlock("crude_crafting_bench", new PrimevalCraftingTableBlock(SETTINGS_REFINED_WOOD()), Weight.HEAVY, Size.LARGE, PRIMEVAL_BLOCKS);
public static final Block CRUDE_TORCH = registerBlock("crude_torch", new TimedTorchBlock(FabricBlockSettings.of((new Material.Builder(MapColor.OAK_TAN)).allowsMovement().notSolid().build()).sounds(BlockSoundGroup.WOOD).breakInstantly().noCollision().luminance(TimedTorchBlock::getLuminanceFromState).ticksRandomly()), Weight.LIGHT, Size.SMALL, PRIMEVAL_BLOCKS); //todo
public static final Item LIT_CRUDE_TORCH = Registry.register(Registry.ITEM, PrimevalMain.getId("crude_torch_lit"), new WeightedBlockItem(CRUDE_TORCH, new FabricItemSettings().maxCount(Size.SMALL.getStackSize()), Weight.LIGHT, Size.SMALL));
public static final Item LIT_CRUDE_TORCH = Registry.register(Registries.ITEM, PrimevalMain.getId("crude_torch_lit"), new WeightedBlockItem(CRUDE_TORCH, new FabricItemSettings().maxCount(Size.SMALL.getStackSize()), Weight.LIGHT, Size.SMALL));
public static final Block CAMPFIRE = registerBlock("campfire", new PrimevalCampfireBlock(SETTINGS_STONE().luminance(PrimevalCampfireBlock::getLuminanceFromState).nonOpaque()), Weight.HEAVY, Size.LARGE, null);
public static final Block QUERN = registerBlock("quern", new QuernBlock(SETTINGS_STONE().nonOpaque()), Weight.HEAVY, Size.LARGE, PRIMEVAL_BLOCKS);

Expand All @@ -209,15 +211,15 @@ public class PrimevalBlocks {


// Block entities
public static final BlockEntityType<PitKilnBlockEntity> PIT_KILN_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("pit_kiln_block_entity"), FabricBlockEntityTypeBuilder.create(PitKilnBlockEntity::new, PIT_KILN).build());
public static final BlockEntityType<AshPileBlockEntity> ASH_PILE_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("ash_pile_block_entity"), FabricBlockEntityTypeBuilder.create(AshPileBlockEntity::new, ASH_PILE).build());
public static final BlockEntityType<LayingItemBlockEntity> LAYING_ITEM_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("laying_item_block_entity"), FabricBlockEntityTypeBuilder.create(LayingItemBlockEntity::new, LAYING_ITEM).build());
public static final BlockEntityType<LogPileBlockEntity> LOG_PILE_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("log_pile_block_entity"), FabricBlockEntityTypeBuilder.create(LogPileBlockEntity::new, OAK_LOG_PILE, BIRCH_LOG_PILE, SPRUCE_LOG_PILE).build());
public static final BlockEntityType<CrateBlockEntity> CRATE_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("crate_block_entity"), FabricBlockEntityTypeBuilder.create(CrateBlockEntity::new, OAK_CRATE, BIRCH_CRATE, SPRUCE_CRATE).build());
public static final BlockEntityType<StoragePotBlockEntity> LARGE_POT_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("large_pot_block_entity"), FabricBlockEntityTypeBuilder.create(StoragePotBlockEntity::new, LARGE_FIRED_CLAY_POT).build());
public static final BlockEntityType<WickerBasketBlockEntity> WICKER_BASKET_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("wicker_basket_block_entity"), FabricBlockEntityTypeBuilder.create(WickerBasketBlockEntity::new, WICKER_BASKET).build());
public static final BlockEntityType<PrimevalCampfireBlockEntity> CAMPFIRE_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("campfire_block_entity"), FabricBlockEntityTypeBuilder.create(PrimevalCampfireBlockEntity::new, CAMPFIRE).build());
public static final BlockEntityType<QuernBlockEntity> QUERN_BLOCK_ENTITY = Registry.register(Registry.BLOCK_ENTITY_TYPE, PrimevalMain.getId("quern_block_entity"), FabricBlockEntityTypeBuilder.create(QuernBlockEntity::new, QUERN).build());
public static final BlockEntityType<PitKilnBlockEntity> PIT_KILN_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("pit_kiln_block_entity"), FabricBlockEntityTypeBuilder.create(PitKilnBlockEntity::new, PIT_KILN).build());
public static final BlockEntityType<AshPileBlockEntity> ASH_PILE_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("ash_pile_block_entity"), FabricBlockEntityTypeBuilder.create(AshPileBlockEntity::new, ASH_PILE).build());
public static final BlockEntityType<LayingItemBlockEntity> LAYING_ITEM_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("laying_item_block_entity"), FabricBlockEntityTypeBuilder.create(LayingItemBlockEntity::new, LAYING_ITEM).build());
public static final BlockEntityType<LogPileBlockEntity> LOG_PILE_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("log_pile_block_entity"), FabricBlockEntityTypeBuilder.create(LogPileBlockEntity::new, OAK_LOG_PILE, BIRCH_LOG_PILE, SPRUCE_LOG_PILE).build());
public static final BlockEntityType<CrateBlockEntity> CRATE_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("crate_block_entity"), FabricBlockEntityTypeBuilder.create(CrateBlockEntity::new, OAK_CRATE, BIRCH_CRATE, SPRUCE_CRATE).build());
public static final BlockEntityType<StoragePotBlockEntity> LARGE_POT_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("large_pot_block_entity"), FabricBlockEntityTypeBuilder.create(StoragePotBlockEntity::new, LARGE_FIRED_CLAY_POT).build());
public static final BlockEntityType<WickerBasketBlockEntity> WICKER_BASKET_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("wicker_basket_block_entity"), FabricBlockEntityTypeBuilder.create(WickerBasketBlockEntity::new, WICKER_BASKET).build());
public static final BlockEntityType<PrimevalCampfireBlockEntity> CAMPFIRE_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("campfire_block_entity"), FabricBlockEntityTypeBuilder.create(PrimevalCampfireBlockEntity::new, CAMPFIRE).build());
public static final BlockEntityType<QuernBlockEntity> QUERN_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, PrimevalMain.getId("quern_block_entity"), FabricBlockEntityTypeBuilder.create(QuernBlockEntity::new, QUERN).build());

// Screen Handlers
public static final ScreenHandlerType<PrimevalContainerScreenHandler> CRATE_SCREEN_HANDLER = ScreenHandlerRegistry.registerSimple(PrimevalMain.getId("crate_screen_handler"), PrimevalContainerScreenHandler::new);
Expand Down Expand Up @@ -355,17 +357,17 @@ private static void registerHoeables() {
}

private static Block registerBlockWithoutItem(String id, Block block) {
return Registry.register(Registry.BLOCK, PrimevalMain.getId(id), block);
return Registry.register(Registries.BLOCK, PrimevalMain.getId(id), block);
}


private static <V extends Block> V registerBlock(String id, V block, Weight weight, Size size, ItemGroup itemgroup) {
if (itemgroup == null) {
Registry.register(Registry.ITEM, PrimevalMain.getId(id), new WeightedBlockItem(block, new FabricItemSettings().maxCount(size.getStackSize()), weight, size));
Registry.register(Registries.ITEM, PrimevalMain.getId(id), new WeightedBlockItem(block, new FabricItemSettings().maxCount(size.getStackSize()), weight, size));
} else {
Registry.register(Registry.ITEM, PrimevalMain.getId(id), new WeightedBlockItem(block, new FabricItemSettings().group(itemgroup).maxCount(size.getStackSize()), weight, size));
Registry.register(Registries.ITEM, PrimevalMain.getId(id), new WeightedBlockItem(block, new FabricItemSettings().group(itemgroup).maxCount(size.getStackSize()), weight, size));
}
return Registry.register(Registry.BLOCK, PrimevalMain.getId(id), block);
return Registry.register(Registries.BLOCK, PrimevalMain.getId(id), block);
}

private static Block registerMoltenFluid(String id, FlowableFluid fluid) {
Expand Down Expand Up @@ -438,7 +440,7 @@ private static WoodBlockSet registerWoodBlockSet(String block_id, String stairs_
registerBlock(panel_id, new Block(settings), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS),
registerBlock(fence_id, new FenceBlock(settings), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS),
registerBlock(log_fence_id, new FenceBlock(settings), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS),
registerBlock(fence_gate_id, new FenceGateBlock(settings), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS),
registerBlock(fence_gate_id, new FenceGateBlock(settings, SoundEvents.BLOCK_FENCE_GATE_CLOSE, SoundEvents.BLOCK_FENCE_GATE_OPEN), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS),
registerBlock(door_id, new PrimevalDoorBlock(settings.nonOpaque()), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS),
registerBlock(trapdoor_id, new PrimevalTrapdoorBlock(settings.nonOpaque()), Weight.LIGHT, Size.MEDIUM, PRIMEVAL_BLOCKS)
);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/cr24/primeval/block/PrimevalDoorBlock.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package net.cr24.primeval.block;

import net.minecraft.block.DoorBlock;
import net.minecraft.sound.SoundEvents;

public class PrimevalDoorBlock extends DoorBlock {
protected PrimevalDoorBlock(Settings settings) {
super(settings);
super(settings, SoundEvents.BLOCK_WOODEN_DOOR_CLOSE, SoundEvents.BLOCK_WOODEN_DOOR_CLOSE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import net.cr24.primeval.item.tool.PrimevalHoeItem;
import net.minecraft.block.*;
import net.minecraft.registry.tag.FluidTags;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.EnumProperty;
import net.minecraft.state.property.IntProperty;
import net.minecraft.tag.FluidTags;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.random.Random;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package net.cr24.primeval.block;

import net.minecraft.block.TrapdoorBlock;
import net.minecraft.sound.SoundEvents;

public class PrimevalTrapdoorBlock extends TrapdoorBlock {
public PrimevalTrapdoorBlock(Settings settings) {
super(settings);
super(settings, SoundEvents.BLOCK_WOODEN_TRAPDOOR_OPEN, SoundEvents.BLOCK_WOODEN_TRAPDOOR_CLOSE);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@
import net.minecraft.client.render.model.json.ModelTransformation;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.Vec3f;
import org.joml.Quaternionf;

public class LayingItemBlockEntityRenderer implements BlockEntityRenderer<LayingItemBlockEntity> {
public final static Quaternionf NEGATIVE_X = new Quaternionf(-1.0f, 0.0f, 0.0f, 0.0f);
public final static Quaternionf POSITIVE_Z = new Quaternionf(0.0f, 0.0f, 0.0f, 1.0f);

public LayingItemBlockEntityRenderer(BlockEntityRendererFactory.Context ctx) {}
public LayingItemBlockEntityRenderer(BlockEntityRendererFactory.Context ctx) {
}

@Override
public void render(LayingItemBlockEntity entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) {
ItemStack item = entity.getItem();
int randomInt = entity.getRandomInt();
matrices.translate(0.5, 0.0, 0.5);
matrices.scale(1.2f, 1.2f, 1.2f);
matrices.multiply(Vec3f.NEGATIVE_X.getDegreesQuaternion(90));
matrices.multiply(Vec3f.POSITIVE_Z.getDegreesQuaternion(90*randomInt));
matrices.multiply(NEGATIVE_X.rotateX(90));
matrices.multiply(POSITIVE_Z.rotateZ(90 * randomInt));
matrices.translate(0.0, -0.1, -0.0);
MinecraftClient.getInstance().getItemRenderer().renderItem(item, ModelTransformation.Mode.GROUND, light, overlay, matrices, vertexConsumers, 0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.ItemStack;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.Vec3f;
import org.joml.Quaternionf;
import org.joml.Vector3f;

public class PrimevalCampfireBlockEntityRenderer implements BlockEntityRenderer<PrimevalCampfireBlockEntity> {
public final static Quaternionf NEGATIVE_X = new Quaternionf(-1.0f, 0.0f, 0.0f, 0.0f);

public PrimevalCampfireBlockEntityRenderer(BlockEntityRendererFactory.Context ctx) {}

@Override
public void render(PrimevalCampfireBlockEntity entity, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) {
DefaultedList<ItemStack> items = entity.getItemsBeingCooked();
matrices.scale(0.6f, 0.5f, 0.6f);
matrices.multiply(Vec3f.NEGATIVE_X.getDegreesQuaternion(90));
matrices.multiply(NEGATIVE_X.rotateX(90));
matrices.translate(0.25, -0.37, 0.4);
MinecraftClient.getInstance().getItemRenderer().renderItem(items.get(0), ModelTransformation.Mode.GROUND, light, overlay, matrices, vertexConsumers, 0);
matrices.translate(1.15, 0, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import net.minecraft.client.render.block.entity.BlockEntityRendererFactory;
import net.minecraft.client.render.model.json.ModelTransformation;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.Quaternion;
import net.minecraft.util.math.Vec3f;
import org.joml.Quaternionf;
import org.joml.Vector3f;
import net.minecraft.util.math.random.Random;

public class QuernBlockEntityRenderer implements BlockEntityRenderer<QuernBlockEntity> {
Expand All @@ -25,7 +25,9 @@ public void render(QuernBlockEntity entity, float tickDelta, MatrixStack matrice
matrices.translate(0, -sinkProgress, 0);

if (entity.wheelDamage == -1) return;
matrices.multiply(new Quaternion(Vec3f.POSITIVE_Y, entity.currentAngle, true));
// TODO: Test if this is correct
Quaternionf rotation = new Quaternionf(0.0f, 1.0f, 0.0f, 0.0f).rotateY(entity.currentAngle);
matrices.multiply(rotation);
MinecraftClient.getInstance().getBlockRenderManager().renderBlock(PrimevalBlocks.QUERN.getDefaultState().with(QuernBlock.WHEELED, true), entity.getPos(), entity.getWorld(), matrices, vertexConsumers.getBuffer(RenderLayer.getCutout()), false, Random.create());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public FluidState getFluidState(BlockState state) {

public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) {
if (state.get(WATERLOGGED)) {
world.createAndScheduleFluidTick(pos, Fluids.WATER, Fluids.WATER.getTickRate(world));
world.scheduleFluidTick(pos, Fluids.WATER, Fluids.WATER.getTickRate(world));
}
return state;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public BlockState getStateForNeighborUpdate(BlockState state, Direction directio
return Blocks.AIR.getDefaultState();
}
if (state.get(WATERLOGGED)) {
world.createAndScheduleFluidTick(pos, Fluids.WATER, Fluids.WATER.getTickRate(world));
world.scheduleFluidTick(pos, Fluids.WATER, Fluids.WATER.getTickRate(world));
}
return super.getStateForNeighborUpdate(state, direction, neighborState, world, pos, neighborPos);
}
Expand Down
Loading

0 comments on commit 6741267

Please sign in to comment.