TippedArrowForItemsAndEmeralds

Link to tippedarrowforitemsandemeralds

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.villager.trade.type.TippedArrowForItemsAndEmeralds;

Implemented Interfaces

Link to implemented-interfaces

TippedArrowForItemsAndEmeralds implements the following interfaces. That means all methods defined in these interfaces are also available in TippedArrowForItemsAndEmeralds

ZenScript
Copy
new TippedArrowForItemsAndEmeralds(fromItem as ItemDefinition, fromCount as int, toItem as ItemDefinition, toCount as int, emeraldCost as int, maxUses as int, villagerXp as int) as TippedArrowForItemsAndEmeralds
new TippedArrowForItemsAndEmeralds(<item:minecraft:diamond>, 8, <item:minecraft:diamond>, 1, 2, 8, 2);
ParameterTypeDescription
Parameter
fromItem
Type
ItemDefinition
Description
The Item that is being sold by the villager, that will have a random potion effect attached
Parameter
fromCount
Type
int
Description
The amount of the Item being sold to the villager
Parameter
toItem
Type
ItemDefinition
Description
The Item that is being sold by the villager
Parameter
toCount
Type
int
Description
The amount of the item that is being sold by the villager
Parameter
emeraldCost
Type
int
Description
How many emeralds will be given to the villager
Parameter
maxUses
Type
int
Description
How many times can this trade be used
Parameter
villagerXp
Type
int
Description
How much experience does this trade reward the villager