promotional bannermobile promotional banner
premium banner
ComputerCraft peripherals for BankSystem and StockMarket mods with automatic market maker bot

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 balance
  • getItemBalance(itemId) - Get item balance in your bank
  • transfer(targetPlayer, amount) - Transfer money to other players
  • deposit(amount) / withdraw(amount) - Manage your funds
  • getMoneyCirculation() - Get total money in the economy

Stock Market Peripheral (stock_market)

Full StockMarket integration:

  • getMarketItems() - List all tradeable items
  • getPriceInfo(itemId) - Get current prices and market data
  • getAllFloorPrices() - Get floor prices for all items
  • getOrderBookInfo(itemId) - Get bid/ask spread information
  • placeBuyOrder(itemId, amount, price) - Place buy orders
  • placeSellOrder(itemId, amount, price) - Place sell orders
  • getMyOrders() - View your active orders
  • cancelOrder(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 item
  • hasEMC(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