depends on
About Crafts
Crafting system that allows you to create items, cars, vehicles, recyclers, etc.
Commands
- craft open interface
- crafts.setwb [categories: cat1 cat2 ...] set new custom workbench
Permissions
You can set permission in config, for example:
"Permission (ex: crafts.use)": "crafts.use",
crafts.setworkbench - allows you to use the "crafts.setwb" command (set custom workbenches)
Craft Types
- Command
- Vehicle
- Item
- Recycler
- ModularCar
How to install a custom workbench
1. Spawn the workbench (for example, in RustEdit or a plugin)
2. In the game, go to him and use the command "crafts.setwb" and specify the necessary categories. Example: /crafts.setwb Misc
3. Go to config (oxide/config/Crafts.json) and configure this workbench (use SafeZone, workbench level, etc.)
VIDEO
Config
Quote{ "Commands": [ "craft", "crafts" ], "Close UI when reusing a command?": false, "Work with Notify?": true, "Work with LangAPI?": true, "Permission (ex: crafts.use)": "", "Categories": [ { "Enabled": true, "Permission (ex: crafts.vip)": "", "Title": "Vehicles", "Background color": { "HEX": "#161617", "Opacity (0 - 100)": 100.0 }, "Items": [ { "ID": 1794474740, "Enabled": true, "Image": "https://i.imgur.com/YXjADeE.png", "Title": "Minicopter", "Description": "Fast air transport", "Command (to give an item)": "givecopter", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Minicopter", "ShortName": "electric.flasherlight", "Amount": 1, "Skin": 2080145158, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/content/vehicles/minicopter/minicopter.entity.prefab", "Command on give": "", "Workbench Level": 1, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": 1670962382, "Enabled": true, "Image": "https://i.imgur.com/dmWQOm6.png", "Title": "Row Boat", "Description": "Slow water transport", "Command (to give an item)": "giverowboat", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Row Boat", "ShortName": "coffin.storage", "Amount": 1, "Skin": 2080150023, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/content/vehicles/boats/rowboat/rowboat.prefab", "Command on give": "", "Workbench Level": 2, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": -2089515212, "Enabled": true, "Image": "https://i.imgur.com/CgpVw2j.png", "Title": "RHIB", "Description": "Slow water transport", "Command (to give an item)": "giverhibboat", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "RHIB", "ShortName": "electric.sirenlight", "Amount": 1, "Skin": 2080150770, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/content/vehicles/boats/rhib/rhib.prefab", "Command on give": "", "Workbench Level": 3, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": 677437242, "Enabled": true, "Image": "https://i.imgur.com/cp2Xx2A.png", "Title": "Hot Air Balloon", "Description": "Slow air transport", "Command (to give an item)": "givehotair", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Hot Air Balloon", "ShortName": "box.repair.bench", "Amount": 1, "Skin": 2080152635, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/prefabs/deployable/hot air balloon/hotairballoon.prefab", "Command on give": "", "Workbench Level": 3, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": 1858341600, "Enabled": true, "Image": "https://i.imgur.com/7JZE0Lr.png", "Title": "Transport Helicopter", "Description": "Fast air transport", "Command (to give an item)": "givescrapheli", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Transport Helicopter", "ShortName": "electric.flasherlight", "Amount": 1, "Skin": 2080154394, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/content/vehicles/scrap heli carrier/scraptransporthelicopter.prefab", "Command on give": "", "Workbench Level": 3, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": 1268761946, "Enabled": true, "Image": "https://i.imgur.com/xj0N3lI.png", "Title": "Snowmobile", "Description": "Conquers snow biomes", "Command (to give an item)": "givesnowmobile", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Snowmobile", "ShortName": "electric.flasherlight", "Amount": 1, "Skin": 2747934628, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/content/vehicles/snowmobiles/snowmobile.prefab", "Command on give": "", "Workbench Level": 2, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": false, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 } ] }, { "Enabled": true, "Permission (ex: crafts.vip)": "", "Title": "Cars", "Background color": { "HEX": "#161617", "Opacity (0 - 100)": 100.0 }, "Items": [ { "ID": -1623414015, "Enabled": true, "Image": "https://i.imgur.com/eioxlvK.png", "Title": "Sedan", "Description": "5KM/H", "Command (to give an item)": "givesedan", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Car", "ShortName": "woodcross", "Amount": 1, "Skin": 2080151780, "Type (Item/Command/Vehicle/Recycler)": "Vehicle", "Prefab": "assets/content/vehicles/sedan_a/sedantest.entity.prefab", "Command on give": "", "Workbench Level": 2, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": -37226745, "Enabled": true, "Image": "https://i.imgur.com/z7X5D5V.png", "Title": "Ferrari", "Description": "25KM/H", "Command (to give an item)": "givemod1", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Car", "ShortName": "electric.flasherlight", "Amount": 1, "Skin": 2244308598, "Type (Item/Command/Vehicle/Recycler)": "ModularCar", "Prefab": "", "Command on give": "", "Workbench Level": 2, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": { "CodeLock": true, "KeyLock": false, "Engine Parts Tier": 2, "Fresh Water Amount": 0, "Fuel Amount": 140, "Modules": [ "vehicle.1mod.engine", "vehicle.1mod.cockpit.armored", "vehicle.1mod.cockpit.armored" ] }, "Cooldown": 0.0 } ] }, { "Enabled": true, "Permission (ex: crafts.vip)": "", "Title": "Misc", "Background color": { "HEX": "#161617", "Opacity (0 - 100)": 100.0 }, "Items": [ { "ID": -2012027653, "Enabled": true, "Image": "https://i.imgur.com/LLB2AVi.png", "Title": "Home Recycler", "Description": "", "Command (to give an item)": "giverecycler", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "Home Recycler", "ShortName": "research.table", "Amount": 1, "Skin": 2186833264, "Type (Item/Command/Vehicle/Recycler)": "Recycler", "Prefab": "assets/bundled/prefabs/static/recycler_static.prefab", "Command on give": "", "Workbench Level": 2, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 }, { "ID": -1632386538, "Enabled": true, "Image": "https://i.imgur.com/mw1T17x.png", "Title": "", "Description": "", "Command (to give an item)": "givelr300", "Permission (ex: crafts.vip)": "crafts.all", "Display Name": "", "ShortName": "rifle.lr300", "Amount": 1, "Skin": 0, "Type (Item/Command/Vehicle/Recycler)": "Item", "Prefab": "", "Command on give": "", "Workbench Level": 0, "Distance Check": true, "Distance": 1.5, "Place the ground": true, "Place the structure": true, "Items For Craft": [ { "Image": "", "ShortName": "gears", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "roadsigns", "Amount": 5, "Skin": 0, "Title (empty - default)": null }, { "Image": "", "ShortName": "metal.fragments", "Amount": 2000, "Skin": 0, "Title (empty - default)": null } ], "For Modular Car": null, "Cooldown": 0.0 } ] } ], "Workbenches Setting": { "None": { "HEX": "#FFFFFF", "Opacity (0 - 100)": 0.0 }, "One": { "HEX": "#74884A", "Opacity (0 - 100)": 100.0 }, "Two": { "HEX": "#B19F56", "Opacity (0 - 100)": 100.0 }, "Three": { "HEX": "#B43D3D", "Opacity (0 - 100)": 100.0 } }, "Recycler Settings": { "Recycling speed": 5.0, "Use DDraw? (showing damage on the recycler)": true, "DDraw Radius": 7.5, "DDraw Text": "<size=19>RECYCLER</size>\n<size=15>{0}/{1}</size>", "DDraw Color": "#C5D0E6", "DDraw Delay (sec)": 0.75, "Enabled pickup?": true, "Only owner can pickup": true, "Check ability to build for pickup": true, "BaseProtection Settings": [ 0.9, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.9, 0.5, 0.5, 0.0, 1.0, 1.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0 ], "Damage Scale": 0.5, "Destroy Settings": { "Check ground for recyclers? (destroy on missng)": true, "Give item on destroy?": true, "Effects on destroy": [ "assets/bundled/prefabs/fx/item_break.prefab", "assets/bundled/prefabs/fx/impacts/stab/rock/stab_rock_01.prefab" ] } }, "Car Settings": { "Active Items (in hand)": { "Forbid to hold all items": true, "List of blocked items (shortname)": [ "explosive.timed", "rocket.launcher", "surveycharge", "explosive.satchel" ] }, "DDraw Radius": 7.5, "DDraw Text": "<size=15>{0}/{1}</size>", "DDraw Color": "#C5D0E6", "DDraw Delay (sec)": 0.75 }, "Custom Workbench Stations (Entity ID - settings)": { "1055032": { "Categories (Titles) [* - all]": [ "Misc" ], "Use safe zone": true, "Safe Zone Radius": 5.0, "WorkBench Level": { "crafts.default": 1, "crafts.premium": 3 } } }, "UI Settings": { "Category Width": 90.0, "Category Height": 25.0, "Category Margin": 5.0, "Craft Width": 125.0, "Craft Height": 125.0, "Craft Margin": 10.0, "Craft Y Indent": -115.0, "Craft Amount On String": 5, "Categories Amount On Page": 7, "Craft Strings": 2, "Page Size": 25.0, "Page Selected Size": 40.0, "Pages Margin": 5.0, "Item Width": 130.0, "Item Margin": 40.0, "Color 1": { "HEX": "#0E0E10", "Opacity (0 - 100)": 100.0 }, "Color 2": { "HEX": "#161617", "Opacity (0 - 100)": 100.0 }, "Color 3": { "HEX": "#FFFFFF", "Opacity (0 - 100)": 100.0 }, "Color 4": { "HEX": "#4B68FF", "Opacity (0 - 100)": 100.0 }, "Color 5": { "HEX": "#74884A", "Opacity (0 - 100)": 100.0 }, "Color 6": { "HEX": "#CD4632", "Opacity (0 - 100)": 100.0 }, "Color 7": { "HEX": "#595651", "Opacity (0 - 100)": 100.0 }, "Color 8": { "HEX": "#4B68FF", "Opacity (0 - 100)": 70.0 }, "Color 9": { "HEX": "#0E0E10", "Opacity (0 - 100)": 98.0 }, "Color 10": { "HEX": "#4B68FF", "Opacity (0 - 100)": 50.0 }, "Color 11": { "HEX": "#FF4B4B", "Opacity (0 - 100)": 100.0 }, "Background Image": "", "Close after craft?": true }, "Version": { "Major": 2, "Minor": 8, "Patch": 0 } }