ScriptBlockActions

public final class ScriptBlockActions

Optional authored mining operation. Direct Lua world edits keep their existing semantics.

Functions

Link copied to clipboard
public static boolean breakBlock(Player player, Block block, Material expected, ItemStack drop)
Removes an unchanged, authorized block synchronously, then emits the authored drop.
Link copied to clipboard
public static boolean breakNaturally(Player player, Block block, Material expected, ItemStack tool, boolean dropItems)
Natural loot uses the captured tool, after the same cancellable authorization as authored drops.
Link copied to clipboard
public static boolean placeBlock(Player player, Block block, Material expected, BlockData replacement, ItemStack source, EquipmentSlot hand)
Optional permanent authored placement, with the normal cancellable placement event.