Recycle System

Recycle System 2.0.0

No permission to download
Fougerite Compatibility
1.9.2 or +
Plugin's Engine
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

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Author
TheKichDM
Downloads
0
Views
24
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheKichDM