This plugin allows players to place a vertical storage barrel that may transform into a random loot barrel. Upon placement, the storage barrel is destroyed and a loot barrel spawns in its position, which the player can then break to obtain loot.
Note: It doesn't apply to horizontal storage barrels.
Note: It doesn't apply to horizontal storage barrels.
Permissions
luckybarrel.use
- Grants players the ability to place storage barrels that can potentially become loot barrels.
Configuration
JSON:
{
"Version": "1.0.0",
"Always Turn Into Loot Barrel": false,
"Chance To Spawn Loot Barrel": 50,
"Loot Barrel Prefabs": [
"assets/content/structures/excavator/prefabs/diesel_collectable.prefab",
"assets/bundled/prefabs/autospawn/resource/loot/loot-barrel-1.prefab",
"assets/bundled/prefabs/autospawn/resource/loot/loot-barrel-2.prefab",
"assets/bundled/prefabs/radtown/loot_barrel_1.prefab",
"assets/bundled/prefabs/radtown/loot_barrel_2.prefab",
"assets/bundled/prefabs/radtown/oil_barrel.prefab"
]
}
Always Turn Into Loot Barrel
- If set to true, every placed vertical storage barrel will automatically transform into a loot barrel based on the chance defined inChance To Spawn Loot Barrel
. If set to false, players must press the secondary mouse button while placing the barrel to attempt the transformation.Chance To Spawn Loot Barrel
- Defines the probability (in percentage) that a vertical storage barrel will transform into a loot barrel whenAlways Turn Into Loot Barrel
is true.Loot Barrel Prefabs
- A list of prefab paths for potential loot barrels. You can add new barrel prefabs here, including any new ones introduced by Facepunch.