HideCore-数据包
一个易于设置的数据包,可将任何 Minecraft 世界/服务器转变为躲猫猫(Hide & Seek)模式。
[!WARNING]
所需 Minecraft 版本:1.21.4
功能
✔️ 自动结束游戏(当 1 名玩家或一支队伍死亡时触发)!
✔️ 设置书和自定义 /trigger 命令!
✔️ 无需坐标!(无需硬编码坐标)!
✔️ 追踪者工具(掉落时为躲藏者提供发光效果)!
✔️ 计时器(5 分钟、7 分钟、10 分钟、15 分钟、20 分钟)!
✔️ 发光烟花(为躲藏者提供发光效果)!
✔️ 额外躲藏者生命值(默认值:10、14、20)!
✔️ 胜率系统(胜利/失败/总场次等)!
✔️ 自动烟花(需在 HideCore\data\core\function\mechanics\firework.mcfunction 中配置)!
✔️ 防退出系统(如果玩家断开连接,其角色将降级:躲藏者 -> 追踪者 -> 旁观者(离开游戏))
安装
[!CAUTION]
在将数据包添加到服务器/世界之前,请务必备份
因为该数据包会使用出生点、传送、物品清除等功能,可能会导致
生存模式出现问题
- 下载并将
HideCore.zip 移动到 [world name] / datapacks
- 在世界/服务器中输入
/datapack enable "file/HideCore" 以启用数据包
[!NOTE]
如果数据包的名称不是 HideCore.zip,你可能需要先使用 /datapack list 命令
- 如果收到消息 "└ Core loaded",则表示数据包已加载,然后使用
/function core:install/install_all
- 设置标记(出生点和大厅)
/function core:install/set_markers 并按照聊天中的说明操作
未来出生蛋将被聊天中的可点击文本替换
- 在书中设置躲猫猫设置(如果之前删除了它,请使用
/function core:install/setting_book)
此外,你可以在大厅放置一块木牌(统计信息)
如何游玩?
/function _:start_game
如果你愿意,可以在大厅放置一个带有此函数的命令方块
/function _:end_game
/function _:reload
如果你决定修改数据包,并且懒得反复卸载和加载数据包
自定义命令
/trigger lobby (仅在未运行游戏时有效)
/trigger self_kill (如果玩家感到无聊或其他类似情况)
/trigger stats (显示胜率和统计数据)
贡献
我不是编程高手,所以如果你有任何建议/改进,欢迎提交拉取请求,因为该数据包最初是为 1.16.5 制作的,但后来我重写了大部分代码,保留了原版 1.20.6 数据包的部分内容,因此可能存在一些未使用/无用的函数可以做得更好,例如实际上不应该存在的 debug.mcfunction
HideCore-Datapack
A simple to setup Datapack that turns any Minecraft world/server into H&S.
[!WARNING]
Required Minecraft version: 1.21.4
Features
✔️ Auto End Game (When 1 player or one team dies)!
✔️ Setting book and custom /trigger commands!
✔️ No Coordinates needed! (No Coordinates required to be hardcoded)!
✔️ Seeker Tool (Gives Hiders a glowing effect on drop)!
✔️ Timer ( 5 min, 7 min, 10 min, 15 min, 20 min )!
✔️ Glowing Fireworks (Gives Hiders a glowing effect)!
✔️ Extra Hider HP (Default:10 , 14, 20)!
✔️ Winrate system ( Wins/Lose/Total played...)!
✔️ Auto Firework (Must be configured in HideCore\data\core\function\mechanics\firework.mcfunction)!
✔️ Anti Leave system (If player disconnects player role downgrades Hider -> seeker -> spectator (out of game) )
Installation
[!CAUTION]
Before adding Datapack to your server/world make sure you make a backup
because datapack uses spawnpoints, teleportation, item clearing and other that may or will break
survival
- Download and move
HideCore.zip in [world name] / datapacks
- Enable datapack by typing
/datapack enable "file/HideCore" in your world/server
[!NOTE]
You may need to use /datapack list command before if datapack`s name isnt HideCore.zip
- If you received message "└ Core loaded" it means datapack was loaded, then use
/function core:install/install_all
- Setup markers (Spawns and lobby)
/function core:install/set_markers and follow the instruction in chat
Spawn eggs will be replaced with clickable text in chat in future
- Setup Hide & Seek settings in book (If you deleted it before
/function core:install/setting_book)
Additionally you can place wooden sign (Stats) in your lobby
How to play?
/function _:start_game
You may make a command block with that function in your lobby if you want
/function _:end_game
/function _:reload
If you decide to modify datapack and you are lazy to unload and load pack again and again
Custom commands
/trigger lobby (Works if game isnt running)
/trigger self_kill (If player got bored or something like that)
/trigger stats (displays Win rate and other stats)
Contribution
I am not a god at coding so if you have any suggestion / improvment feel free to make pull requests, because pack was originally made for 1.16.5 but after some time I kinda rewrite all code keeping parts of original pack for 1.20.6, so there may be some unused / useless functions that could be done better, for example debug.mcfunction that shouldnt exsist in fact
评论 0
登录后参与评分
还没有评论,来抢沙发吧