Configuration
BeeKeeping settings live in /setupbeekeeping.
Staff change settings with /setupbeekeeping. Press Save and the change applies at once. A few item settings need a resource restart, see the end of Troubleshooting.
Pages
The rail on the left groups the pages. Pages marked Advanced only show once you turn on Advanced settings in the rail.
Hives & places
| Page | What it controls |
|---|---|
| Hives | Who can open a hive (owner only, or only the allowlist), the map blip and pin color for a player's own hives, Hive types (label, id, closed and open model, item), Hives per player (0 means no limit), hive draw distance, the Honey minigame (the built-in slide, none, ox_lib skill check, or an installed third-party one under Advanced), and the Debug prints switch |
| Placement (Advanced) | Furthest a hive can be set, time to place, gap between hives, and the allowed ground materials |
| Wild swarms | Spawn mode (Stationary, Randomized or Off), catches per swarm and per player, how long a cleared swarm stays gone, stings (damage range, time between stings, health floor, no stings in vehicles, animation, camera shake), swarm map blips, Who can see swarms (identifiers or ACE groups, blank for everyone), and the swarm places with their sting areas |
| Shops | Keeper stands (Ped, Prop or Zone), what each keeper sells (item, price, stock), honey sell prices, wax price, and the shop rules below |
| Honey zones | Default honey, the honey variants (one per zone name), and Zone priority. Outside every zone a hive makes the default honey. Zones are drawn on the built-in map |
| Separator | On or off, honeycomb item, honey per frame, jars and fills per batch, seconds per fill, combs per batch, turns to spin, collect time, Only the loader collects, and the World spots where a separator exists. Players cannot place or pick one up |
| Blocked zones | Map areas where a hive cannot be placed |
Colony
| Page | What it controls |
|---|---|
| Bee trap | Trap item, time to set, distance to the swarm, traps per player, Owner only, Use up the trap, time to complete, check and collect times, auto clearing, stings without a suit, and the rewards (chance of a queen, worker range) |
| Beekeeper suit | Suit item, stops stings, Take the item while worn, Remove on death, time to dress, and the male and female outfits. Use what I am wearing copies your current clothes into the outfit |
| Props and effects (Advanced) | The smoker and honeycomb props the player holds, and the particle effects on hives and swarms |
| Production (Advanced) | Minutes per production tick, most honey, wax and workers a hive holds, and worker loss. The page shows how long a full colony takes to fill a hive |
Server
| Page | What it controls |
|---|---|
| Genetics | Strain guide item, default strain, queen health and how fast it drops, and Queen breeding (workers needed, queen health needed, honey and wax eaten, chance to keep the mother's strain, progress per tick) |
| Saving & cleanup | Save hives, Save every, and the inactive hive cleanup with its Days away before removal |
| VIP hives | Extra slots, and Who counts as VIP (identifiers, ACE groups, or a Discord role id with Badger_Discord_API running) |
| Logs | Turn logging on, then pick the Destination: the ox_lib logger or a Discord webhook. A webhook address is hidden once saved |
Staff tools are covered on Commands.
Shop rules
On the Shops page: Keepers sell supplies, Keepers buy honey and wax, Pay into (Bank or Cash, used for buying and for paying players), Wax pays, Use a menu instead of an inventory shop (turn it on if your inventory cannot register a shop at runtime), and Keeper draw distance. Stock is kept per keeper.
Logs
With logging on, the script writes a line for a hive placed, a purchase, a sale, a trap set, a trap collected, and a separator loaded or collected. The ox_lib logger and Discord webhook destinations are in the panel. A third destination, custom, calls the SendBeeLog function in resource/open/server/custom.lua.
Setup panel
- Guided setup. The first time the panel opens it offers a short guide through Access, Swarms, Shops, Honey, Bee trap, Suit, Genetics, Saving, VIP and Logs. You can leave it and use the full page list at any time.
- Presets. The start screen can begin from a preset: Relaxed, Standard roleplay or Hardcore. A preset only changes hive pace, sting damage, queen rarity, queen wear and hives per player. It never touches items, models, zones, keepers or access, and you review every change before saving.
- Saving. Nothing is stored until you press Save. Review changes lists what will change. Reset puts every setting back to the factory values, and the panel offers Restore previous afterwards.
- Applying. A save applies right away with no restart, except the settings listed under Troubleshooting.
Export and import settings
Turn on Advanced settings in the left rail of the panel, then press Export or import. It has two tabs, Settings and Hives. Export fills the box with every setting as JSON. Press Copy and paste it into a support ticket or keep it as a backup. The export starts with the BeeKeeping version, the Newb_Bridge version, and the framework, inventory, target and other providers Newb_Bridge is using, so support can see your setup at a glance. Discord webhooks are never included.
To load a setup, paste an export into the box and press Import. The settings are checked the same way as a normal save, then saved and applied. An import only accepts an export made by BeeKeeping. If the export was made by a different version, the panel shows both versions and what will happen (settings the export lacks use this server's defaults, settings this version does not have are dropped), and the button changes to Import anyway so you have to confirm. A webhook you already saved on this server is kept.
The Hives tab exports every hive that exists right now: its id, position, owner, who has access, and what is inside (honey, wax, queen and colony state). Paste an export on another server, or after a wipe, and press Import to add those hives. A hive whose id already exists is skipped unless you tick Replace hives that already exist. The whole file is checked first, so a bad entry stops the import without adding anything.
Saving
Open Server > Saving & cleanup. Save hives has two modes:
- On a timer as well (the default for fresh installs): every 10 minutes by default (the Save every slider, 1 to 1440 minutes) only the hives that changed are written. Hives also save when the resource stops, when the server shuts down, and 60 seconds before a scheduled txAdmin restart. A crash loses at most that many minutes.
- When the resource stops: hives are written only when the resource stops, the server shuts down, or a scheduled restart is 60 seconds away. There is no timed SQL. A crash loses every change since boot.
Servers that already saved a different mode keep it. Change it on that page.
Debug
The Debug prints switch is on the Hives page. It is off by default and applies right away. With it on, the console prints extra lines and /staffdebug works. Leave it off on a live server.
Zones and locations
Zone and location editing uses the built-in map in the panel. Place the points, then save.
Player flow
- Use a hive item. A preview outline appears: walk to it, press E to build or X to cancel. The ground has to be allowed, and the spot has to sit outside blocked zones, within the placement distance, far enough from the next hive, and under the personal cap. The server re-checks the blocked zones, the distance, the spacing and the cap.
- Smoke the hive to open it. The hive then stays calm for a while, kept in memory, so a server restart makes every hive need smoking once more. Add workers and a queen. Production ticks only while the hive is closed, the queen is alive, workers are above zero, and honey and wax are not already full.
- Open the hive to extract. The slide minigame clears cells until 2 percent or fewer remain, or times out at 120 seconds. Fail or timeout stings unless the
OnMinigameFailedhook returns true. - Honey type follows the region the hive sits in. With the separator on, the hive gives
honeycombframes, each carrying its own honey amount up to the Honey per frame setting. At a separator the player drags the frames from a tray onto the drum, then holds the crank handle and circles the mouse to spin it. The same view carries on to the faucet, where they move a jar under the stream until it is full. Each point of honey becomes one jar. By default only the player who loaded the drum (or staff) can collect it. - Wild swarms sting unless the suit is on. Set a
bee_trapinside the sting area and leave it. When the time is up (20 minutes by default) the swarm is gone and the player collects the workers. A queen is about a 10 percent catch by default. With the default Owner only on, only the player who set the trap can check, collect or pick it up. Checking or collecting without the suit gets you stung. - Sell honey and wax at a keeper. The keeper has to be within reach, and each keeper has its own stock list.
Strains
Queens carry a strain that changes honey, wax, lifespan, and how they do in each region. Shipped strains include Balanced Stock, Prolific Forager, Wax Weaver, the regional blooms (Desert, Forest and Coastal), Hardy Stock, Docile Matriarch, Urban Scout, Iron Comb, Storm Chaser, Wild Feral, plus Amber Legacy and Golden Royal. Using a queen_bee reveals her strain, and beekeeping_guide opens the strain guide book. New strains from the builder are stored in the database, and the builder's Admin only option keeps a strain out of wild catches so it can only be granted.
Open files
These stay editable. They hold code, not the panel data. A change here needs a resource restart.
| Function | File | Role |
|---|---|---|
| Staff check | open/server/custom.lua | Who can open /setupbeekeeping and use the staff tools |
| VIP check | open/server/custom.lua | Return true to grant VIP slots |
SendBeeLog(src, action, message) | open/server/custom.lua | Used when the log destination is custom |
RollQueenTrait(src, zone) | open/server/custom.lua | Return a trait id, or '' for the default roll |
ResolveHoneyRewardItem(...) | open/server/custom.lua | Return another item name, or false to give nothing |
OnTrapCatch(src, swarmId, context) | open/server/custom.lua | After a successful swarm catch |
OnMinigameFailed() | open/client/custom.lua | Return true to skip the sting |
OnAttachHoneycomb() / OnAttachHiveSmoker() | open/client/custom.lua | Return true to skip the built-in prop |
ApplyBeekeeperSuit / RestoreBeekeeperSuit | open/client/custom.lua | Your own clothing. Return true when you handled it |
Honey minigame backends live in resource/open/client/minigames.lua.
SQL
No file to import. On start the resource creates and migrates:
mrnewb_beekeepingmrnewb_beekeeping_separator_statemrnewb_beekeeping_trapsMrNewb__Settings(shared by all MrNewb resources; holds the saved panel settings and custom strains)
Separators have no table of their own. Their spots are saved with the panel settings, and mrnewb_beekeeping_separator_state only holds what is currently in a drum. A mrnewb_beekeeping_separators table left over from an older version is unused and safe to drop.
Older hive rows in mrnewb_beekeeping are converted automatically. Restart once if the console says it converted.
Item names are set in the panel (hive types, separator, trap, suit, strain guide, honey variants). If you rename one, register that name, and add a matching image. Renaming a hive, trap, suit or strain guide item also needs a resource restart, because those use handlers are only registered when it starts.
