Version 0.3.1
18 downloads
About AutoSpawner
This plugin allows you to randomly spawn animals for a price in resources.
Features:
- You can customize your animals for spawn(custom items for any animal).
- If You have same fuel for some animals - will picked random animal with same fuel.
- AutoLoad groups for config file.
- Power off/on from Rust+ on SmartSwitch.
- Tracking all spawners for Admins from simple UI.
Chat commands:
/craft_spawner - command for craft custom spawner.
Admin commands:
/autospawner list - Open UI with all spawners on server(need ownerid*). //Example UI in screens
Permission:
autospawner.craft - Give permission to craft.
autospawner.place - Give permission to place.
Groups:
"default": {
"priority": 0,
"maxSpawners": 1,
"maxAnimals": 5
}
Notes:
Dont add or remove animals from config file, just disable or enable them as needed.
After restarting server, all animals will be removed.
Config Example:
{
"AutoSpawner config": {
"spawnInterval": 5.0, //Timer for spawning
"spawnRadius": 5.0,
"speedFall": 3.0 //The speed of animals falling to the ground
},
"Animals Custom spawning": { //First config key example for all animals in the list
"bear": {
"enabled": true, //Enabled/disabled to spawn animal
"animalPrefab": "assets/rust.ai/agents/bear/bear.prefab", //Dont try to change this
"fuel": {
"fuelShortname": "lowgradefuel", //Only shortnames items
"skinId": 0, //Your custom skinID
"fuelAmount": 10 //Cost fuel for spawn one animal
}
},
"wolf": {...},
"boar": {...},
"horse": {...},
"chicken": {...},
"stag": {...}
},
"spawnerSkinId": 3358767438, //Your custom skinID for autospawner
"Cost craft": { //Cost for craft
"lowgradefuel": 10,
"metal.fragments": 100,
"wood": 100
},
"Permissions": {
"default": { // Default config from start plugin
"priority": 0,
"maxSpawners": 1,
"maxAnimals": 5
},
"vip": { //Example from my oxide.groups
"priority": 1,
"maxSpawners": 5,
"maxAnimals": 10
},
"premium": { //Example from my oxide.groups
"priority": 2,
"maxSpawners": 10,
"maxAnimals": 20
}
}
}
Demo Video(v0.1.0):