Skip to content

ComputerCraft Integration

IThundxr edited this page Jun 5, 2024 · 10 revisions

The following peripherals become available to CC:Tweaked when Numismatics is installed:


Brass Depositor and Vendor

Method Description
setCoinAmount(String coinName, int amount) Sets the price with the coinName provided and amount
setTotalPrice(int spurAmount) Sets the total price
getTotalPrice() Get the total price
getPrice(String coinName) Get the price with the coinName provided

setCoinAmount(String coinName, int amount)

Set's the price for the attached block, you can control what amount is set for each coin by using the coin names.

setTotalPrice(int spurAmount)

Set's the total price for the attached block in spurs.

getTotalPrice()

Get the total price of the attached block in spurs.

Returns

  • number The total price in spurs

getPrice(String coinName)

Get the price of the attached block in the coinName provided.

Returns

  • number The total price in the provided coinName
Clone this wiki locally