CraftWallet 是一款强大的模组,在 Minecraft 内创建了一个 Web3 钱包界面。允许玩家直接在游戏内进行购买。
该模组将钱包密钥本地存储在客户端设备的加密保险库中。密钥永远不会发送到服务器,所有交易都必须在客户端批准。
? 安装
一个 Jar 包适用于所有平台。将 craftwallet.jar 放入 Fabric、Quilt、NeoForge 或 Forge 的 mods/ 目录中,或者放入 Paper、Spigot 或 Bukkit 的 plugins/ 目录中。玩家也需要在他们的模组文件夹中安装相同的 Jar 包,或通过 Prism 等启动器添加它。无需其他操作;Fabric 和 Quilt 需要 Fabric API,正如往常一样。
首次启动时,模组会创建一个钱包:将鼠标移入框内以增加随机性,然后记下它显示的 12 词恢复短语。密码是可选的。如果跳过设置,钱包将自行解锁;如果设置了密码,则每次启动后都需要输入。该短语是恢复钱包的唯一方式,请将其保存在安全的地方。你可以稍后从设置中再次复制它,也可以从另一个 Solana 钱包导入短语,而不是创建新钱包。
服务器也需要 CraftWallet。在服务器上运行 /wallet 进行检查:当服务器拥有钱包地址时,它会打印出来。
⚙️ 服务器设置
首次启动会在配置旁边写入 server.toml 和 products.toml 并设置商户账户。像这样添加产品:
[product.vip]
name = "VIP Rank"
price = 9.99
mint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" # USDC; omit for SOL
commands = ["lp user {player} parent add vip"]
然后通过任何商店插件、NPC 或命令方块使用 /craftwallet buy vip <player> 开始销售。玩家会看到产品、金额和确切的余额变化,并批准或拒绝。当支付确认后,带有占位符(如 {player})的命令将会执行。CraftWallet 不抽取任何费用;除非你在 server.toml 中设置 sponsor-fees = true,否则玩家将支付 Solana 网络费用。
✅ 兼容性
Minecraft 26.3 和 Java 25。任何客户端都可以与任何服务器配合使用。原版客户端可以加入但无法付款。
⚠️ 通知
CraftWallet 不对资金损失负责。不要分享你的恢复短语或私钥。区块链上的交易不可逆转。
批准屏幕会在你签名前显示余额变化的模拟预览。并非每条指令都能以这种方式读取,因此只在你信任的服务器上批准支付。
? 开发者说明
我在 Minecraft 模组制作、插件开发和服务器运营方面花费了多年时间。运营成本是一个持续存在的问题,通常的答案是使用第三方捐赠商店,其中每一笔支付都会保留高达 5% 的费用。CraftWallet 的存在是为了将这些费用返还给服务器。我还认为卡处理器拥有过多的权力,我希望玩家能在安全的环境中学习如何使用加密钱包,避免那些让新手陷入骗局的问题。
CraftWallet is a powerfull mod that creates a Web3 wallet interface within Minecraft. Allowing players to make purchases directly from within the game.
The mod stores the wallet keys locally on the client device within an password encrypted vault. The keys are never sent to the server, and all transactions must be approved on the client.
? Install
One jar for everything. Put craftwallet.jar in mods/ on Fabric, Quilt, NeoForge or Forge, or in plugins/ on Paper, Spigot or Bukkit. Players install the same jar in their mods folder, or add it through a launcher such as Prism. Nothing else is required; Fabric API is needed on Fabric and Quilt, as usual.
On first launch the mod creates a wallet: move your mouse inside the box to add randomness, then write down the 12-word recovery phrase it shows you. A password is optional. If you skip it, the wallet unlocks on its own; if you set one, you will enter it after each launch. The phrase is the only way to recover the wallet, so keep it somewhere safe. You can copy it again later from Settings, and you can import a phrase from another Solana wallet instead of creating a new one.
The server needs CraftWallet too. Run /wallet on a server to check: it prints your wallet address when the server has it.
⚙️ Server setup
The first start writes server.toml and products.toml next to your config and sets up the merchant account. Add a product like this:
[product.vip]
name = "VIP Rank"
price = 9.99
mint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" # USDC; omit for SOL
commands = ["lp user {player} parent add vip"]
Then start a sale from any shop plugin, NPC or command block with /craftwallet buy vip <player>. The player sees the product, the amount and the exact balance changes, and approves or rejects. When the payment confirms, the commands run with placeholders such as {player} filled in. CraftWallet takes no cut; the player pays the Solana network fee unless you set sponsor-fees = true in server.toml.
✅ Compatibility
Minecraft 26.3 and Java 25. Any client works with any server. Vanilla clients can join but cannot pay.
⚠️ Notice
CraftWallet is not responsible for loss of funds. Do not share your recovery phrase or private keys. Transactions on the blockchain cannot be reversed.
The approval screen shows a simulated preview of the balance changes before you sign. Not every instruction can be read this way, so only approve payments on servers you trust.
? Note from the dev
I've spent years in Minecraft modding, plugin development and running servers. Running costs are a constant problem, and the usual answer is a third-party donation store that keeps up to 5% of every payment. CraftWallet exists to give that back to servers. I also think card processors have too much power, and I'd like players to learn how a crypto wallet works somewhere safe, without the scams that catch people new to crypto.
评论 0
登录后参与评分
还没有评论,来抢沙发吧