Skip to content

Commit

Permalink
Add Globin Crucible Spawning config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Jan 18, 2025
1 parent ed434a4 commit b8fcea4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

import mod.emt.harkenscythe.config.HSConfig;
import mod.emt.harkenscythe.entity.HSEntityHemoglobin;
import mod.emt.harkenscythe.init.HSItems;

Expand All @@ -20,7 +21,7 @@ public HSBlockBloodCrucible()
@Override
public void onBlockHarvested(World world, BlockPos pos, IBlockState state, EntityPlayer player)
{
if (!world.isRemote && state.getValue(LEVEL) > 0)
if (HSConfig.ENTITIES.globinCrucibleSpawning && !world.isRemote && state.getValue(LEVEL) > 0)
{
HSEntityHemoglobin hemoglobin = new HSEntityHemoglobin(world);
int size = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

import mod.emt.harkenscythe.config.HSConfig;
import mod.emt.harkenscythe.entity.HSEntityEctoglobin;
import mod.emt.harkenscythe.init.HSItems;

Expand All @@ -20,7 +21,7 @@ public HSBlockSoulCrucible()
@Override
public void onBlockHarvested(World world, BlockPos pos, IBlockState state, EntityPlayer player)
{
if (!world.isRemote && state.getValue(LEVEL) > 0)
if (HSConfig.ENTITIES.globinCrucibleSpawning && !world.isRemote && state.getValue(LEVEL) > 0)
{
HSEntityEctoglobin ectoglobin = new HSEntityEctoglobin(world);
int size = 2;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/mod/emt/harkenscythe/config/HSConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public static class EntitySettings
@Config.Comment("Spawns globins (or spectral miners from spectral souls) after a blood/soul essence entity despawns")
public boolean essenceMobSpawning = true;

@Config.Name("Globin Crucible Spawning")
@Config.Comment("Spawns globins when filled crucibles are broken")
public boolean globinCrucibleSpawning = true;

@Config.Name("Harbinger Armor Value")
@Config.Comment("The amount of armor protection the Harbinger has")
public double harbingerArmorValue = 10.0D;
Expand Down

0 comments on commit b8fcea4

Please sign in to comment.