Jump to content

2 Screenshots

About Craft Panel

I present to you Craft Panel, an elegant and simple custom craft panel.

 

Before starting:

This mod works mainly with the help of other mods. Basically, the operation consists of configuring the necessary ingredients to obtain an item. Either by command of a third-party mod or a game item.

Video

 

The interface is based on three main blocks:

  • List of items to craft. Currently, the maximum be recommended that it be 16 items available. Since there is currently no implemented page (it will come in the future).
  • Central information panel. You can write a more complete title, assign a header image, set the Workbench requirement (whether it needs it or not), and set a description.
  • Ingredients panel. Basically what players will need to craft each item.

 

Complete Configuration:

  • From the configuration, you can adjust the name of the Panel, as well as the colors of the buttons and text.
  • Effect Sounds. We have 3 sounds for Crafting time, page change, etc. You can choose to disable all sounds or manually change it to another.
  • Add new Items easily with the example structure, just duplicate and customize. (Requires a bit of knowledge in mod setup.)
  • Discount for VIPS. Set a permission for VIPS to get a discount that you set.

 

Permissions and Command:

As a general rule, for players to have access to / craft, you must set the following permission: craftpanel.use

Regardless of that general permission, you must assign the user permissions for each item. Example:

  • craftpanel.rhib.use
  • craftpanel.boat.use
  • craftpanel.supercard.use
  • ...

 

Future improvements:

  • Pagination of Items. (Ready)
  • Make the interface modular, so that only one part is recharged. (Ready)
  • Add Crafting time?
  • Leave me your suggestion for improvement.

Finally, as a detail, currently this mod does not use Data file, perhaps in the future with some new feature this will be implemented.

 

Config Example:

{
  "Custom": {
    "Title": "Craft Panel",
    "ID Item Default": 1,
    "Show even if you don't have permissions (you won't be able to craft)": true,
    "Show button when opening Workbench": true,
    "Sound Effects": true,
    "Sound Prefab 1": "assets/prefabs/tools/keycard/effects/swipe.prefab",
    "Sound Prefab 2": "assets/bundled/prefabs/fx/build/promote_toptier.prefab",
    "Sound Prefab 3": "assets/prefabs/misc/xmas/presents/effects/wrap.prefab",
    "Permission Use /craft": "craftpanel.use",
    "Permission to show the Button in the Workbench": "craftpanel.btnworkbench",
    "Color Title": "1.00 1.00 1.00 0.43",
    "Color Button List": "0.3 0.40 0.3 0.60",
    "Color Title Item": "0.2 0.30 0.2 0.60",
    "Color Scrollbar": "0.15 0.25 0.15 0.8",
    "Color Button Craft": "0.80 1.00 0.50 0.10",
    "Color Background Panel": "0.2 0.23 0.2 0.40",
    "Color Text VIP": "0.90 0.80 0.04 1.00",
    "Color Text Amount": "1.00 1.00 1.00 1.00",
    "Color Text Amount VIP": "0.90 0.80 0.04 1.00",
    "GUI Button Close - Color": "0.90 0.20 0.20 0.50",
    "GUI Button Close - Font Size": 20,
    "GUI Button Close - AnchorMin": "0.45 0.7",
    "GUI Button Close - AnchorMax": "0.55 0.725",
    "Img Block Item": "https://img.rustspain.com/craftpanel/block.png"
  },
  "Craft": [
    {
      "ID": 1,
      "Enabled": true,
      "Short Name": "Recycler",
      "Full Name": "Recycler at Home",
      "Img Full": "https://i.imgur.com/wdVWxDB.jpg",
      "Img Icon": "https://i.imgur.com/Vgcfs3n.png",
      "Description": "Make your own recycler to install it on your base. You can collect it by hitting with the hammer.",
      "Description Font Size": 13,
      "Craft Result": {
        "Command (keep empty to create item)": "recycler.give {steamID}",
        "Shortname": "",
        "Name Default": false,
        "Amount": 0,
        "Skin ID": 0
      },
      "Permission Use": "craftpanel.recycler.use",
      "Permission VIP": "craftpanel.recycler.vip",
      "Permission No Cost": "craftpanel.recycler.nocost",
      "VIP discount: 10 = 10%": 10,
      "Require Workbench? 0 = NOT, 1 = Level 1,...": 2,
      "Items": [
        {
          "Item": "metal.fragments",
          "Amount": 50000,
          "Skin ID": 0
        },
        {
          "Item": "metal.refined",
          "Amount": 300,
          "Skin ID": 0
        },
        {
          "Item": "gears",
          "Amount": 50,
          "Skin ID": 0
        },
        {
          "Item": "fuse",
          "Amount": 10,
          "Skin ID": 0
        },
        {
          "Item": "techparts",
          "Amount": 15,
          "Skin ID": 0
        }
      ]
    },
    {
      "ID": 2,
      "Enabled": true,
      "Short Name": "Mini Helicopter",
      "Full Name": "Mini Helicopter",
      "Img Full": "https://i.imgur.com/vnZND1c.jpg",
      "Img Icon": "https://i.imgur.com/qg9aIGz.png",
      "Description": "Because having your own Helicopters whenever you want is cool too.nCraft your Helis, put them away and take them out when you need them.",
      "Description Font Size": 13,
      "Craft Result": {
        "Command (keep empty to create item)": "portablevehicles.give {steamID} minicopter",
        "Shortname": "",
        "Name Default": false,
        "Amount": 0,
        "Skin ID": 0
      },
      "Permission Use": "craftpanel.miniheli.use",
      "Permission VIP": "craftpanel.miniheli.vip",
      "Permission No Cost": "craftpanel.miniheli.nocost",
      "VIP discount: 10 = 10%": 25,
      "Require Workbench? 0 = NOT, 1 = Level 1,...": 0,
      "Items": [
        {
          "Item": "metal.fragments",
          "Amount": 5000,
          "Skin ID": 0
        },
        {
          "Item": "propanetank",
          "Amount": 10,
          "Skin ID": 0
        },
        {
          "Item": "gears",
          "Amount": 10,
          "Skin ID": 0
        },
        {
          "Item": "roadsigns",
          "Amount": 5,
          "Skin ID": 0
        },
        {
          "Item": "sheetmetal",
          "Amount": 10,
          "Skin ID": 0
        }
      ]
    },
    ...
  ]
}

 

  • Like 2

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.7k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.