diff --git a/TODO.md b/TODO.md index a2ae241..c0e151e 100644 --- a/TODO.md +++ b/TODO.md @@ -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) diff --git a/build.properties b/build.properties index c93c412..83412b7 100644 --- a/build.properties +++ b/build.properties @@ -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 \ No newline at end of file +applecore_version=1.0.0+41.60412 \ No newline at end of file diff --git a/src/main/java/iguanaman/hungeroverhaul/IguanaConfig.java b/src/main/java/iguanaman/hungeroverhaul/IguanaConfig.java index 5014435..3539ec7 100644 --- a/src/main/java/iguanaman/hungeroverhaul/IguanaConfig.java +++ b/src/main/java/iguanaman/hungeroverhaul/IguanaConfig.java @@ -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; @@ -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); diff --git a/src/main/java/iguanaman/hungeroverhaul/module/ModuleVanilla.java b/src/main/java/iguanaman/hungeroverhaul/module/ModuleVanilla.java index 0289790..96e5cec 100644 --- a/src/main/java/iguanaman/hungeroverhaul/module/ModuleVanilla.java +++ b/src/main/java/iguanaman/hungeroverhaul/module/ModuleVanilla.java @@ -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; @@ -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); } }