Mods / Dryable Ground Storage
Category:
#Crafting
#QoL
#Tweak
Author: Aristine
Side: Both
Created: Apr 2nd 2024 at 5:39 AM
Last modified: 19 hours ago
Downloads: 1445
Follow Unfollow 49
Author: Aristine
Side: Both
Created: Apr 2nd 2024 at 5:39 AM
Last modified: 19 hours ago
Downloads: 1445
Follow Unfollow 49
Latest file for v1.20.1:
DryableGroundStorage.zip
1-click install
For whatever reason, ground storage has the same dry/melt transition multiplier as chests (0.25x).
This is very annoying when using any mods that make ground stackable items dryable (such as dried fire fuels), as the only way to dry them at the 1x rate is to either keep them in inventory or a dropped bag/basket.
Now with this mod, ground stackables will dry/melt as fast as they would in your inventory!
Source:
Spoiler! (1.19)
[HarmonyPostfix]
[HarmonyPatch(typeof(BlockEntityGroundStorage), "Initialize")]
public static void InitializeGroundStorage(BlockEntityGroundStorage __instance, ICoreAPI api)
{
__instance.Inventory.OnAcquireTransitionSpeed = (transType, stack, baseMul) => api != null && transType == EnumTransitionType.Perish ? __instance.GetPerishRate() : 1;
}
Spoiler! (1.20)
[HarmonyPostfix]
[HarmonyPatch(typeof(BlockEntityGroundStorage), "Initialize")]
public static void InitializeGroundStorage(BlockEntityGroundStorage __instance, ICoreAPI api)
{
//__instance.Inventory.OnAcquireTransitionSpeed += (transType, stack, baseMul) => api != null && transType == EnumTransitionType.Perish ? __instance.peri : 1;
InventoryGeneric inventory = (InventoryGeneric)__instance.Inventory;
if (inventory.TransitionableSpeedMulByType == null) {
inventory.TransitionableSpeedMulByType = new System.Collections.Generic.Dictionary<EnumTransitionType, float>();
}
inventory.TransitionableSpeedMulByType.Add(EnumTransitionType.Dry, 2.0f);
}
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1.0.1 | 71 | 19 hours ago | Show | DryableGroundStorage.zip | Install now | |
v1.0.0 | 1374 | Apr 2nd 2024 at 5:40 AM | Show | DryableGroundStorage.zip | Install now |
Hoping for a 1.20 version!
Please, consider changing the modid to follow the specs :
Must only contain lowercase letters and numbers. No special chars, whitespaces, uppercase letters, etc. allowed
removing the underscore, ex:
{
"type": "code",
"modid": "dryablegroundstorage",
"name": "Dryable Ground Storage",
"authors": [ "Aristine" ],
"description": "Adjusts ground storage to dry at normal (1x) rate rather than 0.25x",
"version": "1.0.0",
"dependency": {
"game": "1.19.x"
}
}
thank you
Aristine pile code across each mod that adds them is wildly different and few use vanilla's code due to serious bugs, so I'd actually doubt it
Ramdomman I haven't used that mod, but I'm going to assume so given how simple it is.
is this mod compatible with more piles ?