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.
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 insteadChance Of A Snake Appearing When Chopping Trees-- Percent chance of a snake spawning on every tree gather tick, including bonus gathers. Set to0to disable snakes on trees entirely, or100to spawn one on every hitChance 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 to0to disable snakes on ore nodesChance 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 to0to disableCooldown 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 to0to disable the cooldownMinimum Spawn Distance From The Resource-- Minimum distance in meters from the resource where the snake can appearMaximum 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