ComputerCraft peripheral integration for BankSystem and StockMarket mods.
This mod adds CC:Tweaked peripherals that allow ComputerCraft computers to interact with the BankSystem and StockMarket economy mods. Perfect for creating automated trading systems, banking terminals, and custom economy interfaces!
bank_terminal)Access the BankSystem mod from ComputerCraft:
getBalance() - Get your money balancegetItemBalance(itemId) - Get item balance in your banktransfer(targetPlayer, amount) - Transfer money to other playersdeposit(amount) / withdraw(amount) - Manage your fundsgetMoneyCirculation() - Get total money in the economystock_market)Full StockMarket integration:
getMarketItems() - List all tradeable itemsgetPriceInfo(itemId) - Get current prices and market datagetAllFloorPrices() - Get floor prices for all itemsgetOrderBookInfo(itemId) - Get bid/ask spread informationplaceBuyOrder(itemId, amount, price) - Place buy ordersplaceSellOrder(itemId, amount, price) - Place sell ordersgetMyOrders() - View your active orderscancelOrder(orderId) - Cancel an orderThe mod includes an automatic market maker bot that:
FloorBot Lua API:
local market = peripheral.find("stock_market")
-- Control the bot
market.setFloorBotEnabled(true/false)
market.setFloorBotPercentage(0.10) -- 10% floor
market.setFloorBotCeilingPercentage(1.0) -- 100% ceiling
market.setFloorBotAutoSell(true)
-- Get status
local status = market.getFloorBotStatus()
market.getFloorBotBuyOrderCount()
market.getFloorBotSellOrderCount()
emc_link)ProjectE integration for EMC values:
getEMC(itemId) - Get EMC value of any itemhasEMC(itemId) - Check if item has EMC-- Find peripherals
local bank = peripheral.find("bank_terminal")
local market = peripheral.find("stock_market")
-- Check balance
print("Balance: $" .. bank.getBalance())
-- Get diamond price
local info = market.getPriceInfo("minecraft:diamond")
print("Diamond floor: $" .. info.floorPrice)
-- Place a buy order
market.placeBuyOrder("minecraft:diamond", 64, 100)
The FloorBot can be configured in config/ccbankmarket-common.toml:
[floorbot]
enabled = true
floorPercentage = 0.10
ceilingPercentage = 1.0
maxOrderAmount = 1000
autoSell = true
For issues and feature requests, please visit our GitHub repository.
Made by Playtime Hosting