EnchantShop
一个完整的附魔系统,包含图形界面商店、高风险的附魔赌徒、分解器以及强大的管理员工具。

在与代码恶魔经过一番苦战后,EnchantShop 终于取得了胜利!该插件为玩家提供了一种无缝的方式,让他们花费辛苦赚取的游戏内货币来获取他们想要的精确附魔,从而绕过原版附魔台的随机性。(是的,我特意写上这段是因为这是我的第一个插件,我想让你知道这有多难)
功能 ✨
- NEW! 附魔赌徒: 一种高风险的“加倍或归零”系统!玩家可以押注物品上现有的附魔,以争取获得一个新的随机附魔,但如果赌博失败,他们将失去所有附魔!
- 直观的 GUI 菜单 (
/eshop): 主菜单让玩家可以在经典且安全的附魔商店与风险较高的赌徒模式之间进行选择。
- 附魔书支持: 商店既支持直接为物品附魔,也支持制作可交易的附魔书。
- 分解系统 (
/disenchant): 单独的 GUI 允许玩家移除附魔并获得可配置的退款。
- 强大的管理员工具:
/enchanter <player> <enchant> <level>:即时施加任何附魔。
/eshop reload:动态重载配置文件。
- 深度配置: 控制从成本、赌博概率、黑名单附魔到最大等级覆盖的所有设置,包括所有消息和音效。
安装 ⚙️
重要提示: 如果从旧版本更新,您必须删除旧的 config.json,以便生成新的赌博设置。
- 停止服务器。
- 从 Modrinth 页面下载最新的
EnchantShop.jar。
- 安装依赖项: 您必须安装 Vault 和经济类插件(如 EssentialsX)。
- 将所有
.jar 文件放入服务器的 /plugins 文件夹中。
- 启动服务器 以生成新的
config.json。
- 根据您的喜好编辑
config.json,然后使用 /eshop reload!
使用方法 ?
对于玩家:
/eshop:手持物品以打开主菜单,然后选择“附魔物品”或“赌博物品”。
/disenchant:手持已附魔的物品以打开分解菜单。
对于管理员:
/eshop reload:重载配置文件。
/enchanter <player> <enchant> <level>:给予玩家某种附魔。
配置 ?
您可以在 plugins/EnchantShop/config.json 文件中配置商店的各个方面。该文件会自动生成并带有合理的默认值。
{
"costFormula": "base_cost * (level * level)",
"enchantmentBaseCosts": {
"minecraft:sharpness": 1000.0,
"minecraft:mending": 10000.0
},
"mainMenuTitle": "&8Main Menu",
"successSound": "ENTITY_PLAYER_LEVELUP",
"failSound": "ENTITY_VILLAGER_NO",
"gambleTickSound": "BLOCK_NOTE_BLOCK_HAT",
"gambleWinSound": "ENTITY_FIREWORK_ROCKET_TWINKLE",
"gambleLoseSound": "ENTITY_VILLAGER_DEATH",
"gambleDoubleSound": "UI_TOAST_CHALLENGE_COMPLETE",
"gambleChanceToWinPercent": 50,
"gambleChanceForSecondEnchantPercent": 20,
"messages": {
"prefix": "&8[&6EnchantShop&8] &r",
"gamble_no_enchants": "&cThe item you are holding must have at least one enchantment to gamble!",
"gamble_win": "&a&lVICTORY! &fYour item has been enchanted with &e{enchant} {level}&f!",
"gamble_win_extra": "&6&lJACKPOT! &fYou won an &eEXTRA&f random enchantment!",
"gamble_lose": "&c&lDEFEAT! &fAll enchantments on your item have been &cWIPED&f!"
},
"perEnchantPermissions": false,
"enchantmentBlacklist": [
"minecraft:binding_curse"
],
"maxLevelOverrides": {},
"disenchantRefundPercentage": 50.0
}
权限 ?️
EnchantShop 拥有强大的权限系统,以实现终极控制。
enchantshop.disenchant:允许使用 /disenchant 命令。(默认:true)
enchantshop.reload:允许使用 /eshop reload 子命令。(默认:op)
enchantshop.enchanter:允许使用 /enchanter 管理员命令。(默认:op)
enchantshop.buy.<enchant_name>:如果启用了 perEnchantPermissions,则需要此权限才能购买附魔。
enchantshop.admin:父节点权限,授予所有管理权限。
加入我们的社区! ?
有问题、建议,或者只是想聊聊?加入官方 Duckalds' Mods Discord 服务器!点击下方横幅加入。
EnchantShop
A complete enchanting system with a GUI shop, a high-stakes enchantment gambler, a disenchanter, and powerful admin tools.

After a long battle with the code demons, EnchantShop has emerged victorious! This plugin provides a seamless way for your players to spend their hard-earned in-game money to get the exact enchantments they want, bypassing the randomness of the vanilla enchanting table. (YES I'M PUTTING THIS BECAUSE THIS IS MY FIRST PLUGIN AND I WANT TO SHOW YOU HOW HARD IT WAS)
Features ✨
- NEW! Enchantment Gambler: A high-stakes "double or nothing" system! Players can wager the existing enchantments on an item for a chance to win a new random enchant, but risk losing them all if the gamble fails!
- Intuitive GUI Menu (
/eshop): A main menu lets players choose between the classic, safe Enchant Shop and the risky new Gambler.
- Enchanted Book Support: The shop works for both enchanting items directly and creating tradable Enchanted Books.
- Disenchanting System (
/disenchant): A separate GUI allows players to remove enchantments for a configurable refund.
- Powerful Admin Tools:
/enchanter <player> <enchant> <level>: Instantly apply any enchant.
/eshop reload: Reload the config on the fly.
- Deep Configuration: Control everything from costs, gamble chances, blacklisted enchants, and max level overrides to all messages and sounds.
Installation ⚙️
Important: If updating from a previous version, you must delete your old config.json to allow the new gambling settings to generate.
- Stop your server.
- Download the latest
EnchantShop.jar from the Modrinth page.
- Install the dependencies: You must have Vault and an economy plugin (like EssentialsX) installed.
- Place all
.jar files into your server's /plugins folder.
- Start your server to generate the new
config.json.
- Edit the
config.json to your liking, then use /eshop reload!
How to Use ?
For Players:
/eshop: Hold an item to open the main menu, then choose "Enchant Item" or "Gamble Item".
/disenchant: Hold an enchanted item to open the disenchanting menu.
For Admins:
/eshop reload: Reloads the configuration file.
/enchanter <player> <enchant> <level>: Gives an enchant to a player.
Configuration ?
You can configure every aspect of the shop in the plugins/EnchantShop/config.json file. The file is automatically generated with sane defaults.
{
"costFormula": "base_cost * (level * level)",
"enchantmentBaseCosts": {
"minecraft:sharpness": 1000.0,
"minecraft:mending": 10000.0
},
"mainMenuTitle": "&8Main Menu",
"successSound": "ENTITY_PLAYER_LEVELUP",
"failSound": "ENTITY_VILLAGER_NO",
"gambleTickSound": "BLOCK_NOTE_BLOCK_HAT",
"gambleWinSound": "ENTITY_FIREWORK_ROCKET_TWINKLE",
"gambleLoseSound": "ENTITY_VILLAGER_DEATH",
"gambleDoubleSound": "UI_TOAST_CHALLENGE_COMPLETE",
"gambleChanceToWinPercent": 50,
"gambleChanceForSecondEnchantPercent": 20,
"messages": {
"prefix": "&8[&6EnchantShop&8] &r",
"gamble_no_enchants": "&cThe item you are holding must have at least one enchantment to gamble!",
"gamble_win": "&a&lVICTORY! &fYour item has been enchanted with &e{enchant} {level}&f!",
"gamble_win_extra": "&6&lJACKPOT! &fYou won an &eEXTRA&f random enchantment!",
"gamble_lose": "&c&lDEFEAT! &fAll enchantments on your item have been &cWIPED&f!"
},
"perEnchantPermissions": false,
"enchantmentBlacklist": [
"minecraft:binding_curse"
],
"maxLevelOverrides": {},
"disenchantRefundPercentage": 50.0
}
Permissions ?️
EnchantShop has a robust permission system for ultimate control.
enchantshop.disenchant: Allows use of the /disenchant command. (Default: true)
enchantshop.reload: Allows use of the /eshop reload subcommand. (Default: op)
enchantshop.enchanter: Allows use of the /enchanter admin command. (Default: op)
enchantshop.buy.<enchant_name>: Required to buy an enchant if perEnchantPermissions is enabled.
enchantshop.admin: A parent node that grants all administrative permissions.
Join Our Community! ?
Have a question, a suggestion, or just want to hang out? Join the official Duckalds' Mods Discord server! Click the banner below to join.
评论 0
登录后参与评分
还没有评论,来抢沙发吧