Events & Exports
Manage mine properties, integrate custom equipment and respond to mining activity from other server resources.
Export functions
Create or remove mines and integrate custom pickaxe and helmet handling.
insertMineCreates a new mine at the specified position.
xnumberynumberznumberpricenumbernamestringPromiseremoveMineRemoves an existing mine.
idnumberPromiseresetMineResets a mine, including its carts, owner and related state.
idnumberPromisesetPickaxeStateUpdates a player’s pickaxe state when using a custom inventory.
sourcenumberstatebooleanvoidsetHelmetStateUpdates a player’s helmet state when using a custom inventory.
sourcenumberstatebooleanvoidServer events
React to mine access, rental changes and tunnel activity from another resource.
onEnterMineTriggered when a player enters a mine.
sourcenumbermineIdnumberonLeaveMineTriggered when a player leaves a mine.
sourcenumbermineIdnumberonMineRentExpiredTriggered when the rental period for a mine expires.
mineIdnumberonMineRentedTriggered immediately after a player rents a mine.
sourcenumbermineIdnumberdaysnumberonMineRentRenewalTriggered when a player renews a mine rental.
sourcenumbermineIdnumberdaysnumberonHitCellTriggered when a player hits a tunnel cell.
sourcenumberAdministration commands
The included commands provide quick in-game access to mine creation.
/createmineCreate a mine at your current position.
/createmineatCreate a mine at a specified position.