steampunkvalley's Wishlist
-
Survival Arena
By imthenewguy in Plugins
Survival Arena is a plugin that spawns a Battle-royal style game, where players must scavenge for equipment and fight to the death, all while staying inside of a shrinking, non-radiated zone.
The plugin spawns a large play area high in the sky and inherits the biome type from the ground below. This means that if the area is suspended above an arctic biome, all of the rocks, trees, logs and bushes will be spawned mirroring that biome type.
Players are teleported into the center building when they join, and once the game begins, they must loot containers to gear up to survive. Players are returned to their original locations when they leave the event or respawn after dying at the event.
Server owners can change or add loot profiles via the config. The plugin will select a random profile when the arena begins and fill the loot containers based on your specifications.
It comes with 2 default loot profiles:
Primitive - spears, melee weapons, bows, crossbows, burlap equipment, revolvers etc GunLoot - more modern weapons.
The plugin uses EventHelper to run automatically, handle joining and leaving, and will allow players to vote to start the game.
Admins can also add additional trees, bushes, logs and loot spawns to the arena via command.
Type: Chat Command: survivalarena Function: Sends the user the UI to start up the game. Loot profiles, spawn height and lobby time can be adjusted here before starting the game. Type: Chat/Console Command: startarena <heightMod> <lobbytime> <arenaName> <lootProfile> Function: Spawns and starts the game using the specified heightmod and lobbytime parameters. You can simply use the command with no parameters to start it using the default settings and a random arena/lootprofile. Type: Chat/Console Command: endarena Function: Ends any active games and despawns the arena. Type: Chat Command: spawnarena <name> Function: Spawns the arena, but does not start the game. Useful for debugging and development. Type: Chat Command: setcentrepoint Function: Sets the arena's new center point at the players location. Useful if you want to move the spawn so it has more biome variety. Be sure not to make it too high or too close to the ground. Type: Chat Command: survival Function: Used to join the game when the lobby is active. Type: Chat Command: saremove Function: Removes the tree, loot container, log or bush that the player is looking at. This will no longer spawn in future games. Type: Chat Command: addtree Function: adds a tree spawn at the players position. Type: Chat Command: addbush Function: adds a bush spawn at the players position. Type: Chat Command: addlog Function: adds a log spawn at the players position. Type: Chat Command: addloot Function: adds a loot spawn at the players position. Type: Chat Command: saleave Function: Leaves the event Type: Console/Chat Command: wipeoldarena Function: Wipes any entities that are at the same height or higher than the arena.
survivalarena.admin
If you wish to create your own arena, you may follow this tutorial here: https://youtu.be/BxmcjHjIJDU
Please note that the map file name needs to contain survivalarena or it will not allow the getarena command to work. Also I will not be offering support for this, so use at your own risk.
API
Hook Calls
void OnSurvivalArenaStart() - Called when the lobby starts. void OnSurvivalArenaEnd() - Called when the game is ending. void OnSurvivalArenaWin(BasePlayer player) - Called when a player wins the game. void OnEventLeave(BasePlayer player, string pluginName) - Called when a player leaves the event. object OnEventJoin(BasePlayer player, string pluginName) - Called when a player is attempting to join the event. Returning a string will prevent the player from joining and will print the string to them. void OnEventJoined(BasePlayer player, string pluginName) - Called when a player has successfully joined the arena. void OnPlayerItemsRestored(BasePlayer player) - called when a players items have been restored.
Hook Methods
bool IsEventPlayer(BasePlayer player) - returns true or null if the player is an EventPlayer.
-
Custom Crops
Create some new items for players to get while farming, Create Drug Farms, Ammo Farms, Weapon Farms, Whatever you set in Configuration for your players to harvest.
MONEY SEED IN IMAGE IS AN EXAMPLE OF A CUSTOMERS CUSTOM CONFIG
ADMIN PERMISSION - customcrops.admin
CANCLONE PERMISSION - customcrops.canclone
HERE IS A SEED PACK TEMPLATE I USED TO CREATE THE PACKS ON DEFAULT CONFIG
SEEDPACKTEMPLATE.zip
The config comes Preset with a seed pack, and seeds to harvest weapons and ammo.
Create as many Seed Packs, and seeds as you like.
Seed packs must be an openable like a loot bag, Seeds must be seeds.
Config comes with a setting to only harvest at ripe, or turn off and set lesser rewards for players that want to harvest early.
Cloning is disabled but can be enabled per seed.
Eating is disabled and will block upon attempt.
Admin Commands
/giveseeds – gives seeds to players inv.
/giveseedpacks - gives seed packs to players inv.
/c.spawnpacks - spawns all packs into a container in front of you, useful if you have alot of custom packs
/c.spawnseeds- spawns all seeds into a container in front of you, useful if you have alot of custom seeds
/c.spawnproduct - spawns all seed final product into a container in front of you
VIDEO DEMO - CONFIG AND LANG BELOW
Config
{ "Settings": { "Only Allow Gather At Ripe State?": true, "Allow Planting in Specified Zones?": false, "Zones": [ "ENTERIDHERE", "ENTERANOTHERHERE" ] }, "Seed Packs": [ { "Seed Pack Shortname": "halloween.lootbag.small", "Seed Pack Name": "Weapons Seed Pack", "Seed Pack SkinID": 3336282159, "Minimum Amount of Seeds": 1, "Maximum Amount of Seeds": 5, "Seed Pack Loot Table": [ { "Shortname": "seed.hemp", "SkinID": 3336288267, "Probability (0-1)": 0.2, "Custom Name": "Rifle Seeds", "Minimum Amount": 1, "Maximum Amount": 5 }, { "Shortname": "seed.hemp", "SkinID": 3336288376, "Probability (0-1)": 0.5, "Custom Name": "Pistol Seeds", "Minimum Amount": 1, "Maximum Amount": 3 }, { "Shortname": "seed.hemp", "SkinID": 3336288463, "Probability (0-1)": 0.3, "Custom Name": "Shotgun Seeds", "Minimum Amount": 1, "Maximum Amount": 3 }, { "Shortname": "seed.yellow.berry", "SkinID": 3336288567, "Probability (0-1)": 0.3, "Custom Name": "Rifle Ammo Seeds", "Minimum Amount": 1, "Maximum Amount": 3 }, { "Shortname": "seed.red.berry", "SkinID": 3336288676, "Probability (0-1)": 0.3, "Custom Name": "Shotgun Ammo Seeds", "Minimum Amount": 1, "Maximum Amount": 3 }, { "Shortname": "seed.blue.berry", "SkinID": 3336288759, "Probability (0-1)": 0.3, "Custom Name": "Pistol Ammo Seeds", "Minimum Amount": 1, "Maximum Amount": 3 } ] } ], "Seeds": [ { "Seed Shortname (Must Be a Seed)": "seed.hemp", "Seed Name": "Rifle Seeds", "Seed SkinID": 3336288267, "Enable Yield Bonus?": false, "Allow Cloning?": false, "Clone Minimum": 1, "Clone Maximum": 2, "Yield Bonus Item Amount Per Yield Gene": 1, "Seed Harvest States": { "Sapling": { "Minimum Amount": 0, "Maximum Amount": 1 }, "Crossbreed": { "Minimum Amount": 2, "Maximum Amount": 4 }, "Mature": { "Minimum Amount": 3, "Maximum Amount": 6 }, "Fruiting": { "Minimum Amount": 5, "Maximum Amount": 8 }, "Ripe": { "Minimum Amount": 7, "Maximum Amount": 10 }, "Dying": { "Minimum Amount": 0, "Maximum Amount": 1 } }, "Seed Loot Table": [ { "Shortname": "rifle.ak", "SkinID": 3335692326, "Probability (0-1)": 0.5, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "rifle.lr300", "SkinID": 3312482754, "Probability (0-1)": 0.5, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 } ] }, { "Seed Shortname (Must Be a Seed)": "seed.hemp", "Seed Name": "Pistol Seeds", "Seed SkinID": 3336288376, "Enable Yield Bonus?": false, "Allow Cloning?": false, "Clone Minimum": 1, "Clone Maximum": 2, "Yield Bonus Item Amount Per Yield Gene": 1, "Seed Harvest States": { "Sapling": { "Minimum Amount": 0, "Maximum Amount": 1 }, "Crossbreed": { "Minimum Amount": 1, "Maximum Amount": 2 }, "Mature": { "Minimum Amount": 3, "Maximum Amount": 5 }, "Fruiting": { "Minimum Amount": 4, "Maximum Amount": 7 }, "Ripe": { "Minimum Amount": 5, "Maximum Amount": 9 }, "Dying": { "Minimum Amount": 0, "Maximum Amount": 1 } }, "Seed Loot Table": [ { "Shortname": "pistol.m92", "SkinID": 0, "Probability (0-1)": 0.4, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "pistol.prototype17", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "pistol.revolver", "SkinID": 0, "Probability (0-1)": 0.6, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "pistol.water", "SkinID": 0, "Probability (0-1)": 0.6, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 } ] }, { "Seed Shortname (Must Be a Seed)": "seed.hemp", "Seed Name": "Shotgun Seeds", "Seed SkinID": 3336288463, "Enable Yield Bonus?": false, "Allow Cloning?": false, "Clone Minimum": 1, "Clone Maximum": 2, "Yield Bonus Item Amount Per Yield Gene": 1, "Seed Harvest States": { "Sapling": { "Minimum Amount": 0, "Maximum Amount": 1 }, "Crossbreed": { "Minimum Amount": 1, "Maximum Amount": 3 }, "Mature": { "Minimum Amount": 4, "Maximum Amount": 6 }, "Fruiting": { "Minimum Amount": 5, "Maximum Amount": 7 }, "Ripe": { "Minimum Amount": 6, "Maximum Amount": 10 }, "Dying": { "Minimum Amount": 1, "Maximum Amount": 2 } }, "Seed Loot Table": [ { "Shortname": "shotgun.double", "SkinID": 1426115707, "Probability (0-1)": 0.3, "Custom Name": "", "Minimum Amount": 10, "Maximum Amount": 20 }, { "Shortname": "shotgun.m4", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "shotgun.pump", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 1, "Maximum Amount": 1 } ] }, { "Seed Shortname (Must Be a Seed)": "seed.yellow.berry", "Seed Name": "Rifle Ammo Seeds", "Seed SkinID": 3336288567, "Enable Yield Bonus?": false, "Allow Cloning?": false, "Clone Minimum": 1, "Clone Maximum": 2, "Yield Bonus Item Amount Per Yield Gene": 1, "Seed Harvest States": { "Sapling": { "Minimum Amount": 0, "Maximum Amount": 1 }, "Crossbreed": { "Minimum Amount": 1, "Maximum Amount": 3 }, "Mature": { "Minimum Amount": 4, "Maximum Amount": 6 }, "Fruiting": { "Minimum Amount": 5, "Maximum Amount": 7 }, "Ripe": { "Minimum Amount": 6, "Maximum Amount": 10 }, "Dying": { "Minimum Amount": 1, "Maximum Amount": 2 } }, "Seed Loot Table": [ { "Shortname": "ammo.rifle", "SkinID": 0, "Probability (0-1)": 0.3, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 }, { "Shortname": "ammo.rifle.hv", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 }, { "Shortname": "ammo.rifle.incendiary", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 } ] }, { "Seed Shortname (Must Be a Seed)": "seed.red.berry", "Seed Name": "Shotgun Ammo Seeds", "Seed SkinID": 3336288676, "Enable Yield Bonus?": false, "Allow Cloning?": false, "Clone Minimum": 1, "Clone Maximum": 2, "Yield Bonus Item Amount Per Yield Gene": 1, "Seed Harvest States": { "Sapling": { "Minimum Amount": 0, "Maximum Amount": 1 }, "Crossbreed": { "Minimum Amount": 1, "Maximum Amount": 3 }, "Mature": { "Minimum Amount": 4, "Maximum Amount": 6 }, "Fruiting": { "Minimum Amount": 5, "Maximum Amount": 7 }, "Ripe": { "Minimum Amount": 6, "Maximum Amount": 10 }, "Dying": { "Minimum Amount": 1, "Maximum Amount": 2 } }, "Seed Loot Table": [ { "Shortname": "ammo.shotgun", "SkinID": 0, "Probability (0-1)": 0.3, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 }, { "Shortname": "ammo.shotgun.fire", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 }, { "Shortname": "ammo.shotgun.slug", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 } ] }, { "Seed Shortname (Must Be a Seed)": "seed.blue.berry", "Seed Name": "Pistol Ammo Seeds", "Seed SkinID": 3336288759, "Enable Yield Bonus?": false, "Allow Cloning?": false, "Clone Minimum": 1, "Clone Maximum": 2, "Yield Bonus Item Amount Per Yield Gene": 1, "Seed Harvest States": { "Sapling": { "Minimum Amount": 0, "Maximum Amount": 1 }, "Crossbreed": { "Minimum Amount": 1, "Maximum Amount": 3 }, "Mature": { "Minimum Amount": 4, "Maximum Amount": 6 }, "Fruiting": { "Minimum Amount": 5, "Maximum Amount": 7 }, "Ripe": { "Minimum Amount": 6, "Maximum Amount": 10 }, "Dying": { "Minimum Amount": 1, "Maximum Amount": 2 } }, "Seed Loot Table": [ { "Shortname": "ammo.pistol.hv", "SkinID": 0, "Probability (0-1)": 0.3, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 }, { "Shortname": "ammo.pistol.fire", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 }, { "Shortname": "ammo.pistol", "SkinID": 0, "Probability (0-1)": 0.2, "Custom Name": "", "Minimum Amount": 64, "Maximum Amount": 128 } ] } ] }
Lang
{ "CropCannotBeCloned": "[<color=green>Crops</color>] This <color=green>{0}</color> crop cannot be cloned.", "CropItemsGiven": "[<color=green>Crops</color>] You have received <color=yellow>{0}</color> items from your <color=green>{1}</color> crop at the <color=green>{2}</color> state.", "CropNotRipe": "[<color=green>Crops</color>] This <color=green>{0}</color> crop is Not Ripe." }
VIDEO ATTRIBUTION https://www.vecteezy.com/free-videos/plant Plant Stock Videos by Vecteezy
- #customizable crops
- #farming
-
(and 1 more)
Tagged with:
-
KeyCrates
The Key Crates plugin introduces a captivating gameplay feature centered around locked loot crates and colored keys. Players must gather these keys to access the valuable rewards hidden within the crates. Each key color corresponds to a unique crate type, offering different levels of rarity and rewards
Keys
The keys spawn in world loot containers listed in the config. Each container has a probability field that can be customized to set the probabilities for each key type to spawn in the container. Normal cards CANNOT be used at the loot crates and loot keys cannot be used in monuments. Upon collection 10 Green loot keys they will be upgraded to one Blue key. The same for Blue to Red
Loot Crates
The three loot crates all have their own configurable reward lists that even allows you to specify skinID and names to allow custom rewards to be given when the key is claimed. Each item added must be given a probability %. This will determine how likely a player is to receive the item.
Admin Commands
There are a few admin commands:
/addcustomloc - This will allow you to set the coords for a custom set of crates to spawn at. You MAY need to alter the coords to best fit your needs in the config. Just stand where you want them to spawn, face the way you want the readers to face, and run the command. Within 5 seconds a set of crates will spawn and be ready for use.
/gk - This will give you, the admin, one of each key. This can be used for testing rewards and handing out randomly.
/givekey <color> - This is a console command. It can be used to give keys through shops, rewards, or anything that allows commands as a reward.
/givekey <player> <color> <qty> - This admin command allows you to give a specific color and quantity of key to a specific player.
Monument Spawning
The three loot crates will spawn in default positions. These can be changed by altering the config position and rotation values for the crates at a specific monument OR by using the /addcustomloc command mentioned above.
Example Config:
{ "Custom Crate Location": [ { "enabled": true, "pos": { "x": -1785.229, "y": 3.521712, "z": 1480.33313 }, "rot": { "x": 0.0, "y": 150.63768, "z": 0.0 } } ], "Crates that Keys will spawn in": [ { "crateName": "heli_crate", "enabled": true, "gKeyChance": 0, "bKeyChance": 0, "rKeyChance": 5 }, { "crateName": "bradley_crate", "enabled": true, "gKeyChance": 0, "bKeyChance": 0, "rKeyChance": 5 }, { "crateName": "codelockedhackablecrate_oilrig", "enabled": true, "gKeyChance": 0, "bKeyChance": 0, "rKeyChance": 5 }, { "crateName": "codelockedhackablecrate", "enabled": true, "gKeyChance": 0, "bKeyChance": 0, "rKeyChance": 5 }, { "crateName": "wagon_crate_normal_2", "enabled": true, "gKeyChance": 5, "bKeyChance": 1, "rKeyChance": 0 }, { "crateName": "wagon_crate_normal", "enabled": true, "gKeyChance": 0, "bKeyChance": 5, "rKeyChance": 0 }, { "crateName": "crate_tools", "enabled": true, "gKeyChance": 5, "bKeyChance": 1, "rKeyChance": 0 }, { "crateName": "crate_underwater_advanced", "enabled": true, "gKeyChance": 0, "bKeyChance": 5, "rKeyChance": 0 }, { "crateName": "crate_normal_2", "enabled": true, "gKeyChance": 5, "bKeyChance": 1, "rKeyChance": 0 }, { "crateName": "crate_normal", "enabled": true, "gKeyChance": 0, "bKeyChance": 5, "rKeyChance": 0 }, { "crateName": "supply_drop", "enabled": true, "gKeyChance": 0, "bKeyChance": 0, "rKeyChance": 5 }, { "crateName": "crate_elite", "enabled": true, "gKeyChance": 0, "bKeyChance": 5, "rKeyChance": 0 } ], "Green Loot Rewards": [ { "itemShortname": "wood", "skin": 0, "itemName": "", "minQuantity": 500, "maxQuantity": 500, "probability": 100 }, { "itemShortname": "stones", "skin": 0, "itemName": "", "minQuantity": 500, "maxQuantity": 500, "probability": 100 }, { "itemShortname": "lowgradefuel", "skin": 0, "itemName": "", "minQuantity": 250, "maxQuantity": 250, "probability": 100 }, { "itemShortname": "metal.fragments", "skin": 0, "itemName": "", "minQuantity": 250, "maxQuantity": 250, "probability": 100 }, { "itemShortname": "metal.refined", "skin": 0, "itemName": "", "minQuantity": 50, "maxQuantity": 50, "probability": 100 }, { "itemShortname": "scrap", "skin": 0, "itemName": "", "minQuantity": 100, "maxQuantity": 100, "probability": 100 }, { "itemShortname": "ammo.pistol", "skin": 0, "itemName": "", "minQuantity": 50, "maxQuantity": 50, "probability": 100 }, { "itemShortname": "wood", "skin": 0, "itemName": "", "minQuantity": 500, "maxQuantity": 500, "probability": 100 }, { "itemShortname": "stones", "skin": 0, "itemName": "", "minQuantity": 500, "maxQuantity": 500, "probability": 100 }, { "itemShortname": "lowgradefuel", "skin": 0, "itemName": "", "minQuantity": 250, "maxQuantity": 250, "probability": 100 }, { "itemShortname": "metal.fragments", "skin": 0, "itemName": "", "minQuantity": 250, "maxQuantity": 250, "probability": 100 }, { "itemShortname": "metal.refined", "skin": 0, "itemName": "", "minQuantity": 50, "maxQuantity": 50, "probability": 100 }, { "itemShortname": "scrap", "skin": 0, "itemName": "", "minQuantity": 100, "maxQuantity": 100, "probability": 100 }, { "itemShortname": "ammo.pistol", "skin": 0, "itemName": "", "minQuantity": 50, "maxQuantity": 50, "probability": 100 } ], "Give Green rewards through commands?": true, "Green Command (use %steamid% where player ID would be)": [ { "Command": "givekey %steamid% blue", "Command Chat Message": "", "Enabled": true } ], "Blue Loot Rewards": [ { "itemShortname": "rifle.ak", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "explosive.satchel", "skin": 0, "itemName": "", "minQuantity": 2, "maxQuantity": 2, "probability": 100 }, { "itemShortname": "largebackpack", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "grenade.f1", "skin": 0, "itemName": "", "minQuantity": 10, "maxQuantity": 10, "probability": 100 }, { "itemShortname": "rifle.lr300", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "metal.facemask", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "metal.plate.torso", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "electric.generator.small", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "black.raspberries", "skin": 0, "itemName": "", "minQuantity": 10, "maxQuantity": 10, "probability": 100 }, { "itemShortname": "rifle.ak", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "explosive.satchel", "skin": 0, "itemName": "", "minQuantity": 2, "maxQuantity": 2, "probability": 100 }, { "itemShortname": "grenade.f1", "skin": 0, "itemName": "", "minQuantity": 10, "maxQuantity": 10, "probability": 100 }, { "itemShortname": "rifle.lr300", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "metal.facemask", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "metal.plate.torso", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "electric.generator.small", "skin": 0, "itemName": "", "minQuantity": 1, "maxQuantity": 1, "probability": 100 }, { "itemShortname": "black.raspberries", "skin": 0, "itemName": "", "minQuantity": 10, "maxQuantity": 10, "probability": 100 } ], "Give Blue rewards through commands?": false, "Blue Command (use %steamid% where player ID would be)": [ { "Command": "givekey %steamid% red", "Command Chat Message": "", "Enabled": true } ], "Red Loot Rewards": [], "Give Red rewards through commands?": true, "Red Command (use %steamid% where player ID would be)": [ { "Command": "sr add %steamid% 3", "Command Chat Message": "<color=white>%steamid%</color> <color=red> received <color=white>3 RP</color> from the Red Key Crate!</color>", "Enabled": true }, { "Command": "opl %steamid%", "Command Chat Message": "<color=white>%steamid%</color> <color=red> received a <color=white>RP Rocket Launcher</color> from the Red Key Crate!</color>", "Enabled": true }, { "Command": "inventory.giveto %steamid% supply.signal 3", "Command Chat Message": "<color=white>%steamid%</color> <color=red> received <color=white>3 Supply Signals</color> from the Red Key Crate!</color>", "Enabled": true }, { "Command": "recycler.give %steamid%", "Command Chat Message": "<color=white>%steamid%</color> <color=red> received a <color=white>Recycler</color> from the Red Key Crate!</color>", "Enabled": true }, { "Command": "inventory.giveto %steamid% blood 3", "Command Chat Message": "<color=white>%steamid%</color> <color=red> received <color=white>3 Blood</color> from the Red Key Crate!</color>", "Enabled": true }, { "Command": "addrolls %steamid% free 3", "Command Chat Message": "<color=white>%steamid%</color> <color=red> received <color=white>3 Free Rerolls for today</color> from the Red Key Crate!</color>", "Enabled": true } ], "Broadcast when Red Key used?": true, "Monument Info": [ { "name": "assets/bundled/prefabs/autospawn/monument/medium/bandit_town.prefab", "enabled": false, "pos": { "x": 9.0, "y": 2.8, "z": 0.7 }, "rot": { "x": 0.0, "y": -90.0, "z": 0.0 } }, { "name": "assets/bundled/prefabs/autospawn/monument/medium/compound.prefab", "enabled": false, "pos": { "x": -24.1, "y": 0.2, "z": 12.1 }, "rot": { "x": 0.0, "y": 90.0, "z": 0.0 } } ] }
-
Luck
Luck is a Fallout-inspired system that adds a dynamic luck mechanic to influence gameplay. This system tracks and adjusts a player's luck based on in-game actions, such as using the "Luck Item” you choose to customize or loss of luck on death..With this mechanic, players' chances of finding valuable loot, triggering varying rarity of drops depending on your configuration.
Overview
Luck Tracking: The plugin tracks each player's luck, which can increase with the luck item use or decrease based on death if config is set to do so. Luck Items: Special items called "4 Leaf Clover" (Configurable) can be added to loot containers and collectables. These items affect the player's luck positively when used. Loot Integration: Luck items can be configured to appear in various loot containers and collectable resources with specific probabilities. Minimum Luck Needed to even trigger a luck event can be set. Items loot table for loot containers or collectibles, can set a required min luck needed to even consider that item. You can set whatever prefab path you need, to provide items to get very specific with your loot table.
See config below for an example.
OPTIONAL UI DEMO / IMAGE LIBRARY REQUIRED
MedalTVRust20240811223105-1723434014.mp4
COMMANDS
Command: /checkluck Description: Allows a player to check their current luck level. Command: /checkplayerluck Description: Allows players with luck.admin perm to check a certain players luck Command: /resetplayerluck Description: Allows players with luck.admin perm to reset a certain players luck Command: /giveluckitems Description: Allows an admin player to give themselves luck items. Command: /resetallluck Description: Allows an admin player to reset all player luck data via chat. Command: resetallluck Description: Allows an admin to reset all player luck data via Rcon.
CONFIG Ex.
{ "UI Config": { "Enable UI": true, "Image URL": "https://www.dropbox.com/scl/fi/764qkv3764vn7tdcfh6zt/Clover.png?rlkey=1bdv2vqpn3jz5uydzsmq1xstq&st=28693fdf&dl=1" }, "Clear Luck On Wipe?": false, "Luck Item Settings": { "Luck Item Name": "4 Leaf Clover", "Luck Item SkinID": 3304398064, "Add Item To Containers?": true, "Chance to add to Containers? (0-1)": 0.12, "Add Item To Collectables?": true, "Chance to add to Collectables? (0-1)": 0.14, "Min Amount to Add?": 1, "Max to Add?": 2, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_basic.prefab", "assets/bundled/prefabs/radtown/crate_mine.prefab", "assets/bundled/prefabs/radtown/crate_normal.prefab", "assets/bundled/prefabs/radtown/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_food.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_medical.prefab", "assets/bundled/prefabs/radtown/crate_tools.prefab", "assets/bundled/prefabs/radtown/crate_underwater_advanced.prefab", "assets/bundled/prefabs/radtown/crate_underwater_basic.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_ammunition.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_1.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_fuel.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_medical.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_tools.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/misc/supply drop/supply_drop.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab" ], "Eligible Collectables": [ "assets/bundled/prefabs/autospawn/collectable/stone/sulfur-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/metal-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/stone-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-black/berry-black-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-blue/berry-blue-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-green/berry-green-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-red/berry-red-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-white/berry-white-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-yellow/berry-yellow-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/hemp/hemp-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-5.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-6.prefab", "assets/bundled/prefabs/autospawn/collectable/corn/corn-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/potato/potato-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/pumpkin/pumpkin-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/wood/wood-collectable.prefab" ] }, "Notification Settings": { "Enable Notification on Luck Triggered?": true, "Found Effect Path": "assets/prefabs/misc/easter/painted eggs/effects/eggpickup.prefab", "Enable Notification on Luck Added?": true, "Luck Added Effect Path": "assets/bundled/prefabs/fx/item_unlock.prefab", "Enable Notification on Luck Lost?": true, "Luck Lost Effect Path": "assets/prefabs/weapons/toolgun/effects/repairerror.prefab" }, "Luck Settings": { "Max Luck": 100, "Lose Luck On Death?": true, "Amount of Luck Lost On Death?": 15, "Amount of Luck Gained On Item Use?": 1, "Award SkillTree XP on Successful Luck Trigger?": true, "Amount of XP awarded on Successful Luck Trigger": 50 }, "Luck Buff Settings": { "Min Amount of Luck needed to find extra items?": 30, "Min Amount of Extra Items Found in Containers?": 1, "Max Amount of Extra Items Found in Containers?": 5, "Min Amount of Extra Items Found on Ground during Collectable Pickup?": 1, "Max Amount of Extra Items Found on Ground during Collectable Pickup?": 3 }, "Container Loot Tables": [ { "Items": [ { "Shortname": "supply.signal", "SkinID": 3298169317, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab" ], "Eligible Collectables": null, "Min Luck Needed for this Item": 60, "Probability (0-1)": 0.2, "Custom Name": "Medical Drop", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "supply.signal", "SkinID": 3298169069, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab" ], "Eligible Collectables": null, "Min Luck Needed for this Item": 100, "Probability (0-1)": 0.1, "Custom Name": "Cash Drop", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "supply.signal", "SkinID": 3298168943, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab" ], "Eligible Collectables": null, "Min Luck Needed for this Item": 90, "Probability (0-1)": 0.1, "Custom Name": "Ammo Drop", "Minimum Amount": 1, "Maximum Amount": 1 }, { "Shortname": "paper", "SkinID": 3048132587, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_basic.prefab", "assets/bundled/prefabs/radtown/crate_mine.prefab", "assets/bundled/prefabs/radtown/crate_normal.prefab", "assets/bundled/prefabs/radtown/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_food.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_medical.prefab", "assets/bundled/prefabs/radtown/crate_tools.prefab", "assets/bundled/prefabs/radtown/crate_underwater_advanced.prefab", "assets/bundled/prefabs/radtown/crate_underwater_basic.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_ammunition.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_1.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_fuel.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_medical.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_tools.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/misc/supply drop/supply_drop.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab" ], "Eligible Collectables": null, "Min Luck Needed for this Item": 80, "Probability (0-1)": 0.1, "Custom Name": "Cash", "Minimum Amount": 1, "Maximum Amount": 2 }, { "Shortname": "glue", "SkinID": 3047580022, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_basic.prefab", "assets/bundled/prefabs/radtown/crate_mine.prefab", "assets/bundled/prefabs/radtown/crate_normal.prefab", "assets/bundled/prefabs/radtown/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_food.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_medical.prefab", "assets/bundled/prefabs/radtown/crate_tools.prefab", "assets/bundled/prefabs/radtown/crate_underwater_advanced.prefab", "assets/bundled/prefabs/radtown/crate_underwater_basic.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_ammunition.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_1.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_fuel.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_medical.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_tools.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/misc/supply drop/supply_drop.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab" ], "Eligible Collectables": [ null ], "Min Luck Needed for this Item": 30, "Probability (0-1)": 0.14, "Custom Name": "Coins", "Minimum Amount": 1, "Maximum Amount": 6 }, { "Shortname": "blood", "SkinID": 3047576938, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_basic.prefab", "assets/bundled/prefabs/radtown/crate_mine.prefab", "assets/bundled/prefabs/radtown/crate_normal.prefab", "assets/bundled/prefabs/radtown/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_food.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_medical.prefab", "assets/bundled/prefabs/radtown/crate_tools.prefab", "assets/bundled/prefabs/radtown/crate_underwater_advanced.prefab", "assets/bundled/prefabs/radtown/crate_underwater_basic.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_ammunition.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_1.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_fuel.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_medical.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_tools.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/misc/supply drop/supply_drop.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab" ], "Eligible Collectables": [ null ], "Min Luck Needed for this Item": 30, "Probability (0-1)": 0.2, "Custom Name": "Pelt", "Minimum Amount": 2, "Maximum Amount": 5 }, { "Shortname": "bleach", "SkinID": 3027539724, "Eligible Loot Containers": [ "assets/bundled/prefabs/radtown/crate_basic.prefab", "assets/bundled/prefabs/radtown/crate_mine.prefab", "assets/bundled/prefabs/radtown/crate_normal.prefab", "assets/bundled/prefabs/radtown/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_food.prefab", "assets/bundled/prefabs/radtown/crate_normal_2_medical.prefab", "assets/bundled/prefabs/radtown/crate_tools.prefab", "assets/bundled/prefabs/radtown/crate_underwater_advanced.prefab", "assets/bundled/prefabs/radtown/crate_underwater_basic.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_ammunition.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_1.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_food_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_fuel.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_medical.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_tools.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/chinooklockedcratecodelocked.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate.prefab", "assets/prefabs/deployable/chinooklockedcrate/codelockedhackablecrate_oilrig.prefab", "assets/prefabs/misc/supply drop/supply_drop.prefab", "assets/prefabs/npc/m2bradley/bradley_crate.prefab", "assets/prefabs/npc/patrol helicopter/heli_crate.prefab" ], "Eligible Collectables": [ null ], "Min Luck Needed for this Item": 60, "Probability (0-1)": 0.2, "Custom Name": "Irradiated Scrap", "Minimum Amount": 1, "Maximum Amount": 3 } ] } ], "Collectable Loot Tables": [ { "Items": [ { "Shortname": "glue", "SkinID": 3047580022, "Eligible Loot Containers": null, "Eligible Collectables": [ "assets/bundled/prefabs/autospawn/collectable/stone/sulfur-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/metal-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/stone-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-black/berry-black-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-blue/berry-blue-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-green/berry-green-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-red/berry-red-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-white/berry-white-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-yellow/berry-yellow-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/hemp/hemp-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-5.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-6.prefab", "assets/bundled/prefabs/autospawn/collectable/corn/corn-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/potato/potato-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/pumpkin/pumpkin-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/wood/wood-collectable.prefab" ], "Min Luck Needed for this Item": 50, "Probability (0-1)": 0.04, "Custom Name": "Coins", "Minimum Amount": 1, "Maximum Amount": 4 }, { "Shortname": "blood", "SkinID": 3047576938, "Eligible Loot Containers": null, "Eligible Collectables": [ "assets/bundled/prefabs/autospawn/collectable/stone/sulfur-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/metal-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/stone-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-black/berry-black-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-blue/berry-blue-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-green/berry-green-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-red/berry-red-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-white/berry-white-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-yellow/berry-yellow-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/hemp/hemp-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-5.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-6.prefab", "assets/bundled/prefabs/autospawn/collectable/corn/corn-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/potato/potato-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/pumpkin/pumpkin-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/wood/wood-collectable.prefab" ], "Min Luck Needed for this Item": 30, "Probability (0-1)": 0.015, "Custom Name": "Pelt", "Minimum Amount": 1, "Maximum Amount": 3 }, { "Shortname": "bleach", "SkinID": 3027539724, "Eligible Loot Containers": null, "Eligible Collectables": [ "assets/bundled/prefabs/autospawn/collectable/stone/sulfur-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/metal-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/stone/stone-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-black/berry-black-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-blue/berry-blue-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-green/berry-green-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-red/berry-red-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-white/berry-white-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/berry-yellow/berry-yellow-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/hemp/hemp-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-5.prefab", "assets/bundled/prefabs/autospawn/collectable/mushrooms/mushroom-cluster-6.prefab", "assets/bundled/prefabs/autospawn/collectable/corn/corn-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/potato/potato-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/pumpkin/pumpkin-collectable.prefab", "assets/bundled/prefabs/autospawn/collectable/wood/wood-collectable.prefab" ], "Min Luck Needed for this Item": 30, "Probability (0-1)": 0.03, "Custom Name": "Irradiated Scrap", "Minimum Amount": 1, "Maximum Amount": 3 } ] } ] }
LANG
{ "MAXLUCK": "[<color=yellow>Luck</color>] You are at the maximum <color=yellow>Luck</color> cap of {0}.", "LUCKGAINED": "[<color=yellow>Luck</color>] You have gained <color=yellow>{0}</color> <color=yellow>Luck</color> for a total of <color=yellow>{1}</color> <color=yellow>Luck</color>.", "LUCKLOST": "[<color=yellow>Luck</color>] You have lost <color=yellow>{0}</color> <color=yellow>Luck</color> on death.", "CHECKLUCK": "[<color=yellow>Luck</color>] Your total <color=yellow>Luck</color> is <color=yellow>{0}</color>." }
-
Cooking
By imthenewguy in Plugins
This plugin extends the vanilla cooking system in rust by adding a number of ingredients and advanced recipes to the game.
The ingredients are obtained from any of the 45+ different sources, from ore nodes, to trees, to collectibles such as hemp and pumpkins.
These ingredients are used to create delicious meals that will provide the player with 1 of the 55 different buffs the plugin has to offer, or your own custom buffs should you wish to create your own using permissions from other plugins.
The plugin comes standard with 47 custom recipes and 11 custom ingredients included. It also utilizes a number of rusts existing items, such as pumpkins, corn, wheat and potatoes.
There are over 47 recipes that come with the default configuration.
Each recipe allows for any number of ingredients to be added (default is up to 4), and any number of the 46 buffs to be added to each meal.
Recipes can be easily added via the config. This allows server owners to get creative by creating their own custom meals and buffs.
The above video showcases how new recipes and ingredients can be easily added to your configuration.
The plugin comes with 11 unique custom ingredients, and also utilizes 16 of the default items in rust.
Ingredients can be easily added to the configuration (see the above video).
All non-default ingredients can be found from 49 different sources including cutting trees, mining nodes, collecting hemp etc.
Each sources drop rate can be customized to suit your server, and the sources for ingredients can be changed incredible easily by simply adjusting a number in the config file.
There are 49 unique sources that ingredients can be obtained from from cutting trees to collecting pumpkins.
The chances for each ingredient drop are based on the interaction with that source.
For example, picking a pumpkin offers 1 chance, as it is 1 interaction to pick a pumpking, while cutting a tree may be 10-20 chances (depending on the tool), as it takes a number of hits to fall a tree (this can be adjusted to be based on 1 chance per tree/node etc via the config).
When a roll is successful, it then rolls through each item type and selects the item based on that items "dropWeight", allowing you to make ingredients more or less common than others on the same drop table.
The Farmers Market is an in-built market that allows players to buy and sell ingredients for scrap, server rewards or economics.
By default, the markets stocks will start at 0, and will only increase as players sell their unwanted ingredients to it.
It can be configured to allow all items, or only custom items to be bought and sold through it, and also allows for a maximum stock to be set (default 100), meaing that it cannot have more than 100 of an item type.
The buy/sell values for each ingredient can be adjusted in the config file (default $10 buy, $5 sell).
Starting quantities can also be set if you do not want the market to start at 0.
The market can be accessed by typing in /market (if config is enabled) or by speaking to an NPC that can be spawned with the plugin (addmarketnpc).
Ingredient: A useful ingredient used to make more complex meals.
Woodcutting_Yield: Increases the amount of wood received by a percentage when cutting trees and logs.
Mining_Yield: Increases the amount of ore received by a percentage when mining any ore type.
Skinning_Yield: Increases the amount of animal products received by a percentage when skinning animals.
Heal_Share: Heals those around you for a percentage of the healing you receive.
Heal: Instantly heals you for a percentage of your maximum health.
Food_Share: Shares your food with nearby players, providing them with a percentage of the calories that you consume.
Metabolism_Overload: Increases your maximum calories and hydration capacity by a percentage.
Comfort: Provides an aura of comfort around you. Each nearby player will receive a percentage comfort.
Water_Breathing: Will allow you to breath underwater for the duration.
Fire_Resist: Reduces the damage taken from all sources of fire/heat by a percentage.
Cold_Resist: Reduces the damage taken from the cold by a percentage.
Explosion_Resist: Reduces the damage taken from explosives by a percentage.
Animal_Resist: Reduces the damage taken from animals by a percentage.
Melee_Resist: Reduces the damage taken from attacks made with a melee weapon by a percentage.
Wounded_Resist: If you would enter the wounded state while this buff is active, you will instead be brought to your feet. Any negative modifiers will be removed.
Spectre: You will become invisible to auto-turrets, flame turrets and shotgun traps for the duration.
Madness: This food will make you sound strange to others.
Wealth: Provides you with a percentage find scrap/economics/points when breaking barrels.
Barrel_Smasher: Provides you with a percentage chance to instantly break a barrel with any amount of damage.
Crafting_Refund: Provides you with a percentage chance to refund components when crafting an item.
Passive_Regen: Will passively regenerate a percentage health each second.
Horse_Stats: Will increase the speed any horse you ride by a percentage.
Fall_Damage_resist: Reduces damage taken from falling by a percentage.
Condition_Loss_Reduction: Reduces the condition loss of all worn and held items by a percentage.
Ingredient_Chance: Increases the chance to obtain cooking ingredients by a percentage.
Upgrade_Refund: Provides you with a percentage chance to receive a free upgrade when upgrading your building blocks.
Research_Refund: Provides you with a percentage chance to receive a scrap refund when using a research bench.
Role_Play: This item provides no buffs as it a Roleplay item.
Anti_Bradley_Radar: Makes you invisible to the Bradley APC.
Fishing_Luck: Provides you with a percentage chance to obtain a random item while fishing.
Farming_Yield: Increases the amount of resources collected by a percentage when harvesting player-grown plants.
Component_Luck: Provides a percentage chance to receive a random component when breaking barrels.
Electronics_Luck: Provides a percentage chance to receive a random electrical item when breaking barrels.
Permission: Used for firing off custom commands such as assigning and removing permissions.
Bleed_Resist: Reduces the damage taken from bleeding by a percentage.
Radiation_Resist: Reduces the damage taken from radiation by a percentage.
Max_Repair: Any item that is repaired while this buff is active, will have its maximum condition reset.
Smelt_On_Mine: Provides you with a percentage chance to receive refined resources instead of ores, when mining sulfur and metal nodes.
Loot_Pickup: Provides you with a percentage chance for all items to be moved directly into your inventory when breaking barrels.
Reviver: Sets a players health to a percentage when bringing them up from the wounded state.
Duplicator: Provides you with a percentage chance to duplicate an item when crafting.
Harvest: Increases the amount of resources collected by a percentage> when harvesting wild entities.
Ingredient_Storage: Stores ingredients.
Extra_Calories: Instantly provides you with a percentage of your maximum calories when consumed.
Extra_Hydration: Instantly provides you with a percentage of your maximum hydration when consumed.
Max_Health: Increases your maximum health by a percentage.
Fishing_Yield: Increases the amount of fish received by a percentage.
Damage_Over_Time: This perk will damage the consumer every second for the set value.
Mining_Hotspot: The player will always hit the hot spot while mining.
Woodcutting_Hotspot: The player will always hit the marker while chopping wood.
Dehydration: Removes hydration when applied.
Damage: Damages the consumer by the value.
Radiation: Gives the consumer radiation equal to the value.
Hunger: Removes calories when applied.
Lifelink: Heals the user for a percentage of damage done.
Default: Default Rust item
AnyTree: Chopping any tree
ArcticTree: Chopping arctic trees
DesertTree: Chopping palm trees
TemperateTree: Chopping temperate trees
TundraTree: Chopping tundra trees
Cactus: Chopping cacti
AnyNode: Mining any node
AnyArcticNode: Mining any arctic nodes
AnyDesertNode: Mining any desert nodes
AnyTemperateNode: Mining any temperate nodes
AnyTundraNode: Mining any tundra nodes
StoneNode: Mining stone nodes
MetalNode: Mining metal nodes
SulfurNode: Mining sulfur nodes
AnyAnimal: Skinning any animal
Deer: Skinning deer
Bear: Skinning bears
Wolf: Skinning wolves
Chicken: Skinning chickens
PolarBear: Skinning polar bears
Shark: Skinning sharks
Boar: Skinning boar
horse: Skinning horses
Fishing: Catching fish
Gut: Gutting fish
Pumpkin: Harvesting pumpkins
Potato: Harvesting potatos
Corn: Harvesting corn
Mushroom: Picking mushrooms
BerryBush: Picking berries
BerryBushBlack: Picking black berries
BerryBushBlue: Picking blue berries
BerryBushGreen: Picking green berries
BerryBushRed: Picking red berries
BerryBushWhite: Picking white berries
BerryBushYellow: Picking yellow berries
Hemp: Harvesting hemp
CollectableSulfur: Collectable sulfur nodes
CollectableStone: Collectable stone nodes
CollectableMetal: Collectable metal nodes
Crafted: Crafted
Foodbox: Food boxes
Excavated: Digging up metal detector sites
Wheat: Picking up wheat
Command: cook or recipemenu
Action: Opens the recipe menu from anywhere.
Permission: cooking.recipemenu.chat
Command: market
Action: Opens the farmers market from anywhere.
Permission: cooking.market.cmd
Command: ibag
Action: Opens the ingredient bag from anywhere.
Permission: cooking.bag.cmd
Command: addmarketnpc
Action: Creates a farmers market NPC
Permission: cooking.admin
Command: removemarketnpc
Action: Removes the targeted farmers market NPC
Permission: cooking.admin
Command: clearingredientbags
Action: Clears the contents of ingredient bags for all players
Permission: cooking.admin
Command: giverecipe <recipe>
Action: Gives the command user the specified recipe card
Permission: cooking.admin
Command: givemeal <target> <meal> <amount>
Action: Gives the specified meal to the target player.
Permission: cooking.admin
Command: giveingredient <target> <ingredient> <amount>
Action: Gives the specified ingredient to the target player.
Permission: cooking.admin
Command: setmarketquantity <ingredient> <amount>
Action: Sets the available market quantity of the specified item.
Permission: cooking.admin
// Recipe menu chat command cooking.recipemenu.chat // Using the cooking menu cooking.use // Admin related cooking comands cooking.admin // Bypass cooking time cooking.instant // Bypass ingredient requirements cooking.free // Removes ability to gather ingredients cooking.nogather // Allows the ingredient bag to be opened via CMD cooking.bag.cmd // Disables drop notifications cooking.disable.notify.drop // Disables Notify notifications cooking.disable.notify.proc // Disables menu sounds cooking.disable.sound // Allows access to the farmers market via CMD cooking.market.cmd // Allows the user to speak to the market NPC cooking.market.npc // Allows the user to gather ingredients cooking.gather // Required to find recipe cards cooking.recipecards
Economics - Used for the farmers market and the Wealth buff type.
ServerRewards - Used for the market and the Wealth buff type.
SkillTree - Will provide xp when creating meals with the Cooking plugin.
bool CanGatherIngredient(BasePlayer player, uint source) Returning a non-null value will prevent players from receiving ingredients from certain drop sources. the source is the networked ID of the entity.
void OnMealCrafted(BasePlayer player, string meal, Dictionary<string, int> ingredients, bool isIngredient) Called after a meal has been created and given to the player.
bool IsCookingMeal(Item item) Useful if you want to see if an item is from the recipe menu.
bool IsHorseBuffed(RidableHorse horse) Used to prevent stacking modifiers if a horse is buffed by the Cooking plugin.
object OnAddRecipeCardToLootContainer(BasePlayer player, LootContainer container) Returning a non-null value will prevent recipe cards from being added to the container.
object OnIngredientBagDrop(BasePlayer player) Returning a non-null value will prevent the bag from dropping.
void OnMealConsumed(BasePlayer player, Item item, int duration) Triggered when a player successfully consumes a meal. No return types.