Recycle System

Recycle System 2.4

No permission to download
Fougerite Compatibility
1.9.2 or +
Plugin's Engine
  1. Jint2 (Jint)

♻ Recycle Items



▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

Description

Allows players to break down items back into their crafting materials. Supports stackable resources, durability items, multi-slot recycling and anti-abuse cooldowns.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

✨ Features

  • Stackable resources — subtracts the exact amount from the stack, removes slot only when empty
  • Unique / durability items — materials scaled by item condition (0–100%)
  • Multi-slot — if you have 3 M4s across different slots, /recycle m4 3 removes all of them
  • Anti-abuse cooldown — 1.5s per player to prevent race condition dupes
  • Max 500 per operation — prevents server lag from huge requests
  • Spanish alias — /reciclar works identically to /recycle

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

Commands

CommandDescription
/recycle <item>Recycle 1 unit of an item
/recycle <item> <amount>Recycle a specific quantity
/reciclar <item> [amount]Spanish alias, works identically

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

Examples

InputWhat happens
/recycle m4Recycles 1 M4 using its current condition
/recycle m4 3Recycles 3 M4s across multiple inventory slots
/recycle torch 20Removes 20 torches, gives materials × 20

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

⚠ Items that cannot be recycled

Raw resources have no crafting blueprint, so they cannot be broken down further.

InputWhat happens
/recycle wood✗ Will not work — raw resources have no blueprint

  • Wood, Stones, Sulfur Ore, Metal Ore — base resources, no blueprint
  • Cooked food — no blueprint
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​


Item type detection

● Stackable resource
maxStackable > 1 and no durability fields in datablock.
Subtracts amount from ritem.uses. Removes slot only when uses reach 0.

Examples: Wood, Metal Fragments, Cloth, Leather

● Unique / durability item
Removes whole slot per unit. Materials scaled by condition (0.0–1.0).
Examples: M4, Torch, Kevlar, P250, food items

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

⚙ Configuration

Open the plugin file and adjust these values at the top:

var COOLDOWN_MS = 1500;​
var MAX_AMOUNT = 500;​

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬​

Installation

  1. Drop the Recycler folder into your JsPlugins folder
  2. Restart the server or reload plugins
  3. No external dependencies required

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
​
  • 1777542405294.png
    1777542405294.png
    1.7 MB · Views: 116
Author
TheKichDM
Downloads
5
Views
439
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from TheKichDM

  • Zombies
    Zombies
    Spawn Zombie NPC
  • DiscordBOT + API
    DiscordBOT + API
    Bridge between Rust Legacy (Fougerite) and Discord for commands, DMs, and cross-plugin API communica
  • Airdrop Alert
    Airdrop Alert
    It is a simple plugin that notifies players of the airdrop's location.
  • Airdrop to RandomPlayer
    Airdrop to RandomPlayer
    This plugin randomly selects a connected player on the server and drops an airdrop near their positi
  • PM System
    PM System
    Simple and fast private messaging system

Latest updates

  1. Fixed stackable item recycling

    Update — Improved Stackable & Unique Item Recycling ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ No...