
Mods / Easy Fruit Trees
Tags:
#Cheat
#Food
#QoL
#Tweak
#Utility
#Worldgen
Author: Aureus_Prime
Side: Both
Created: Jan 17th 2022 at 6:37 PM
Last modified: Jan 18th 2022 at 1:49 PM
Downloads: 1987
Follow Unfollow 30
Author: Aureus_Prime
Side: Both
Created: Jan 17th 2022 at 6:37 PM
Last modified: Jan 18th 2022 at 1:49 PM
Downloads: 1987
Follow Unfollow 30
Latest release (for Vintage Story 1.16.0, outdated):
EasyFruitTrees 1.0.1.zip
1-click install
Makes Cuttlings always survive and grafting never fail.
Mod Version | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
1.0.1 | 1574 | Jan 18th 2022 at 1:49 PM | EasyFruitTrees 1.0.1.zip | 1-click install | ||
fixed item tool tip thanks Taska | ||||||
1.0.0 | 413 | Jan 17th 2022 at 6:39 PM | EasyFruitTrees.zip | 1-click install | ||
initial release |
I would love to see an updated version of this! Seems like a really helpful mod.
Taska I implemented your fix and it worked so i uploaded a new file and credited you for your help Thank you much appreciated.
Harmony isn't necessary to do this. Even in code mods that'd be overkill. Instead, for a code mod, you're able to create your own custom class that inherits Block and assign it in your JSON file as 'class: "CustomClass"'. From there, it's as simple as overriding the GetHeldItem and GetPlacedBlockInfo functions and appending whatever strings you want to the StringBuilder dsc parameter provided.
That being said, Easy Fruit Trees seems like a content mod. Code won't work for for it, but thankfully easier method.
Aureus_Prime All you've gotta do is create a lang folder in the same place where you have your patches folder. Create an 'en.json' file. Copy and paste this into it, and it'll change the description in game for you:
{
"blockdesc-fruittree-cutting": "I'm a tree cutting, wheeee!",
}
You can use harmony on Vintagestory.API.Common.CollectibleObject "GetHeldItemInfo" for item in inventory and
Vintagestory.API.Common.Block "GetPlacedBlockInfo" for placed block HUD. (Postfix for example and change returned string in Block and change StringBuilder
in CollectibleObject. And check if it is really cutting ofc.
Maybe somebody knows a better solution.