SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Regenerating Ores

ZBy Zetal

Config'd blocks regenerate over a config'd amount of time. Default config is for ore!

Regenerating Ores

Description

<p>*Ever wanted a reason to chisel out a mineshaft? Me too! This mod means that any source of ore you find is now a permanent asset to your survival.&nbsp;</p> <p>When mined, ore blocks will transform into a Regenerating Ore Block version of themselves, visually represented by a levitating temporal insignia. After a configurable length of time (default is 168 hours, or 7 days), the Regenerating Ore will transform back into regular ore, and can be freely mined again.</p> <p>If you wish, you may destroy the Regenerating Ore Block, though doing so will prevent any regeneration of the ore in the future. To prevent accidentally doing this, the Regenerating Ore Block is significantly more time consuming to break.</p> <p>(Or, you can collect them and move them using a config option if you want!)</p> <p><strong>The config is located in the standard Vintage Story file system location for mod configs.&nbsp;</strong>Usually, this is %<em>appdata%\vintagestorydata\modconfig </em>on Windows, but can vary depending on your installation. The file is named RegenOresConfig.json.</p> <p>&nbsp;</p> <p>This is my first mod, so I'm gonna be trying to support it moving forward as a learning experience. Feedback is welcome.</p> <p>&nbsp;</p> <p>2.7.0 features a completely overhaul of the mod! Past compatibility is maintained. New features in 2.7.0 include:</p> <p>&nbsp;</p> <ul> <li>The types of blocks that regenerate are now controlled by the config file exclusively. <ul> <li>This is controlled by the RegeneratingBlockTypes list, and the DisallowedBlockTypes list. Entries only need to be in the Disallowed list if you want to exclude them from a wildcard in the first list.</li> </ul> </li> <li>Added RegenChance, this is a per-Blocktype field that controls the chance for a regen block to be created when it's broken. since it's per-blocktype, this could be configured to vary depending on ore type, ore quality, or both as desired.</li> </ul> <p>&nbsp;</p> <p>The default configuration for these values is:</p> <p><code>"RegeneratingBlockTypes": [</code><br><code>&nbsp; {</code><br><code>&nbsp; &nbsp; "Code": "game:meteorite-iron",</code><br><code>&nbsp; &nbsp; "RegenDelayHours": 240.0,</code><br><code>&nbsp; &nbsp; "RegenChance": 100.0</code><br><code>&nbsp; },</code><br><code>&nbsp; {</code><br><code>&nbsp; &nbsp; "Code": "game:ore-*",</code><br><code>&nbsp; &nbsp; "RegenDelayHours": 168.0,</code><br><code>&nbsp; &nbsp; "RegenChance": 100.0</code><br><code>&nbsp; }</code><br><code> ],</code><br><code>"DisallowedBlockTypes": [</code><br><code>&nbsp; "game:ore-*-emerald-*",</code><br><code>&nbsp; "game:ore-*-diamond-*",</code><br><code>&nbsp; "game:ore-*-olivine_peridot-*"</code><br><code> ]</code></p> <p>&nbsp;</p> <p>Which includes all ores (except the gems) and meteoric iron. Priority for these values is based on primacy, so if you want to include a wildcard for all ore, but have bountiful ore regen faster or with less chance to break, you should include the appropriate wildcard code for Bountiful ores earlier in the BlockTypes list.</p> <p>&nbsp;</p> <p>2.5.0 adds Toggle Zones! These are config items that can be used to selectively disable or enable ore regeneration in circular areas of your choosing. If you aren't interested in doing so, setting EnableToggleZones to false (this is the default) will completely skip the logic.</p> <p style="padding-left: 40px;"><strong>Toggles Zones:</strong></p> <p style="padding-left: 40px;">RegenerationToggleZones</p> <p style="padding-left: 40px;">&nbsp;-&gt; X: World X position to center the zone</p> <p style="padding-left: 40px;">&nbsp;-&gt; Z: World Z position to center the zone</p> <p style="padding-left: 40px;">&nbsp;-&gt; Radius: Number of blocks radius to consider the zone</p> <p style="padding-left: 40px;">&nbsp;</p> <p style="padding-left: 40px;">RegenerationEnabledInsideToggleZone</p> <p style="padding-left: 40px;">&nbsp;if TRUE: Ore only regens when inside of a toggle zone</p> <p style="padding-left: 40px;">&nbsp;if FALSE: Ore only regens if it's outside of all toggle zones</p> <p style="padding-left: 40px;">&nbsp;</p> <p>&nbsp;</p> <div class="spoiler"> <div class="spoiler-toggle">Spoiler!</div> <div class="spoiler-text"> <p>TODO:&nbsp;</p> <p>* Add support for Ore Bombs.<br>* Add a 'Low Client Performance' mode for clients that changed the rendering to something simpler.<br>* Add a 'Low Server Performance' mode for servers/hosts that changes the tickrate for regeneration.</p> </div> </div> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <div class="spoiler"> <div class="spoiler-toggle">Spoiler!</div> <div class="spoiler-text"> <p><strong>As of 2.1.0, this add-on is deprecated due to the new config option available.</strong></p> <p>This mod has an optional add-on for those interested: <a href="https://mods.vintagestory.at/show/mod/35685">https://mods.vintagestory.at/show/mod/35685</a> which lets you break and move the regenerating ores to wherever you wish.</p> <p>&nbsp;</p> <p><strong>The 2.0.0 update will break any existing Regenerating Ore blocks, so be careful upgrading if you do not need/want mod compatibility with modded ores!</strong></p></div></div>

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.