Skip to content

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.

Call with exports.bs_crafting:Name(...) from the same side.

NameSideWhereDescription
Contextclientclient/cl_main.lua:73
OpenContextclientclient/cl_main.lua:72bs_recycler and others show their own machine view in the same tab.
OpenCraftclientclient/cl_main.lua:70
ConfigExtserverserver/sv_admin.lua:59
RecipeForserverserver/sv_main.lua:635Recipe cost that makes an item, for the recycler (first recipe found, by hand preferred).
Recipesserverserver/sv_main.lua:633
SkillLevelserverserver/sv_main.lua:642
StationDefsserverserver/sv_main.lua:625Station defs for bs_building’s RegisterPlaceable.

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, ...).

NameDirectionWhereDescription
crafting:cancelclient -> serverserver/sv_main.lua:496
crafting:cropsclient -> serverserver/sv_world.lua:372Crop stages for nearby plots, so clients can draw them.
crafting:dismantleFinishclient -> serverserver/sv_world.lua:156
crafting:dismantleStartclient -> serverserver/sv_world.lua:145
crafting:farmclient -> serverserver/sv_world.lua:333
crafting:forageFinishclient -> serverserver/sv_world.lua:93
crafting:forageStartclient -> serverserver/sv_world.lua:82
crafting:handclient -> serverserver/sv_main.lua:441
crafting:nearStationsclient -> serverserver/sv_main.lua:548Stations near the player, for the client’s interaction zones.
crafting:openStorageclient -> serverserver/sv_main.lua:540
crafting:pickupTrapclient -> serverserver/sv_world.lua:279
crafting:placeTrapclient -> serverserver/sv_world.lua:205
crafting:queueclient -> serverserver/sv_main.lua:449
crafting:salvageFinishclient -> serverserver/sv_world.lua:116
crafting:salvageStartclient -> serverserver/sv_world.lua:108
crafting:skinFinishclient -> serverserver/sv_world.lua:63
crafting:skinStartclient -> serverserver/sv_world.lua:51
crafting:stateclient -> serverserver/sv_main.lua:397
crafting:takeclient -> serverserver/sv_main.lua:527

“net” means the handler is registered with RegisterNetEvent, so the other side can trigger it. “local” is AddEventHandler only (same side, or game events).

NameSideTypeWhereDescription
bs:building:pieceRemovedserverlocalserver/sv_main.lua:564A station that is torn down gives its queue back to whoever queued it.
bs:crafting:alarmclientnetclient/cl_world.lua:220
bs:crafting:farmChangedclientnetclient/cl_world.lua:274
bs:crafting:forageclientlocalclient/cl_world.lua:63
bs:crafting:openStationclientnetclient/cl_main.lua:168
bs:crafting:openStorageclientnetclient/cl_main.lua:179
bs:crafting:pickupTrapclientlocalclient/cl_world.lua:135
bs:crafting:placeTrapclientnetclient/cl_world.lua:144
bs:crafting:salvageclientlocalclient/cl_world.lua:70
bs:crafting:skinAnimalclientlocalclient/cl_world.lua:45
bs:crafting:skinZombieclientlocalclient/cl_world.lua:31Zombie corpses: bs_zombies adds this option next to “Search body” with args.zid.
bs:crafting:stewBonusclientnetclient/cl_main.lua:223
bs:crafting:trapHitservernetserver/sv_world.lua:247A client saw something step on a trap.
bs:crafting:trappedclientnetclient/cl_world.lua:197
bs:crafting:trapsclientnetclient/cl_world.lua:121
bs:crafting:trapSnapclientnetclient/cl_world.lua:212
bs:crafting:useItemserverlocalserver/sv_world.lua:173
bs:hook:player:spawnedserverlocalserver/sv_main.lua:594Pending refunds are paid out on spawn.
bs:ui:closedclientlocalclient/cl_main.lua:75
onResourceStartserverlocalserver/sv_admin.lua:96
onResourceStopclientlocalclient/cl_main.lua:217
playerDroppedserverlocalserver/sv_main.lua:580Hand jobs are refunded on logout so nothing is lost mid-craft.

None.