Jump to content

Recycler not spawning.

Closed 1.17.0

I seem to be having problems getting the Recycler Craft to work, can you please advise me on where I am going wrong here as I have been struggling to get this part to work for a while now. Below you can see my config.

 

    {
      "Enabled craft?": true,
      "Image": "https://i.imgur.com/LLB2AVi.png",
      "Description": [
        "Craft requires:",
        "- Gears (50 pcs)",
        "- Road Signs (150 pcs)",
        "- Scrap (2000 pcs)"
      ],
      "Command for give": "giverecycler",
      "Permission for craft": "crafts.all",
      "DisplayName": "Home Recycler",
      "Shortname": "research.table",
      "Amount": 1,
      "Skin": 0,
      "Type (Item/Command/Vehicle/Recycler)": "Recycler",
      "Prefab (for Vehicle)": "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": [
        {
          "Shortname": "gears",
          "Amount": 50,
          "Skin": 0
        },
        {
          "Shortname": "roadsigns",
          "Amount": 150,
          "Skin": 0
        },
        {
          "Shortname": "scrap",
          "Amount": 2000,
          "Skin": 0
        }
      ],
      "For Modular Car": null
    },

Share this comment


Link to comment

Thanks dude, I have tried it and used your config on paste bin but still no luck. Do I need to load another plugin as a add on for this to work?

Share this comment


Link to comment
2 minutes ago, Johann Kruger said:

Thanks dude, I have tried it and used your config on paste bin but still no luck. Do I need to load another plugin as a add on for this to work?

Try to just delete the config O.o

No additional plugins required

Share this comment


Link to comment

Before I do that, here is my current config. I looked at the default config and I don't seem to find a fault. Maybe you can spot something as I would like my menu setup in this way please.

{
  "The color of the button when all the items are present": "#80FF8080",
  "Command": "craft",
  "Enable debug?": true,
  "Workbenches Setting": {
    "None": {
      "Color": "#00000080",
      "Title": "No Workbench Required"
    },
    "One": {
      "Color": "#80400080",
      "Title": "Workbench 1 LVL"
    },
    "Two": {
      "Color": "#0080FF80",
      "Title": "Workbench 2 LVL"
    },
    "Three": {
      "Color": "#FF000080",
      "Title": "Workbench 3 LVL"
    }
  },
  "Craft Settings": [
    {
      "Enabled craft?": true,
      "Image": "https://i.imgur.com/LLB2AVi.png",
      "Description": [
        "Craft requires:",
        "- Gears (50 pcs)",
        "- Road Signs (150 pcs)",
        "- Scrap (2000 pcs)"
      ],
      "Command for give": "giverecycler",
      "Permission for craft": "crafts.all",
      "DisplayName": "Home Recycler",
      "Shortname": "research.table",
      "Amount": 0,
      "Skin": 2186833264,
      "Type (Item/Command/Vehicle/Recycler)": "Recycler",
      "Prefab (for Vehicle)": "assets/bundled/prefabs/static/recycler_static.prefab",
      "Command on give": "",
      "Workbench Level": 2,
      "Distance Check": true,
      "Distance": 1.5,
      "Place the ground": false,
      "Place the structure": false,
      "Items For Craft": [
        {
          "Shortname": "gears",
          "Amount": 50,
          "Skin": 0
        },
        {
          "Shortname": "roadsigns",
          "Amount": 150,
          "Skin": 0
        },
        {
          "Shortname": "scrap",
          "Amount": 2000,
          "Skin": 0
        }
      ],
      "For Modular Car": null
    },
    {
      "Enabled craft?": true,
      "Image": "https://rustlabs.com/img/items180/mining.pumpjack.png",
      "Description": [
        "Craft requires:",
        "- Gears (125 pcs)",
        "- Road Signs (500 pcs)",
        "- Sheetmetal (250 pcs)",
        "- Scrap (10000 pcs)"
      ],
      "Command for give": "givepumpjack",
      "Permission for craft": "crafts.all",
      "DisplayName": "PumpJack",
      "Shortname": "mining.pumpjack",
      "Amount": 1,
      "Skin": 2244308598,
      "Type (Item/Command/Vehicle/Recycler)": "Item",
      "Prefab (for Vehicle)": "",
      "Command on give": "",
      "Workbench Level": 3,
      "Distance Check": true,
      "Distance": 1.5,
      "Place the ground": false,
      "Place the structure": false,
      "Items For Craft": [
        {
          "Shortname": "gears",
          "Amount": 125,
          "Skin": 0
        },
        {
          "Shortname": "roadsigns",
          "Amount": 500,
          "Skin": 0
        },
        {
          "Shortname": "sheetmetal",
          "Amount": 250,
          "Skin": 0
        },
        {
          "Shortname": "scrap",
          "Amount": 10000,
          "Skin": 0
        }
      ],
      "For Modular Car": null
    },
    {
      "Enabled craft?": true,
      "Image": "https://rustlabs.com/img/items180/mining.quarry.png",
      "Description": [
        "Craft requires:",
        "- Gears (125 pcs)",
        "- Road Signs (500 pcs)",
        "- Sheetmetal (250 pcs)",
        "- Scrap (10000 pcs)"
      ],
      "Command for give": "givequarry",
      "Permission for craft": "crafts.all",
      "DisplayName": "Quarry",
      "Shortname": "mining.quarry",
      "Amount": 1,
      "Skin": 0,
      "Type (Item/Command/Vehicle/Recycler)": "Item",
      "Prefab (for Vehicle)": "",
      "Command on give": "",
      "Workbench Level": 3,
      "Distance Check": true,
      "Distance": 1.5,
      "Place the ground": false,
      "Place the structure": false,
      "Items For Craft": [
        {
          "Shortname": "gears",
          "Amount": 125,
          "Skin": 0
        },
        {
          "Shortname": "roadsigns",
          "Amount": 500,
          "Skin": 0
        },
        {
          "Shortname": "sheetmetal",
          "Amount": 250,
          "Skin": 0
        },
        {
          "Shortname": "scrap",
          "Amount": 10000,
          "Skin": 0
        }
      ],
      "For Modular Car": null
    }
  ],
  "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
  },
  "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
  }
}

Edited by Johann Kruger

Share this comment


Link to comment
2 minutes ago, Johann Kruger said:

This command does not seem to work in command prompt - giverecycler or give recycler

I get an error saying item does not exist.

Which error? ...

Share this comment


Link to comment

Found the problem. It seems the plugin will only spawn items if the correct Workbench which is specified in the config is present. If you only have a higher level workbench it will not work.

Share this comment


Link to comment

Not sure how this plugin works but you do not have to give anything, you just run the command. Since the command is going to be ran through the rcon/server console more or less, you must provide the players name for instance 'giverecycler nubbbz'. it depends where you run the empty command 'giverecycler', for instance you run it in game ether console or chat that's fine but its not fine when you run it in rcon/server console as then your legit trying to give a recycler to the server lol

 

Anyhow i have added a thing that detects if its ran in the console and if so it would give a message.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.4k

Files Sold

Total number of files sold.

1.6m

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.