Fortune & Favors
我为一个好友群组制作了它,然后不断打磨直到它不再崩溃。主要是 :P
出售与购买物品
出售 — /sell 打开一个窗口。放入物品,总价会自动累加,关闭窗口即可获得报酬。如果你是命令型玩家,/sell hand 和 /sell all 依然可用。游戏中的每个方块和物品都有价值。是的,包括那些奇怪的物品。
商店 — /shop 包含五个类别:食物、材料、建筑、红石和其他。仅“建筑”类就有 300 多个条目:每种木材的完整套装、所有 16 种颜色的混凝土、羊毛、玻璃和陶瓦、石头变体等应有尽有。红石类包含实用物品——漏斗、活塞、侦测器、中继器、铁轨、矿车、潜影贝传感器和合成器。
经营你自己的商店
箱子 + 购买或出售标志 = 一个商店。使用 /chestshop price 设置价格,所有者拥有自己的设置页面,可以切换购买/出售模式、更改货币以及设置单个物品的价格。
商店可以使用现金或物品支付——包括代币,因此你可以运营一个只交易你专属货币的商店。商店箱子具有防破坏保护:只有所有者可以破坏它们,你无法将箱子合并到别人的商店中以破坏配对关系。
拍卖行
/auction 打开它。对列表进行竞价、以固定价格立即购买,或以你自己设定的价格出售物品——10k、1.5m 和 2b 均可解析。出价资金会进入托管账户,防止有人白拿物品,而被超出的出价者会自动获得退款。
交易
/trade <name> 发送请求。对方输入 /tradeaccept 后,会打开一个双向窗口——双方都可以放置物品和现金。两位玩家都点击 ACCEPT(接受)即可完成交易。关闭窗口后,所有物品都会返回原处。
代币 —— 你的私人货币
/token 花费 $1,000 铸造一枚。它是一个真实存在的物品,可以送给朋友、在商店消费,或用作赌博筹码。只有 /token 能创建它们——没有合成配方,不会复制,也无法被复制。
认领土地
/claim 给你一个认领工具。两次点击即可认领两者之间的区域,或者获取区块认领器(成本更高),一次点击即可认领整个区块。每区块 $1,500,最多认领 6 块。
每个认领区都有权限图形界面。
标签
/tag set Owner 和 /tag color 255 170 0 —— 你的标签会显示在标签页列表中,紧邻你的名字。支持自定义颜色。
自定义方块
- 自动出售漏斗 —— 无声但类似漏斗:它会吸走附近可出售的物品,抽空上方的容器,并将所有物品出售给其所有者。不会触碰商店箱子,也不会偷取你无权访问的已认领土地上的物品。
- 电梯 —— 跳跃上楼,潜行下楼。直接穿过楼层之间的所有实体进行传送。连点或按住均可,随你选择。
- 购买消息会合并,因此刷屏购买同一种物品不会导致聊天栏出现十几行重复信息。
- 出售、购买、竞价、交易、电梯、翻页声、认领等操作均有自定义音效——一应俱全。
命令
| 你想要... |
输入 |
| 查看余额 |
/balance |
| 转账 |
/balance transfer <player> <amount> |
| 打开商店 |
/shop |
| 快速购买一件物品 |
/buy <item> [amount] |
| 出售 |
/sell [hand|all] |
| 拍卖物品 |
/auction |
| 交易 |
/trade <player> + /tradeaccept |
| 铸造代币 |
/token |
| 佩戴标签 |
/tag set <text>, /tag color <r> <g> <b>, /tag clear |
| 认领土地 |
/claim, /claim abandon |
| 经营商店 |
/chestshop price|currency ... |
| 管理事务 |
/economy help |
服务器所有者须知
- 禁用任何功能。
/disable 打开一个切换页面(或从控制台使用 /disable <feature>)——关闭认领、代币、标签、商店、箱子商店、余额命令等任何你不想要的功能。配置保存在世界文件夹 fortuneandfavors/ 下的 config.json 中。
- 价格和出售价值均为纯 JSON 格式(
shop.json、block_values.json),位于世界文件夹内。编辑后运行 /economy reload 即可生效——无需重启服务器。
- 需要 Fabric + Fabric API,适用于 Minecraft 26.2。将其放入服务器的 mods 文件夹中(如果希望客户端也能播放音效,也请放入客户端的 mods 文件夹)。
Fortune & Favors
I built it for a friend group, then polished it until it stopped crashing. Mostly :P
Sell stuff, buy stuff
Selling — /sell opens a window. Drop items in, the total ticks up, close it and get paid. /sell hand and /sell all still work if you're a command person. Every block and item in the game has a value. Yes, even the weird ones.
The shop — /shop has five categories: Food, Materials, Building, Redstone, and Misc. Building alone has 300+ entries: every wood type's full kit, all 16 colors of concrete, wool, glass and terracotta, stone variants, the lot. Redstone has the useful stuff — hoppers, pistons, observers, repeaters, rails, minecarts, sculk sensors, crafters.
Run your own shop
Chest + Buy or Sell sign = a shop. Set prices with /chestshop price, and the owner gets their own settings page to switch buy/sell, change the currency, and set per-item prices.
Shops pay in cash or in items — including tokens, so you can run a shop that only trades in your own currency. Shop chests are grief-proof: only the owner can break them, and you can't merge a chest into someone else's shop to break the pairing.
The auction house
/auction opens it. Bid on listings, buy-now fixed-price stuff, and sell your own items with a price you type — 10k, 1.5m and 2b all parse. Bids go into escrow so nobody walks off with a free item, and outbid bidders get refunded automatically.
Trading
/trade <name> sends a request. They type /tradeaccept and a two-sided window opens — items and cash on both sides. Both players hit ACCEPT, done. Close the window and everything goes back where it came from.
Tokens — your own private currency
/token mints one for $1,000. It's a real item you can give to friends, spend at shops, or use as gambling chips. Only /token can create them — no crafting recipe, no dupes, they can't be replicated
Claim your land
/claim gives you a claimer. Two clicks to claim the area between them, or grab the Chunk Claimer (costs more) to take a whole chunk in one click. $1,500 per chunk, max 6 claims.
Every claim has permissions GUI's
Tags
/tag set Owner and /tag color 255 170 0 — your tag shows in the tab list right next to your name. Custom colors included.
The Custom Blocks
- Auto-sell hopper — silent, but hopper-like: it sucks up sellable items nearby, drains containers above it, and sells everything to its owner. Won't touch shop chests, won't steal from claimed land you can't access.
- Elevator — jump to go up, sneak to go down. Teleports straight through everything between floors. Spam it or hold it, your call.
- Buy messages coalesce, so spamming one item doesn't flood chat with a dozen lines.
- Custom sounds for selling, buying, bidding, trading, elevators, page flips, claims — the works.
Commands
| You want to... |
Type |
| Check your money |
/balance |
| Send money |
/balance transfer <player> <amount> |
| Open the shop |
/shop |
| Buy one thing, fast |
/buy <item> [amount] |
| Sell |
/sell [hand|all] |
| Auction stuff |
/auction |
| Trade |
/trade <player> + /tradeaccept |
| Mint a token |
/token |
| Wear a tag |
/tag set <text>, /tag color <r> <g> <b>, /tag clear |
| Claim land |
/claim, /claim abandon |
| Run a shop |
/chestshop price|currency ... |
| Admin stuff |
/economy help |
For the server owner
- Disable anything.
/disable opens a toggle page (or /disable <feature> from the console) — switch off claims, tokens, tags, the shop, chest shops, balance commands, whatever you don't want. Saved to config.json in the world's fortuneandfavors/ folder.
- Prices and sell values are plain JSON (
shop.json, block_values.json) in the world folder. Edit them and run /economy reload — no restart needed.
- Fabric + Fabric API, Minecraft 26.2. Drop it in the mods folder on the server (and the client if you want the sounds).
评论 0
登录后参与评分
还没有评论,来抢沙发吧