Lightman's Currency x CC:Tweaked Compat

Lightman's Currency x CC:Tweaked Compat

A simple CC:Tweaked addon to add in compatibility with Lightman's Currency

by
342 Downloads
forgeeconomytechnology
Rent Server with this Mod

About this Mod

This mod adds in support for Lua interaction with Lightman's Currency using CC Tweaked!

simply place a computer near any lightman's currency trader blocks and wrap the peripheral.

How to Use

Attach the terminal peripheral to your ComputerCraft computer. You can then call the following Lua functions:

  • getName(trader): Returns the custom name of the trader.
  • getOwnerName(trader): Returns the name of the trader's owner.
  • getTrades(): Returns a table of all trades for the trader. Each trade includes:
    • items: List of items being sold or offered (each with item and count).
    • transactionType: One of sale, purchase, or barter.
    • price: (For sales/purchases) The price in currency.
    • itemsCost: (For barters) List of items required as cost (each with item and count).

Example Lua Usage

local p = peripheral.wrap("back") -- change to your peripheral side
local traders = p.getTrades()

for _, trader in ipairs(traders) do
    print("Trader:", trader.name, "(ID:", trader.id .. ")")
    if #trader.trades == 0 then
        print("  No trades available.")
    else
        for i, trade in ipairs(trader.trades) do
            print("  Trade " .. i .. ":")
            print("    Type:", trade.transactionType)
            if trade.price then
                print("    Price:", trade.price)
            end
            if trade.items then
                print("    Items:")
                for _, item in ipairs(trade.items) do
                    print("      -", item.count, item.item)
                end
            end
            if trade.itemsCost then
                print("    Cost Items:")
                for _, item in ipairs(trade.itemsCost) do
                    print("      -", item.count, item.item)
                end
            end
        end
    end
    print()
end

Available Versions

LC Computercraft Compat 0.0.2-1.20.1release
MC 1.20.1forge
June 8, 2025
LC Computercraft Compat 0.0.1-1.20.1release
MC 1.20.1forge
May 31, 2025

How to Install Lightman's Currency x CC:Tweaked Compat on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Lightman's Currency x CC:Tweaked Compat". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forge

Minecraft Versions

1.20.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Lightman's Currency x CC:Tweaked Compat server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is Lightman's Currency x CC:Tweaked Compat compatible with forge?

Lightman's Currency x CC:Tweaked Compat officially supports forge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Lightman's Currency x CC:Tweaked Compat – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Lightman's Currency x CC:Tweaked Compat consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Lightman's Currency x CC:Tweaked Compat with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.20.1