Grab your pickaxe! The Mine is an open source area for Loot players to dig for rare ore and gems.
Pack up your loot and hit the mines to start digging for rare ore and gems!
Ore | Probability of Mining | Amount Mined |
---|---|---|
Buterinium Ore | 1 in 50 | 1-2 |
Calamitite Ore | 1 in 16.6 | 1-2 |
Trillium Ore | 1 in 6.6 | 1-3 |
Mithril Ore | 1 in 3.3 | 1-3 |
Pyrite Ore | 1 in 2.2 | 1-3 |
Iron Ore | 1 in 1.4 | 1-5 |
Coal | 1 in 1 | 1-8 |
Gem | Probability of Mining | Amount Mined |
---|---|---|
Diamond | 1 in 200 | 1 |
Ruby | 1 in 100 | 1 |
Emerald | 1 in 20 | 1 |
Sapphire | 1 in 12.5 | 1 |
All wallets holding Loot or mLoot can dig for treasure in The Mine once per day, per bag of Loot or mLoot. In The Mines, all players have an equal chance to get their hands dirty and labor for an in-game fortune!
- Visit etherscan (deploy address TBD) and call the mine() function with your loot ID as a parameter
- You will receive 8 random ores and gems ranging from common to rare (ERC-1155 tokens)
- Each bag of Loot or mLoot may mine once per recharge period, which is currently 24hrs and configurable by AGLD Governance.
1. Install dependencies > yarn install
2. Compile the contracts > yarn hardhat compile
3. Run the unit tests > yarn hardhat test
4. Deploy contracts > yarn hardhat run scripts/deploy.ts
(TBD pending community discussion) The Mine is governed by AGLD Governance. The following actions are available:
addEligibleBag(address bagAddress)
> add new ERC721 addresses to the list of addresses that are eligible to play in The Mine. Initially: Loot and mLoot.setRechargeTime(uint256 newRechargeTime)
> update the recharge time required between mines for a bag of loot. Initially: 86,400 (24hrs)setCapacity(uint8 newCapacity)
> update the capacity of a miner's sack for each miner. Initially: 8 pieces per mine.addOreType(string calldata newName, uint16 newChance, uint16 newAmountDivisor)
> create a new Ore or Gem type for Miners to discover!
- The Forge (for Adventurers)
- Web interface for mining: mine button, display recharge time of each bag, display mining inventory
These smart contracts are being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the the smart contracts. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The author is not liable for any of the foregoing. Users should proceed with caution and use at their own risk.