This plugin is currently marked as broken and unavailable for download
Customize crafting using repair benches or research tables

Supported Games
GameServerKingsGameServerKings

BenchCraft allows repair benches and/or research tables to be used as "workbenches", allowing configurable crafting speed bonuses, item restrictions, and even penalties if crafting without one.

Boost/penalty calculations are performed in semi-realtime. During crafting, your crafting timer will change based on your proximity to any valid workbenches (and any bonuses or penalties). This forces players to remain in proximity of a workbench in order to retain the crafting bonus!

[B][U]Instacraft servers now supported![/U][/B]The boost/penalties now work on instacraft servers as well, but apply to the amount of items crafted instead of the time (obviously). If the boost is 0.25, then each crafting completion near a workbench has a 25% chance to produce [B]2x[/B] items. Likewise, if a penalty is 0.25, then each crafting completion away from a workbench has a 25% chance to produce [B]zero[/B] items. These will be more configurable eventually, but for now this means the average boost/penalty will provide approximately their percentage more/less items from crafting.

Also, the GUI has been updated to allow instacraft boost/penalty messages, which will pop up briefly to display if a boost or penalty was applied.

[I][B]Please note:[/B] The instacraft server setting is used to determine instacraft status, and is checked on plugin startup. Be sure to reload BenchCraft if you've changed your server craft setting![/I]

[B][U]Configuration:[/U][/B][I]baseRate[/I]: Base crafting rate - 0.5 = 50% (1/2 crafting time), 1.0 = 100% (normal crafting time), 2.0 = 200% (2x crafting time), etc.[I]boost[/I]: Boost when using a workbench - [B][I]now zero based:[/I][/B] 0.0 = 0% boost (normal crafting speed), 1.0 = 100% boost (2x crafting speed), etc.[I]penalty[/I]: Penalty for not using a workbench - [I][B]now zero base:[/B][/I] 0.0 = 0% penalty (normal crafting speed), 0.5 = 50% penalty (1/2 crafting speed) - values approaching 1.0 are discouraged, and values equal to or above 1.0 will be ignored![I]proximity[/I]: Distance from a workbench in which a player is counted as "using" it[I]useRepairBench[/I]: Use RepairBench as a "workbench" ([I]true[/I] by default[I]useResearchTable[/I]: Use ResearchTable as a "workbench" ([I]false[/I] by default)[I]useItemList[/I]: Allow specific item lookups from [I]item[/I] list (if configured)[I]useZLevels[/I]: Use ZLevelsRemastered to determine base crafting time (instead of [I]baseRate[/I])[I]instantBoost[/I]: Changes boost to instacraft items instead of scaling craft time percentage (penalty still scales time though)

Additionally, there is an [I]items[/I] list which can be configured, which allows specific items to be restricted even further. [I]Entries in this list are keyed by item shortname[/I]. Entries in the item list have configuration entries for the following:

[I]baseRate[/I]: Same as above but only applied to the specified item[I]boost[/I]: Same as above but only applied to the specified item[I]penalty[/I]: Same as above but only applied to the specified item[I]requireBench[/I]: Require being in proximity of a bench in order to craft - item crafting is cancelled if you wander out of proximity

[B]Item configuration entries are now optional[/B], so that you can define which default options to override and not clutter up your config. This means (for example) that if an item does not define a value for [I]boost[/I] then the default [I]boost[/I] value will be used.

[B][U]GUI Implementation:[/U][/B]A simple GUI overlay has been implemented to identify that the player is currently affected by either a boost or a penalty. The GUI displays the current boost/penalty as "Boost ###%" or "Penalty -###%" (configurable via lang - /oxide/lang/). There are configurable parameters to further tweak the message, size, colors, etc. This update is checked at the same rate the proximity is checked (every 0.5 seconds), so there should be trivial delay between proximity change and the overlay update.

[I]GUI Configuration:fadeIn[/I]: Fade-in time[I]fadeOut[/I]: Fade-out time[I]fontSize[/I]: Font size[I]boostTextColor[/I]: Color of "Boost ###%" text[I]penaltyTextColor[/I]: Color of "Penalty -###%" text[I]lockIconColor[/I]: Color of the lock icon[I]anchorMin[/I]: UI min (lower left coordinates)[I]anchorMax[/I]: UI max (upper right coordinates)[I]lockAnchorMin[/I]: Lock icon UI min (lower left coordinates)[I]lockAnchorMax[/I]: Lock icon UI max (upper right coordinates)

[B][U]Example Configuration:[/U][/B][CODE=csharp]{"config": {"baseRate": 1.0, // crafting rate modifier"boost": 1.0, // boost (% of crafting speed) for all items"proximity": 1.0, // max distance from bench to count as "using""penalty": 0.5, // penalty (% of crafting time) for all items"useRepairBench": true, // use RepairBench as workbench"useResearchTable": false, // use ResearchTable as workbench"useItemList": true, // flag to use item list"useZLevels": false // use ZLevels if installed},"items": {"lock.code": { // item shortname"boost": 1.0, // boost (% of crafting speed)"requireBench": true // require bench in proximity to craft// NOTE: since "penalty" and "baseRate" are not// defined, the default values (in "config") are used},"ui": {// GUI configuration here}}}[/CODE]

[B][U]User Permissions:[/U][/B][I]benchcraft.ignore[/I] - Skips proximity checks, boosts, and penalties[I]benchcraft.craftanywhere[/I] - Skip proximity checks[I]benchcraft.noboost[/I] - Skip boost checks (No boosts applied)[I]benchcraft.nopenalty[/I] - Skip penalty checks (No penalties applied)

This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.

17.7K downloads
19 watchers

importedbroken