onRightClickBlock

Link to onrightclickblock

Setter/Getter/MethodMethod NamesNamesInput/Output
Setter/Getter/Method
Getter
Method Names
getHitVector();
Names
hitVector();
Input/Output
Returns a IVector3d
Setter/Getter/Method
Getter
Method Names
getUseBlock();
Names
useBlock();
Input/Output
Returns a String
Setter/Getter/Method
Setter
Method Names
setUseBlock(String useBlock);
Names
useBlock(String useBlock);
Input/Output
Takes a String
Setter/Getter/Method
Getter
Method Names
getUseItem();
Names
useItem();
Input/Output
Returns a String
Setter/Getter/Method
Setter
Method Names
setUseItem(String useItem);
Names
useItem(String useItem);
Input/Output
Takes a String
Copy
var test = mods.compatskills.TraitCreator.createTrait("test", 2, 3, "compatskills:banana", 1, "compatskills:banana|5");

test.onRightClickBlock = function(event as crafttweaker.event.PlayerInteractBlockEvent) {
    ...
};