Solved Replanting Trees in the Volcano Area After Eruption

Can you explain a bit more? The plugin triggers when a player cuts down a tree, so no matter where it happens it should replant, not sure I fully get your question
 
It's just that the effect around a Volcano when it "cuts" down the trees is nice but this only happens once. When Volcano has erupted all trees is gone.

Ok so there is no way to trigger when the Volcano "cuts" downs a tree and use the same logic to replant the trees around the Volcano :)
 
The volcano spawns trees around it while it's dormant, and when it erupts the lava expands and destroys everything nearby, then once the eruption ends, it returns to the dormant state and automatically respawns the trees, so there's no need for replanting, it already does that after each eruption, and eruptions only last a few seconds to a couple of minutes max

You can either increase the number of trees spawned per cycle or lower the respawn timer in the volcano settings
 
Last edited:
Unless you're referring to trees spawned by the server itself and not the ones placed by the volcano, if that's the case, you can just add the tree prefabs to the volcano's Spoils list and let the volcano do it
 
Last edited:
Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart