Jump to content

Slot machine crafting

Closed 1.0.0

BetterDeadThanZed

Posted

Hello. I've created a new category and I've started to add the items. I added the poker table and it works fine. When I try crafting the slot machine, it crafts a poker table. I use the Place Anything plugin to be able to place slot machines and this has worked in the previous crafting menu plguin I've been using. Below is the code from my config file:

 

    {
      "Section name": "Gambling",
      "Enable this section?": true,
      "Section permission [required]": "gambling",
      "Register this permission?": false,
      "Section icon": "https://i.postimg.cc/kGbJ85TZ/items.png",
      "Section items": [
        {
          "Item name [required]": "Poker Table",
          "Enable crafting of this item?": true,
          "Item permission [required]": "pokertable",
          "Register this permission?": false,
          "Item description": "Invite the boys over for a Poker night!",
          "Item properties": "A card table for up to 8 players. Just remember, the house ALWAYS wins.",
          "Item shortname": "cardtable",
          "Item skinId": 0,
          "Is this a blueprint? ": false,
          "Create an item with the default name (true) or the above name (false)?": true,
          "Item image [optional]": "https://codefling.com/uploads/monthly_2021_06/cardtable.png.4ef017dd12c5a15a33d77a1487397618.png",
          "Console commands executed after crafting (%steamid%, %username%, %amount%) [optional]": "",
          "Amount per craft": 1,
          "Max craft multiplier": 1,
          "Crafting time [sec]": 5.2,
          "Show notification in game status (if they are enabled)?": true,
          "Workbench level [0 - not needed]": 0,
          "Crafting cost in the economy plugin [0 - disable]": 0,
          "Item variations": [],
          "Crafting ingredients": [
            {
              "Resource name [required]": "Metal fragments",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "metal.fragments",
              "Resource skinId": 0,
              "Required quantity for crafting": 100,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Scrap",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "scrap",
              "Resource skinId": 0,
              "Required quantity for crafting": 100,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Wood",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "wood",
              "Resource skinId": 0,
              "Required quantity for crafting": 100,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Tarp",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "tarp",
              "Resource skinId": 0,
              "Required quantity for crafting": 1,
              "Return an item with the default name (true) or the above name (false)?": true
            }			
          ]
        },
        {
          "Item name [required]": "Slot Machine",
          "Enable crafting of this item?": true,
          "Item permission [required]": "slotmachine",
          "Register this permission?": false,
          "Item description": "A good workout for your right arm.",
          "Item properties": "A One Armed Bandit. Have too much scrap? Build one of these and it'll suck the scrap right out of you.",
          "Item shortname": "Slot Machine",
          "Item skinId": 0,
          "Is this a blueprint? ": false,
          "Create an item with the default name (true) or the above name (false)?": false,
          "Item image [optional]": "https://codefling.com/uploads/monthly_2021_06/slotmachineicon.png.726e2c3ec1ad21b563e0f88f338c7e1d.png",
          "Console commands executed after crafting (%steamid%, %username%, %amount%) [optional]": "slotmachine.give %steamid%",
          "Amount per craft": 1,
          "Max craft multiplier": 1,
          "Crafting time [sec]": 0.0,
          "Show notification in game status (if they are enabled)?": true,
          "Workbench level [0 - not needed]": 0,
          "Crafting cost in the economy plugin [0 - disable]": 0,
          "Item variations": [],
          "Crafting ingredients": [
            {
              "Resource name [required]": "Scrap",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "scrap",
              "Resource skinId": 0,
              "Required quantity for crafting": 500,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Frags",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "frags",
              "Resource skinId": 0,
              "Required quantity for crafting": 1000,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Refined Metal",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "metal.refined",
              "Resource skinId": 0,
              "Required quantity for crafting": 50,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Gears",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "gears",
              "Resource skinId": 0,
              "Required quantity for crafting": 10,
              "Return an item with the default name (true) or the above name (false)?": true
            }
          ]
        }
      ]
    },	

 

MTriper

Posted

At the slot machine you have specified the wrong shortname. If you use the command to give the slot machine and the image by link, you do not need to specify the shortname.

MTriper

Posted

Has your problem been solved?

MTriper

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.