Minecraft服务器和实用程序

Bravo的Python项目详细描述


bravo是minecraft的一个优雅、快速和可扩展的实现 alpha/beta/“现代”协议。只实现服务器端。也很好 有一些工具可用于检查 我的世界。

功能

标准功能

  • Console
  • Login and handshake
  • Geometry (“chunk”) transfer
  • Location updates
  • Passage of time (day/night)
  • Block construction and deconstruction
  • Entities
    • Players
    • Pickups
    • Tiles
      • Chests
      • Furnaces
      • Signs
  • Lighting
  • Save controls
  • Server-side inventories

扩展功能

  • Pluggable architecture
    • Commands
      • Inventory control
      • Teleports
      • Time of day
    • Terrain generation
      • Erosion
      • Simplex noise, 2D and 3D
      • Water table
    • Seasons
      • Spring
      • Winter
    • Physics
      • Sand, gravel
      • Water, lava
      • Redstone
  • Chat commands
  • IP ban list

安装

Bravo目前需要Python2.6或任何更新的Python2.x。 在cpython和pypy上工作。

bravo附带一个标准setup.py。您需要setuptools/distribute,但是 大多数发行版已经为您提供了它。Bravo取决于以下几点 来自pypi的外部库:

  • construct, version 2.03 or later
  • Twisted, version 11.0 or later

如果安装模块化扭曲,则需要扭曲的海螺。

对于irc支持,需要扭曲的单词;通常称为 python在包管理器中扭曲的单词或扭曲的单词。

对于web服务支持,必须安装twisted web;通常称为 python twisted web或twisted web。

窗口

无需安装,可在以下位置使用独立的可执行文件:

http://bravoserver.org/downloads.html

debian&ubuntu

Debian及其衍生物,比如ubuntu,已经扭曲了 包管理器。

$ sudo aptitude install python-twisted

如果空间狭小,则只能安装部分twisted。

$ sudo aptitude install python-twisted-core python-twisted-bin python-twisted-conch

关于ubuntu的说明

如果你使用的是Ubuntu10.04LTS,你需要一个比 ubuntu提供。有个ppa在 http://launchpad.net/~twisted-dev/+archive/ppa提供最新版本 所有扭曲的包裹。

软呢帽

Twisted可以从标准Fedora存储库安装。

$ sudo yum install python-twisted python-twisted-conch

格图

Gentoo确实为Bravo带来了新的构造,但它必须 没有遮掩。

# emerge twisted twisted-conch

LFS/Virtualenv/独立

如果出于某种原因,您正在安装到一个非常原始或非托管的地方,并且 您要确保所有内容都是从最新可用的源构建的 在pypi上,我们强烈建议安装bravo的pip,因为它可以处理所有 对你的依赖。

$ pip install Bravo

bravo也可以选择使用安瓿来卸载它的一些内部 计算到单独的进程,提高服务器响应时间。安瓿 将自动检测并完全可选。

$ pip install ampoule

运行

bravo包含一个twistd插件,所以运行起来非常容易。只是复制 bravo.ini.example到bravo.ini,并将其放在以下位置之一:

  • /etc/bravo/
  • ~/.bravo/
  • Your working directory

然后运行twisted插件:

$ twistd -n bravo

贡献

贡献是容易的!把你的密码给我。以git表示,diff是值得赞赏的 format;github请求非常好。

需要考虑的事项:

  • I will be rather merciless about your code during review, especially if it adds lots of new features.
  • Some things are better off outside of the main tree, especially if they are moving very fast compared to Bravo itself.
  • Unit tests are necessary for new code, especially feature-laden code. If your code is absolutely not testable, it’s not really going to be very fun to maintain. See the above point.
  • Bravo is MIT/X11. Your contributions will be under that same license. If this isn’t acceptable, then your code cannot be merged. This is really the only hard condition.

常见问题解答

常见问题转移到文档;请参阅docs/faq.rst或更有用的, http://bravo.readthedocs.org/en/latest/faq.html对于html版本。

许可证

bravo是mit/x11授权的。有关许可证的实际文本,请参见许可证文件。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java脂肪罐立即关闭   javascript如何将PNG数据字符串转换为ReactJS中的可下载文件?   java新文件作为条件的一部分时不返回布尔值   java父变量如何存储比父变量大的子变量?   java从资源管理器调用war文件内的HTML页面   Java接口中的静态方法和默认方法有什么区别?   java proguard不创建输出jar   java在不遍历的情况下查找二叉树的大小   swing删除特定单词Java中的突出显示   java我的表生成失败   为什么我既不能在eclipse控制台中也不能在调试器中看到Java字符数组中的内容?   Java字符串计算器   java如何在onPostExecute(UI阻塞任务)运行时允许设备旋转   将Java转换为javascript代码   如何在具有透明度的java BuffereImage中读取像素颜色   visual studio代码VSCode Java不是linting或自动完成局部变量,而是自动完成Java快捷方式,如“sysout”   java为什么Eclipse有时会重建整个工作区?   java如何确保JUnit@Before有一个伴随的@After