Craft Panel

Craft Panel 1.5.5

With this update you will no longer have limits to add items to craft.

Now if you have more than 16 items, a button will be shown to go to the next page or go back.

At the same time I have improved the code a bit.

Disadvantage or problem encountered: I have forced the option to show all items although the player will not have permission to craft if they do not have it authorized. When the item was not shown, it produced an error since the information did not correspond to the selected item.

If you find any error let me know!
  • Love
Reactions: wuge321
Now you can show the items even if the player does not have permission. But you won't be able to craft it.

- A new line of text is also automatically added to the lang.
I have fixed a bug that caused that no matter how much you had the item with the correct skin, it would return an error. This should now work correctly.

If the item asks for a specific skin, the player must have an item with the same skin.

If the item asks for an item without skin, it will not matter if the player has the item with or without skin.
New submarines are added as items due to mod defects. (The configuration is simply updated by adding the 2 new items)

Demonstration of how to craft the new Rust submarines using the Craft Panel mod and PortableVehicles (umod).


Currently these vehicles are not implemented in Portable Vehicles so I had to modify the mod myself. I will send my update to the original developer of said mod so that they can publish it on umod.

I attach in this update the update of said mod by myself so that you do not have problems.

I also attach the exclusive configuration of the 2 new items, in case you want to update it yourself more quickly.
Code:
{
      "Short Name": "Submarine Solo",
      "Full Name": "Submarine Solo",
      "Img Full": "https://i.imgur.com/F5UFLKB.jpg",
      "Img Icon": "https://i.imgur.com/UO9tKWD.png",
      "Description": "A portable 1-seater submarine for you to place on your favorite beach shore. You can pick it up later by hitting it with a wooden hammer.",
      "Craft Result": {
        "Command (keep empty to create item)": "portablevehicles.give {steamID} submarinesolo",
        "Shortname": "",
        "Amount": 0,
        "Skin ID": 0
      },
      "Permission Use": "craftpanel.submarinesolo.use",
      "Permission VIP": "craftpanel.submarinesolo.vip",
      "Permission No Cost": "craftpanel.submarinesolo.nocost",
      "VIP discount: 10 = 10%": 5,
      "Require Workbench? 0 = NOT, 1 = Level 1,...": 1,
      "Items": [
        {
          "Item": "metal.fragments",
          "Amount": 2500,
          "Skin ID": 0
        },
        {
          "Item": "scrap",
          "Amount": 300,
          "Skin ID": 0
        }
      ]
    },
    {
      "Short Name": "Submarine Duo",
      "Full Name": "Submarine Duo",
      "Img Full": "https://i.imgur.com/8nuFwuy.jpg",
      "Img Icon": "https://i.imgur.com/cJGnI2L.png",
      "Description": "A portable 2-seater submarine for you to place on your favorite beach shore. You can pick it up later by hitting it with a wooden hammer.",
      "Craft Result": {
        "Command (keep empty to create item)": "portablevehicles.give {steamID} submarineduo",
        "Shortname": "",
        "Amount": 0,
        "Skin ID": 0
      },
      "Permission Use": "craftpanel.submarineduo.use",
      "Permission VIP": "craftpanel.submarineduo.vip",
      "Permission No Cost": "craftpanel.submarineduo.nocost",
      "VIP discount: 10 = 10%": 5,
      "Require Workbench? 0 = NOT, 1 = Level 1,...": 2,
      "Items": [
        {
          "Item": "metal.fragments",
          "Amount": 3500,
          "Skin ID": 0
        },
        {
          "Item": "metal.refined",
          "Amount": 10,
          "Skin ID": 0
        },
        {
          "Item": "scrap",
          "Amount": 400,
          "Skin ID": 0
        },
        {
          "Item": "sheetmetal",
          "Amount": 5,
          "Skin ID": 0
        }
      ]
    },

Any problem let me know.
If you want to add an object as crafting material with custom skin, now you can do it by editing the new field of the configuration file of each object.

IMPORTANT
Before updating make a copy of the configuration, since it has been modified to add this new field.

You can manually edit your old configuration file by adding the following code to each crafting resource item:
- BEFORE (As you have so far)
Code:
{
    "Item": "metal.refined",
    "Amount": 300
},
- NOW (How you should change it)
Code:
{
    "Item": "metal.refined",
    "Amount": 300,
    "Skin ID": 0
},

Just add:
,
"Skin ID": 0

Every resource.


To customize the object with a custom skin simply change 0 to the id of the Skin. If you have any problem let me know.
  • Love
Reactions: TeeJayAwreka
The images of the icons of the items to be manufactured have been optimized. Some were 900x900 pixels in size. With 300 is plenty.
By mistake I forgot some links from my private image server. They have been replaced.