YMS2001 出品的台球与斯诺克数据包
展示视频
Snooker Bot 打出 147 满分杆
点击下方缩略图在 YouTube 上观看:
中文视频
▶ 点击观看:斯诺克电脑玩家打出147满分杆
▶ 2026斯诺克世锦赛决胜局复刻:吴宜泽单杆85分夺冠
简介
本数据包专为喜爱台球的 Minecraft 玩家设计。
在此,pool(台球) 广义上指包括 Snooker(斯诺克)、8-Ball(美式八球)、9-Ball(九球) 及相关变体在内的所有使用球杆的运动。
该数据包支持 Minecraft Java Edition 1.16+ 中的 单人、人机对战和双人游玩 模式。它完全支持没有 OP 权限或在生存模式下游玩的玩家。
只需几次点击即可建造各种颜色和尺寸的台球桌,并在 Minecraft 1.21+ 中自由调整球的大小。
支持的游戏模式:
- Snooker(斯诺克)
- UK 8-Ball(英式八球)
- Generic 8-Ball(通用八球)
- 9-Ball(九球)
- Rule-free practice mode(无规则练习模式)
依赖项
本数据包依赖于以下组件:
从 Modrinth 安装时,兼容的资源包应会自动安装。
请尽可能使用匹配版本的数据包和资源包。如果找不到完全匹配的资源包版本,这意味着数据包已更新且无需资源包同步更新;在这种情况下,请使用最接近的早期兼容资源包版本。
请确保在使用前已安装并启用了所需的资源包。
详细说明文档 (GitHub)
中文版使用说明 (GitHub)
模组版本
从 v1.2.0 开始,该数据包也提供了 模组版本。
模组版本会自动加载数据包,因此你不需要手动将其放入每个世界的 datapacks 文件夹中。常规的数据包版本仍得到完全支持。
安装
1. 下载适用于正确游戏版本的以下内容
- Pool Datapack(台球数据包)
- Pool and Billiards Resource Pack(台球资源包)(请检查资源包是否具有匹配的小版本号以确保兼容性,即 v1.3.x 的数据包应使用 v1.3.x 的资源包)
2. 找到你的 Minecraft 目录
在 Windows 上通常是:
C:/Users/YourUserName/AppData/Roaming/.minecraft
3. 安装资源包
将 Pool Resource Pack 移动到:
.minecraft/resourcepacks
4. 安装数据包
打开你要安装数据包的所在世界文件夹:
.minecraft/saves/<your world>/datapacks
将文件移入此文件夹:
- Pool Datapack(台球数据包)
每个世界都需要单独放置一份数据包副本。
替代方案:模组版本,自 v1.2.0 起可用
你可以下载模组版本并将其放入 .minecraft/mods 文件夹中。
模组版本会自动加载数据包,因此你不需要每次都将数据包放入每个世界的 datapacks 文件夹中。
5. 启动 Minecraft 并打开世界
6. 启用资源包
Esc -> Options -> Resource Packs
将 Pool Resource Pack 移至已启用的一侧。
7. 运行以下命令
/reload
8. 尽情游玩
以下是一些有用的命令。
- 直接在聊天栏不点击任何按钮的情况下打开命令窗口。
/function app:help/pool/commandwindow
或者在没有权限的情况下使用/trigger swPool__trigger set 1 - 运行加载函数,以便进行故障排除/检查缺失设置,而不想运行
reload时。
/function pool:classes/main/load - 不使用命令窗口终止游戏。
/function pool:classes/lobby/terminate_helper - 不使用命令窗口移除球桌。
/function pool:classes/table/clear
包含的机制
本数据包包含以下系统:
- 简化的台球 牛顿物理学模拟
- 开球时的 基于神经网络的球架模拟
- 简化的 比赛设置和游戏规则
- 基于聊天的 GUI 以实现便捷交互;大多数操作通过鼠标完成
- 支持 English 和 简体中文
为了性能和清晰度,模拟省略了现实中的一些效应,例如袋口与球之间的摩擦、库边变形以及其他微小的物理复杂性。
附加信息
完整的文档、安装和使用指南以及源代码可在以下地址获取:
兼容性说明
对于 1.21 之前 的 Minecraft 版本,你可能需要编辑 pack.mcmeta 以移除兼容性警告。
由于数据包内容在支持的各个版本之间基本相同,因此调整这一个文件通常比维护多个几乎相同的副本更容易。
请参考 Pack Format 文档,并根据你的 Minecraft 版本更新 pack.mcmeta:
Pool and Billiards Datapack by YMS2001
It got a website for all info you need!
Showcase Videos
Snooker Bot Makes a 147 Maximum Break
Click the thumbnail below to watch on YouTube:
中文视频
▶ 点击观看:斯诺克电脑玩家打出147满分杆
▶ 2026斯诺克世锦赛决胜局复刻:吴宜泽单杆85分夺冠
About
This datapack is designed for Minecraft players who enjoy cue sports.
Here, pool broadly refers to cue sports including Snooker, 8-Ball, 9-Ball, and related variants.
The datapack supports single-player, play-with-bot, and two-player gameplay in Minecraft Java Edition 1.16+. It also fully supports players without OP permission or in survival mode.
Build pool tables of various colors and sizes in just a few clicks, and freely adjust ball sizes in Minecraft 1.21+.
Supported game modes:
- Snooker
- UK 8-Ball
- Generic 8-Ball
- 9-Ball
- Rule-free practice mode
Dependencies
This datapack depends on the following component:
- Required — Pool and Billiards Resource Pack
When installing from Modrinth, the compatible resource pack should be installed automatically.
Please use matching versions of the datapack and resource pack whenever possible. If an exact matching resource-pack version is not available, this means the datapack was updated without requiring a resource-pack update; in that case, use the closest earlier compatible resource-pack version.
Make sure the required resource pack is installed and enabled before use.
Detailed README (GitHub)
中文版使用说明(GitHub)
Summary of Recent Changes
近期改动总结
Mod Version
Starting from v1.2.0, the datapack is also available as a mod version.
The mod version automatically loads the datapack, so you do not need to place it into each world’s datapacks folder manually. The regular datapack version is still fully supported.
Installation
1. Download the following for the correct game version
- Pool Datapack
- Pool and Billiards Resource Pack (Please check that the resourcepack has a matching minor version to ensure compatibility, i.e., v1.3.x datapack should use v1.3.x resourcepack)
2. Locate your Minecraft directory
On Windows this is usually:
C:/Users/YourUserName/AppData/Roaming/.minecraft
3. Install the resource pack
Move Pool Resource Pack into:
.minecraft/resourcepacks
4. Install the datapacks
Open the world folder where you want to install the datapacks:
.minecraft/saves/<your world>/datapacks
Move the file into this folder:
- Pool Datapack
Each world requires its own copy of the datapacks.
Alternative mod version, available since v1.2.0
You can download the mod version and place it into .minecraft/mods
The mod version automatically loads the datapack, so you do not need to place it into each world's datapacks folder every time.
5. Start Minecraft and open the world
6. Enable the resource pack
Esc -> Options -> Resource Packs
Move Pool Resource Pack to the enabled side.
7. Run the following command
/reload
8. Enjoy
Here are a few helpful commands.
- Open command window directly without clicking any buttons in chat.
/function app:help/pool/commandwindow
or/trigger swPool__trigger set 1if without permission - Run the loading function, in case you want to troubleshoot / check missing settings and don't want to run
reload.
/function pool:classes/main/load - Terminate a game without using command window.
/function pool:classes/lobby/terminate_helper - Remove a table without using command window.
/function pool:classes/table/clear
Included Mechanics
This datapack includes the following systems:
- Simplified Newtonian physics simulation for pool balls
- Neural network-based rack simulation during the break
- Simplified match setup and game rules
- Chat-based GUI for convenient interaction; most actions are done with the mouse
- Support for English and 简体中文
For performance and clarity, the simulation omits some real-world effects such as friction between pockets and balls, cushion deformation, and other minor physical complexities.
Additional Information
Full documentation, installation and usage guides, and source code are available here:
Compatibility Note
For Minecraft versions before 1.21, you may need to edit pack.mcmeta to remove the compatibility warning.
The datapack content is mostly identical across supported versions, so adjusting this single file is usually easier than maintaining multiple nearly identical copies.
Please refer to the Pack Format documentation and update pack.mcmeta according to your Minecraft version:
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Pool and Billiards
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
v1.3.8
本次更新引入了交互式教程,提升了碰撞稳定性,并修复了若干 gameplay 问题。
新功能
- 添加了交互式教程,引导新玩家获取球杆、搭建球桌、摆放台球并进行第一次击打。
- 在斯诺克(Snooker)模式中增加了对机器人重试的支持,当适用“犯规及自由球”规则时,允许要求机器人重新击打该杆。
物理改进
- 提升了碰撞稳定性,减少了因球体重叠导致的视觉故障。
- 增加了微小的重叠容差,作为防止因数值精度不稳定偶尔导致球体穿透的安全措施。
- 移除了之前的反向运动修正方法。
错误修复
- 修复了在终止游戏时,斯诺克的自由球条件未重置的问题。
- 修复了在机器人思考期间意外出现的九球(9-Ball)复位调试信息。
v1.3.7
本次更新引入了完全可操作的斯诺克 AI 对手,改进了 AI 的规划与击球选择,并增加了更多用于调整难度和物理精度的选项。
新功能
-
新增完全可操作的斯诺克 AI 对手!
- AI 在追求最大化得分的同时,会考虑后续击球的难度。
- 当进攻选项不佳或需要通过做斯诺克来获胜时,会触发防守性击球搜索。
-
为 AI 玩家新增了深度为 2 的搜索。
- AI 现在可以模拟潜在的后续击球,从而更好地决定母球位置。
- 这需要额外的计算量,但得益于先前更新中引入的性能优化,现在已变得切实可行。
-
新增可调节的 AI 玩家击球力度精度设置。
- 可以对 AI 的击球力度应用随机变化,允许玩家调整其难度。
- 更高的精度使 AI 表现更稳定,而较低的精度则会引入更多失误。
-
新增可调节的碰撞检测精度设置。
- 控制物理引擎检查潜在碰撞的附近球的数量。
- 较高的设置可降低漏检碰撞的风险,特别是在台球紧密排列(如斯诺克)的情况下,但会略微增加计算负载。
- 较低的设置通常足以满足正常游戏需求,并提供更好的性能。
AI 改进
-
改进了击球评估,以偏向更合理的母球位置。
- 对涉及过多母球碰撞的模拟击球施加惩罚,因为复杂的轨迹更难预测。
- 增加了母球碰撞袋口的惩罚,因为微小的误差会增加洗袋(Scratch)的风险。
- 对靠近库边的母球位置施加渐进式惩罚,因为随后的击球可能更加困难。
- 这些调整降低了冒险性后续机会的预估价值,但并未完全阻止困难或必要的击球,例如拆解球堆。
-
改进了 AI 的模拟与评估调度器,以减少意外的死锁和中断。
技术改进
-
新增使用实体 NBT 直接更新位置的功能,作为基于传送的移动方式的替代方案。
- 简化了移动计算,提高了定位精度,并减少了更新球位所需的命令数量。
- 在测试中,平均运动负载降低了 44.8%,新方法的运行速度大约快了 1.8 倍。
- 然而,原有的传送方法会截断微小位移,导致球之间留有轻微间隙。更精确的 NBT 方法减少了这种间隙,但由于数值误差,可能会增加球体相互穿模的可能性。
- 此功能默认禁用。要启用它,请运行
/function app:settings/pool/motion/use_nbt。
-
对于 Minecraft 1.17+,斯诺克现在在适用情况下使用标记实体(marker entities)而非区域效果云(area effect clouds)。
其他更改
-
移除了“尽快模拟”(Simulate ASAP)模式。
- 将模拟分布在多个游戏刻(ticks)上现在是管理计算负载更实用的方式。
- 维护单独的 ASAP 模拟路径已不再值得,尤其是随着更高级规划功能的引入。
-
移除了在每个击球中选择 5 种或 10 种力度/旋转组合的选项,并将默认值设置为 10 种组合,从而简化了 AI 配置。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧