The ability to configure seed drop chance, and amount dropped in config.
Robert-DeForrest-Reynolds opened this issue ยท 2 comments
| ModConfigs.java |
CUSTOM_DROP_CHANCE = common
.comment("What is the chance crops should drop seeds?")
.translation("configGui.mysticalagriculture.customDropChance")
.defineInRange("customChance", 0.1, 1.0);
CUSTOM_DROP_AMOUNT = common
.comment("How many seeds should crops drop?")
.translation("configGui.mysticalagriculture.customDropAmount")
.defineInRange("customCDropAmount", 1, 4);
| ICrop.java |
default double getSecondaryChance(Block block) {
double chance = 0;
double customChance;
if (!this.getTier().SecondaySeedChance())
chance == customChance;
if (!this.getTier().hasSecondarySeedDrop())
return chance;
if (block instanceof IEssenceFarmland)
chance += 0.1;
if (this.getTier().isEffectiveFarmland(block))
chance += 0.1;
if (!this.getTier().SecondaySeedChance())
return chance;
else
return customChance;
}
| CropTier.java |
/**
* Whether or not this tier's crops can drop a second seed
* @return has customChance
*/
public double customChance() {
return this.customChance;
}
The ability to configure seed drop chance, and amount dropped in config.
I tried helping a bit, but know very little Java, fully understand this is not clean, just trying at least. If I completely butchered this, go ahead and roast me for fun. Good day, thank you for your time.
I'm not entirely sure how I want to implement configurable secondary drop rates. I plan on adding this in some form(s) during the 1.18 lifecycle.
I don't think I will be making it so crops can drop more items though.