
发现 bug / 订购数据包 / 其他 - Discord。
此数据包旨在添加“在线”银行功能,以简化服务器货币的使用。
使用说明:
玩家需要制作一张银行卡并消耗它以“注册”银行账户。如果玩家已经拥有账户,则无法再次消耗该物品。之后,玩家将能够使用以下命令:
- /trigger ob.balance - 查看你的余额
- /trigger ob.replenish - 用背包中的 1 个物品补充你的账户
- /trigger ob.withdraw - 从你的账户中取出 1 个货币物品
- /trigger ob.replenish set <value> - 用背包中的 <value> 个物品补充你的账户
- /trigger ob.withdraw set <value> - 从你的账户中取出 <value> 个货币物品
银行卡合成:

此数据包包含许多设置,你可以选择任何物品作为货币。
存在以下设置:
cardAnywhere (默认值: true)
允许玩家在任何地方使用他们的银行账户
makeAccountAnywhere (默认值: true)
允许玩家在任何地方注册银行账户
balanceTab (默认值: false)
在标签页(tab)中显示玩家的余额
allowCredits (默认值: false)
允许玩家在余额为 0 时仍能从账户取款
deathTaxPercent (默认值: 0)
死亡时扣除的账户百分比
bankAreaDistance(默认值:15)
银行区域的工作距离(以方块为单位)
giveKillerPercent(默认值:false)WIP
死亡时不从账户中扣除该百分比,而是将其转移给击杀者
所有命令及配置方法:
如何设置货币(默认:钻石)
选取将作为货币的物品,并输入以下命令:
/function online_bank:apply_currency
如何更改设置
通过输入以下命令:
/function online_bank:settings
聊天栏中将打开菜单,将鼠标悬停在 gamerules 上会显示其描述和提示,点击即可修改。还有一个按钮用于恢复默认设置。
如何给自己发放指定数量的货币
/function online_bank:give_currency
如何安装 Bank Area
对于 gamerule cardAnywhere、makeAccountAnywhere 和 bankAreaDistance,你需要 Bank Area。通过输入命令:
/function online_bank:give_bank_area
你将获得一个 Bank Area 刷怪蛋。将其放置在特定位置(例如:建造一座银行并将其放在中心),玩家即可在该设定半径内的银行区域使用他们的银行账户。
如何移除数据包
通过输入命令:
/function online_bank:remove_datapack
将移除数据包创建的所有相关内容。
如何向他人的账户发放货币
/scoreboard players set <nickname> ob.playerBalance <value>

Found bug / order datapack / other - Discord.
This datapack was intended to add "online" bank to simplify the use of server's currency.
Usage explanation:
The player will need to craft a Bank Card and consume it to "register" a Bank Account, if the player already has an Account, he will not be able to consume it. After which the player will be able to use these commands:
- /trigger ob.balance - see your balance
- /trigger ob.replenish - replenish your account with 1 item in inventory
- /trigger ob.withdraw - withdraw 1 currency item from your account
- /trigger ob.replenish set <value> - replenish your account with <value> items in inventory
- /trigger ob.withdraw set <value> - withdraw <value> currency item from your account
Bank Card craft:

This datapack has many settings, you can choose any item as currency.
There are the following settings:
cardAnywhere (default: true)
Allows players to use their Bank Account anywhere
makeAccountAnywhere (default: true)
Allows players to register Bank Account anywhere
balanceTab (default: false)
Shows the player's balance in the tab
allowCredits (default: false)
Allows players to withdraw from their account even at 0
deathTaxPercent (default: 0)
Percentage of the account that is removed upon death
bankAreaDistance (default: 15)
Bank Area working distance (in blocks)
giveKillerPercent (default: false) WIP
Instead of removing the percentage from the account upon death, it transfers to the killer
All commands and how to configure:
How to set currency (default: diamond)
Take the item that will become the currency and write the following command:
/function online_bank:apply_currency
How to change settings
By writing the following command:
/function online_bank:settings
menu will open in the chat, hovering the cursor over gamerules will show their description and tips, clicking on them will change them. There is also a button to set default settings.
How to give yourself a set currency
/function online_bank:give_currency
How to install Bank Area
For gamerules cardAnywhere, makeAccountAnywhere and bankAreaDistance, you need Bank Area. By typing the command:
/function online_bank:give_bank_area
You will get a Bank Area spawn egg by placing it in a certain location (Example: build a bank and place it in the center), players will be able to use their Bank Account there within a set radius.
How to remove datapack
By writing the command:
/function online_bank:remove_datapack
Will be removed everything possible from the datapack created.
How to give currency to someone's account
/scoreboard players set <nickname> ob.playerBalance <value>
评论 0
登录后参与评分
还没有评论,来抢沙发吧