Back to NxLabs

NxLabs / Vintage Story

Mount destroy leaves

ABy Akkuku

Allow tamable mount to knock down tree branches when galloping

Description

Finally, you can speed through overgrown forests on your elk with ease!

Thanks to this mod, your speedy mount will knock down any branches that get in its way!

 

I was frustrated by how difficult it was to traverse thick forests, so I created this mod for myself. However, I still decided to upload it anyway.

Chat commands

(for users with server control priviliges)

/mdl inflictdamage [true | false | on | off] - Enable or disable inflicting damage to the mount after destroying leaf block
/mdl reloadConfig - Reload mod configurations for every game client connected to the server after manually changing the config file

Server-side configuration

Config file located at VintagestoryData/ModConfig/MountDestroyLeaves.json

SlowSpeedThreshold - horizontal speed above which mount will destroy the leaves
LeavesSlowdownRate - speed multiplayer after leaves block is destroyed
ShouldInflictDamage - flag to enable inflicting damage to mount
ProbabilityOfDamagePercent - percent probability of receiving damage
DamageInflicted - damage inflicted to mount
After changing any value, you can run /mdl reloadConfig to reload configurations for every game client connected to server (not tested, please let me know if you have any problems on multiplayer server).
On single-player world, you can also do that, or just restart the game.

 

Changelog

1.1.2, 1.1.3

  • Error fixes

1.1.1

1.1.0

  • Allow mount to randomly receive damage after destroying leaf block
  • Allow to configure mod via the json config file
  • Add chat command to enable or disable inflicting damage to the mount
  • Add chat command to reload configurations for every client after editing the config file

 

 Disclaimer

Please keep in mind that this is my first mod for Vintage Story as well as my first mod ever. Furthermore, I created it after spending just a few hours of learning how to mod this game.

With that in mind, the code is probably not optimal, the behavior may be imperfect, and compatibility may be limited. I didn't encounter any compatibility issues in a single-player world with multiple mods, and it worked okay when I tested it.

If you encounter any problems or have suggestions for improvements, please let me know in the comments.

Download

No download link is available for this entry right now.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.