Mods / Dryable Ground Storage

Tags: #Crafting #QoL #Tweak
Author: Aristine
Side: Both
Created: Apr 2nd 2024 at 5:39 AM
Last modified: Jan 19th at 11:15 PM
Downloads: 3490
Follow Unfollow 117

Latest release (for Vintage Story 1.20.0 - 1.20.1, outdated):
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);
}

 

 

 

Mod Version For Game version Downloads Released Changelog Download 1-click mod install*
1.0.1
1.20.0 - 1.20.1
2059 Jan 19th at 11:15 PM DryableGroundStorage.zip 1-click install

* Updated for 1.20.x

* Updated mod id to match standards

1.0.0
1.19.0 - 1.19.3 1.19.5 - 1.19.7
1431 Apr 2nd 2024 at 5:40 AM DryableGroundStorage.zip 1-click install

Initial Release


9 Comments (oldest first | newest first)

💬 JackRob, Sep 25th at 11:12 PM

For others, this seems to work in 1.21.  Tested with my Dryable Firewood mod just now.

💬 Qwernack, Sep 3rd at 12:41 PM

Seconding that, 1.21 would be amazing <3 Thank you for your time

💬 Murty, Aug 30th at 8:52 PM

Please update for 1.21. Thanks!

 

💬 CyanSoup, May 23rd at 8:50 PM

A config option to make it faster than the inventory would be amazing.
Things drying in your inventory was always weird and double drying speed on the ground would make the most sense to me overall.

💬 Desolae, Jan 17th at 9:48 PM

Hoping for a 1.20 version!

💬 Jena_Thornwyrd, Oct 20th 2024 at 6:10 PM

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

💬 VaelophisNyx, Apr 5th 2024 at 2:46 AM

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

💬 Aristine , Apr 3rd 2024 at 2:42 AM

Ramdomman I haven't used that mod, but I'm going to assume so given how simple it is.

💬 Ramdomman, Apr 2nd 2024 at 10:03 PM

is this mod compatible with more piles ?

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом