I was playing around with some scriptcraft, when i found that simulating a right click on a lever or button, causes it to fall off and lay on the ground as an item.
I can only assume that this is a bug.
code piece:
var block;
function rightClick(event) {
block = event.getBlockClicked();
echo(event.player, "block registered");
}
I was playing around with some scriptcraft, when i found that simulating a right click on a lever or button, causes it to fall off and lay on the ground as an item. I can only assume that this is a bug.
code piece: var block;
function rightClick(event) { block = event.getBlockClicked(); echo(event.player, "block registered"); }
exports.sim = function(player) { echo(player, "now simulating right click"); if(block.rightClick(player)) { echo(player, "success"); } else { echo(player, "failure"); } }
events.blockRightClick(rightClick);