Skip to content

Commit 6dee3f7

Browse files
[feat] Add config for Grindstone Drain Capacity
1 parent d7c7a34 commit 6dee3f7

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ parchment_minecraft_version = 1.21.1
99
parchment_mappings_version = 2024.11.13
1010
minecraft_version = 1.21.1
1111
minecraft_version_range = [1.21.1, 1.22)
12-
neo_version = 21.1.152
12+
neo_version = 21.1.200
1313
neo_version_range = [21.1.0,)
1414
loader_version_range = [4,)
1515
# Mod

src/main/java/plus/dragons/createenchantmentindustry/common/kinetics/grindstone/GrindstoneDrainBlockEntity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import plus.dragons.createenchantmentindustry.common.registry.CEIFluids;
6565
import plus.dragons.createenchantmentindustry.common.registry.CEIRecipes;
6666
import plus.dragons.createenchantmentindustry.common.registry.CEIStats;
67+
import plus.dragons.createenchantmentindustry.config.CEIConfig;
6768

6869
@FieldsNullabilityUnknownByDefault
6970
public class GrindstoneDrainBlockEntity extends KineticBlockEntity {
@@ -90,7 +91,7 @@ public ItemStack insertItem(int slot, ItemStack stack, boolean simulate) {
9091
@Override
9192
public void addBehaviours(List<BlockEntityBehaviour> behaviours) {
9293
super.addBehaviours(behaviours);
93-
tank = SmartFluidTankBehaviour.single(this, 1000);
94+
tank = SmartFluidTankBehaviour.single(this, CEIConfig.fluids().mechanicalGrindstoneFluidCapacity.get());
9495
beltInput = new DirectBeltInputBehaviour(this).allowingBeltFunnels();
9596
advancement = new AdvancementBehaviour(this);
9697
behaviours.add(tank);

src/main/java/plus/dragons/createenchantmentindustry/common/processing/enchanter/BlazeEnchanterItemRenderer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@
2929
import net.neoforged.api.distmarker.Dist;
3030
import net.neoforged.bus.api.SubscribeEvent;
3131
import net.neoforged.fml.common.EventBusSubscriber;
32-
import net.neoforged.fml.common.EventBusSubscriber.Bus;
3332
import net.neoforged.neoforge.client.extensions.common.RegisterClientExtensionsEvent;
3433
import plus.dragons.createenchantmentindustry.client.model.CEIPartialModels;
3534
import plus.dragons.createenchantmentindustry.common.CEICommon;
3635
import plus.dragons.createenchantmentindustry.common.registry.CEIBlocks;
3736

38-
@EventBusSubscriber(value = Dist.CLIENT, bus = Bus.MOD, modid = CEICommon.ID)
37+
@EventBusSubscriber(value = Dist.CLIENT, modid = CEICommon.ID)
3938
public class BlazeEnchanterItemRenderer extends CustomRenderedItemModelRenderer {
4039
@SubscribeEvent
4140
public static void register(RegisterClientExtensionsEvent event) {

src/main/java/plus/dragons/createenchantmentindustry/common/processing/forger/BlazeForgerItemRenderer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@
2929
import net.neoforged.api.distmarker.Dist;
3030
import net.neoforged.bus.api.SubscribeEvent;
3131
import net.neoforged.fml.common.EventBusSubscriber;
32-
import net.neoforged.fml.common.EventBusSubscriber.Bus;
3332
import net.neoforged.neoforge.client.extensions.common.RegisterClientExtensionsEvent;
3433
import plus.dragons.createenchantmentindustry.client.model.CEIPartialModels;
3534
import plus.dragons.createenchantmentindustry.common.CEICommon;
3635
import plus.dragons.createenchantmentindustry.common.registry.CEIBlocks;
3736

38-
@EventBusSubscriber(value = Dist.CLIENT, bus = Bus.MOD, modid = CEICommon.ID)
37+
@EventBusSubscriber(value = Dist.CLIENT, modid = CEICommon.ID)
3938
public class BlazeForgerItemRenderer extends CustomRenderedItemModelRenderer {
4039
@SubscribeEvent
4140
public static void register(RegisterClientExtensionsEvent event) {

src/main/java/plus/dragons/createenchantmentindustry/config/CEIFluidsConfig.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ public class CEIFluidsConfig extends ConfigBase {
9090
public final ConfigFloat experienceLanternPullForceMultiplier = f(.075f, 0.0f, .5f,
9191
"experienceLanternPullForceMultiplier",
9292
Comments.experienceLanternPullForceMultiplier);
93-
93+
public final ConfigInt mechanicalGrindstoneFluidCapacity = i(1000, 5000,
94+
"mechanicalGrindstoneFluidCapacity",
95+
Comments.mechanicalGrindstoneFluidCapacity,
96+
RequiresRestart.SERVER.asComment());
9497
@Override
9598
public String getName() {
9699
return "fluids";
@@ -118,5 +121,7 @@ static class Comments {
118121
static final String experienceLanternPullToggle = "Whether the Experience Lantern will pull in experience orbs from nearby.";
119122
static final String experienceLanternPullRadius = "The range at which experience orbs will be pulled into the lantern.";
120123
static final String experienceLanternPullForceMultiplier = "Modifier for the amount of force with which to pull the experience orbs.";
124+
static final String mechanicalGrindstoneFluidCapacity = "The amount of liquid a Grindstone Drain can hold (mB).";
125+
121126
}
122127
}

0 commit comments

Comments
 (0)