Join the Game4Freak Discord Get exclusive plugin sneak peeks, talk directly with VisEntities, never miss important updates, and unlock special discount codes!
Hidden Snakes

Hidden Snakes 1.0.0

Sign in to download
A random snake may appear while farming resources
Spawns a snake near the player with a configurable chance when they chop trees, mine ore or stone nodes, or pick up ground collectibles like mushrooms, hemp, wood, and surface ores.

Each gather type has its own independent spawn chance. A per-player cooldown prevents snakes from stacking during rapid farming, and spawn positions are randomized around the resource within a configurable distance range.

Useful for servers that want to add a bit of ambient danger to routine gathering without introducing heavier threats like scientists or bears.

Configuration

JSON:
{
  "Snake Entity Prefab": "assets/rust.ai/agents/snake/snake.entity.prefab",
  "Chance Of A Snake Appearing When Chopping Trees (percent, 0 = never, 100 = every hit)": 2,
  "Chance Of A Snake Appearing When Mining Ores And Stones (percent, 0 = never, 100 = every hit)": 2,
  "Chance Of A Snake Appearing When Picking Up Ground Collectibles Like Mushrooms, Stones, Wood, And Surface Ores (percent, 0 = never, 100 = always)": 5,
  "Cooldown Between Snake Spawns For The Same Player (seconds)": 30.0,
  "Minimum Spawn Distance From The Resource": 0.5,
  "Maximum Spawn Distance From The Resource": 1.5
}
  • Snake Entity Prefab -- Full prefab path of the entity that spawns. Defaults to the standard Rust snake. Any compatible AI agent prefab can be substituted if you want a different creature to appear instead
  • Chance Of A Snake Appearing When Chopping Trees -- Percent chance of a snake spawning on every tree gather tick, including bonus gathers. Set to 0 to disable snakes on trees entirely, or 100 to spawn one on every hit
  • Chance Of A Snake Appearing When Mining Ores And Stones -- Percent chance of a snake spawning on every ore or stone gather tick, including bonus gathers. Set to 0 to disable snakes on ore nodes
  • Chance Of A Snake Appearing When Picking Up Ground Collectibles -- Percent chance of a snake spawning when the player picks up a ground collectible such as a mushroom, hemp plant, small stone, wood log, or surface ore. Set to 0 to disable
  • Cooldown Between Snake Spawns For The Same Player -- Minimum time in seconds between snake spawns triggered by the same player. Prevents multiple snakes stacking up when farming quickly. Set to 0 to disable the cooldown
  • Minimum Spawn Distance From The Resource -- Minimum distance in meters from the resource where the snake can appear
  • Maximum Spawn Distance From The Resource -- Maximum distance in meters from the resource where the snake can appear. Keep this reasonably small so the snake spawns close enough for the player to notice it
Author
VisEntities
Downloads
5
First release
Last update

Ratings

0.00 star(s) 0 reviews

Also by VisEntities

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