-
Notifications
You must be signed in to change notification settings - Fork 2
Trading Interface
Jhefferson Marques edited this page Feb 5, 2022
·
5 revisions
The trading interface is a block that needs a villager close by to work, and permits automation of trades.
| Methods | Descriptions |
|---|---|
| getProfession() | Returns the current profession of the villager |
| getTrades() | Returns all the trades of the villager |
| trade(input:string, output:string, tradeId:number) | By passing the name of the inventory peripherals in the input and output, and passing a trade index, a trade is made (does not level up villgers, do not drop xp, ingores price raise or drop) |
| restock() | Forces a villager trade restock |