
Lightman's Currency x CC:Tweaked Compat
A simple CC:Tweaked addon to add in compatibility with Lightman's Currency
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 withitemandcount).transactionType: One ofsale,purchase, orbarter.price: (For sales/purchases) The price in currency.itemsCost: (For barters) List of items required as cost (each withitemandcount).
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
How to Install Lightman's Currency x CC:Tweaked Compat on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).
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
Minecraft Versions
1.20.1
Server-side
✓ RequiredRecommended 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.
Similar Mods
Rent Modded Server
Install Lightman's Currency x CC:Tweaked Compat with just one click on your server.