Description
CC BankMarket Integration
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!
Features
Bank Terminal Peripheral (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 economy
Stock Market Peripheral (stock_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 order
FloorBot - Automatic Market Maker
The mod includes an automatic market maker bot that:
- Creates buy orders at 10% of EMC value (floor price)
- Creates sell orders at 100% of EMC value (ceiling price)
- Ensures liquidity for ALL items with EMC values (~36,000 items!)
- Fully configurable via Lua API or config file
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 Peripheral (emc_link)
ProjectE integration for EMC values:
getEMC(itemId)- Get EMC value of any itemhasEMC(itemId)- Check if item has EMC
Example Usage
-- 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)
Requirements
- Minecraft: 1.21.1
- NeoForge: 21.1.77+
- CC:Tweaked: 1.113.0+
- BankSystem: 1.4.0+ (required)
- StockMarket: 1.3.0+ (optional, for market features)
- ProjectE: Any version (optional, for EMC features)
Configuration
The FloorBot can be configured in config/ccbankmarket-common.toml:
[floorbot]
enabled = true
floorPercentage = 0.10
ceilingPercentage = 1.0
maxOrderAmount = 1000
autoSell = true
Support
For issues and feature requests, please visit our GitHub repository.
Made by Playtime Hosting


