Skip to content

Commit

Permalink
Added configurable nether wart growth modification
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Aug 4, 2014
1 parent b4c52c7 commit 8226dd0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Incomplete list of things that need to be done. Will be added to/edited as thing
- [x] Stems
- [x] Cocoa
- [x] Reed
- [ ] Nether Wart
- [x] Nether Wart
- [ ] HarvestCraft
- [x] Crops
- [ ] Saplings (unclear which biome should be set)
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ mod_version=beta.1
natura_version=55.d22cb85
tcon_version=1.6.0.jenkins537
bop_version=2.0.2.897
applecore_version=1.0.0+39.a99d1
applecore_version=1.0.0+41.60412
6 changes: 6 additions & 0 deletions src/main/java/iguanaman/hungeroverhaul/IguanaConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class IguanaConfig
public static int sugarcaneRegrowthMultiplier;
public static int treeCropRegrowthMultiplier;
public static int saplingRegrowthMultiplier;
public static int netherWartRegrowthMultiplier;
public static int dryingRackTimeMultiplier;
public static int eggTimeoutMultiplier;
public static int breedingTimeoutMultiplier;
Expand Down Expand Up @@ -189,6 +190,11 @@ public static void init(File file)
saplingRegrowthMultiplier = Math.max(saplingRegrowthMultiplierProperty.getInt(4), 1);
saplingRegrowthMultiplierProperty.set(saplingRegrowthMultiplier);

Property netherWartRegrowthMultiplierProperty = config.get("delays", "netherWartRegrowthMultiplier", 4);
netherWartRegrowthMultiplierProperty.comment = "Multiplier on the time it takes nether wart to grow";
netherWartRegrowthMultiplier = Math.max(netherWartRegrowthMultiplierProperty.getInt(4), 1);
netherWartRegrowthMultiplierProperty.set(netherWartRegrowthMultiplier);

Property dryingRackTimeMultiplierProperty = config.get("delays", "dryingRackTimeMultiplier", 4);
dryingRackTimeMultiplierProperty.comment = "Multiplier on the time it takes cocoa to grow";
dryingRackTimeMultiplier = Math.max(dryingRackTimeMultiplierProperty.getInt(4), 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.block.BlockCactus;
import net.minecraft.block.BlockCocoa;
import net.minecraft.block.BlockCrops;
import net.minecraft.block.BlockNetherWart;
import net.minecraft.block.BlockReed;
import net.minecraft.block.BlockSapling;
import net.minecraft.block.BlockStem;
Expand Down Expand Up @@ -78,5 +79,11 @@ public static void init()
PlantGrowthModification saplingGrowthModification = new PlantGrowthModification()
.setGrowthTickProbability(IguanaConfig.saplingRegrowthMultiplier);
ModulePlantGrowth.registerPlantGrowthModifier(BlockSapling.class, saplingGrowthModification);

PlantGrowthModification netherWartGrowthModification = new PlantGrowthModification()
.setNeedsSunlight(false)
.setGrowthTickProbability(IguanaConfig.netherWartRegrowthMultiplier)
.setBiomeGrowthModifier(Type.NETHER, 1);
ModulePlantGrowth.registerPlantGrowthModifier(BlockNetherWart.class, netherWartGrowthModification);
}
}

0 comments on commit 8226dd0

Please sign in to comment.