bs_crafting
crafting queues, stations, cooking, gathering, farming and traps.
Generated from the Lua sources in resources/[beyond]/bs_crafting/. 49 entries. The description column is the comment above the line in the code, so if it’s empty nobody wrote one yet.
Exports
Section titled “Exports”Call with exports.bs_crafting:Name(...) from the same side.
| Name | Side | Where | Description |
|---|---|---|---|
Context | client | client/cl_main.lua:73 | |
OpenContext | client | client/cl_main.lua:72 | bs_recycler and others show their own machine view in the same tab. |
OpenCraft | client | client/cl_main.lua:70 | |
ConfigExt | server | server/sv_admin.lua:59 | |
RecipeFor | server | server/sv_main.lua:635 | Recipe cost that makes an item, for the recycler (first recipe found, by hand preferred). |
Recipes | server | server/sv_main.lua:633 | |
SkillLevel | server | server/sv_main.lua:642 | |
StationDefs | server | server/sv_main.lua:625 | Station defs for bs_building’s RegisterPlaceable. |
Callbacks
Section titled “Callbacks”Server callbacks are called from a client with BSB.Await(name, timeoutMs, ...). Client callbacks are called from the server with BSB.AwaitClient(src, name, timeoutMs, ...).
| Name | Direction | Where | Description |
|---|---|---|---|
crafting:cancel | client -> server | server/sv_main.lua:496 | |
crafting:crops | client -> server | server/sv_world.lua:372 | Crop stages for nearby plots, so clients can draw them. |
crafting:dismantleFinish | client -> server | server/sv_world.lua:156 | |
crafting:dismantleStart | client -> server | server/sv_world.lua:145 | |
crafting:farm | client -> server | server/sv_world.lua:333 | |
crafting:forageFinish | client -> server | server/sv_world.lua:93 | |
crafting:forageStart | client -> server | server/sv_world.lua:82 | |
crafting:hand | client -> server | server/sv_main.lua:441 | |
crafting:nearStations | client -> server | server/sv_main.lua:548 | Stations near the player, for the client’s interaction zones. |
crafting:openStorage | client -> server | server/sv_main.lua:540 | |
crafting:pickupTrap | client -> server | server/sv_world.lua:279 | |
crafting:placeTrap | client -> server | server/sv_world.lua:205 | |
crafting:queue | client -> server | server/sv_main.lua:449 | |
crafting:salvageFinish | client -> server | server/sv_world.lua:116 | |
crafting:salvageStart | client -> server | server/sv_world.lua:108 | |
crafting:skinFinish | client -> server | server/sv_world.lua:63 | |
crafting:skinStart | client -> server | server/sv_world.lua:51 | |
crafting:state | client -> server | server/sv_main.lua:397 | |
crafting:take | client -> server | server/sv_main.lua:527 |
Events
Section titled “Events”“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).
| Name | Side | Type | Where | Description |
|---|---|---|---|---|
bs:building:pieceRemoved | server | local | server/sv_main.lua:564 | A station that is torn down gives its queue back to whoever queued it. |
bs:crafting:alarm | client | net | client/cl_world.lua:220 | |
bs:crafting:farmChanged | client | net | client/cl_world.lua:274 | |
bs:crafting:forage | client | local | client/cl_world.lua:63 | |
bs:crafting:openStation | client | net | client/cl_main.lua:168 | |
bs:crafting:openStorage | client | net | client/cl_main.lua:179 | |
bs:crafting:pickupTrap | client | local | client/cl_world.lua:135 | |
bs:crafting:placeTrap | client | net | client/cl_world.lua:144 | |
bs:crafting:salvage | client | local | client/cl_world.lua:70 | |
bs:crafting:skinAnimal | client | local | client/cl_world.lua:45 | |
bs:crafting:skinZombie | client | local | client/cl_world.lua:31 | Zombie corpses: bs_zombies adds this option next to “Search body” with args.zid. |
bs:crafting:stewBonus | client | net | client/cl_main.lua:223 | |
bs:crafting:trapHit | server | net | server/sv_world.lua:247 | A client saw something step on a trap. |
bs:crafting:trapped | client | net | client/cl_world.lua:197 | |
bs:crafting:traps | client | net | client/cl_world.lua:121 | |
bs:crafting:trapSnap | client | net | client/cl_world.lua:212 | |
bs:crafting:useItem | server | local | server/sv_world.lua:173 | |
bs:hook:player:spawned | server | local | server/sv_main.lua:594 | Pending refunds are paid out on spawn. |
bs:ui:closed | client | local | client/cl_main.lua:75 | |
onResourceStart | server | local | server/sv_admin.lua:96 | |
onResourceStop | client | local | client/cl_main.lua:217 | |
playerDropped | server | local | server/sv_main.lua:580 | Hand jobs are refunded on logout so nothing is lost mid-craft. |
Commands
Section titled “Commands”None.
bs19.org · Privacy · Terms · Cookie settings
Cookies and outside content
The site only needs two essential cookies to keep you logged in and protect forms. Videos and streams from YouTube and Twitch load from their servers, which can set their own cookies, so they stay off until you say yes. Nothing is pre-ticked and you can change your mind any time with "Cookie settings" at the bottom of every page. Details.
Questions about the server, the framework or the site? A real person reads this, usually within a day.