BlockShips

插件

· 作者 def9a2a4

使用方块建造船只或飞艇,并平滑地航行或飞行——无需客户端模组或资源包!利用显示实体实现非网格对齐的方块。

0 本站下载 0 关注 更新于 1 周前

最新 0.0.19 · 26.3 · Paper / Purpur

一键开服(送7天)

BlockShips

一款 Minecraft 插件,允许玩家创建可骑乘、具备物理效果的船只。使用方块建造自定义船只或生成预置船只,然后扬帆大海或翱翔天空。这一切都无需任何客户端模组或资源包!

在 Modrinth 下载:modrinth.com/plugin/blockships

与 BlockShips 配合良好的其他插件:

  • DynLight 用于动态光照 -- 如果没有安装此插件,组装后的自定义船只上的发光方块将不会生效。

Demo Gif

预制小型云杉木船 位于预制小型云杉木船旁边的小型自定义船只
A prefab small spruce ship A small custom ship next to the prefab small spruce ship

A variety of prefab and custom ships

警告: 本项目处于 Alpha 阶段。请预期会出现漏洞、缺失的功能以及破坏性变更。请自行承担风险,并经常备份你的世界。开发者不对由此插件造成的任何损坏负责。

功能

使用允许的方块建造船只,在其上放置一个“船舵”并右键点击,然后在菜单中点击“组装”。你的方块现在变成了一艘移动的船!根据船上方块的密度(完全可配置),你的船可能会在水中浮得更低或更高。使用足够多的“比空气轻”的方块(如萤石),你的船就会成为一艘飞行的飞艇。

船只可以包含以下元素:

  • 功能性方块 - 工作台、铁砧、附魔台等正常工作。(熔炉/酿造台尚未完全支持)
  • 储物空间 - 箱子、 barrels、发射器等保持可访问状态
  • 座位 - 任何台阶都可以变成供乘客坐下的座位。
  • 拴绳点 - 拴在栅栏上的任何东西都会固定在船上。你可以在船移动时将生物拴到船上。预制船只具有单个拴绳点。
  • 大炮 - 后方放置黑曜石的发射器可以发射其内容物。可以通过船只菜单全船开火,或者右键点击黑曜石来发射。
  • 生命值与伤害 - 船只拥有生命值,会受到碰撞/攻击的伤害,并随时间恢复。当生命值耗尽时,船只会尝试将自己重新放置在世界中。
  • 音效与特效 - 移动和伤害伴有视觉特效和音频效果。
  • 溺尸船长 - 稀有的溺尸怪物携带船舵生成
  • 动态光照 - 当安装了 DynLight(可选)时,船上的发光方块(萤石、灯笼、火把等)会发出动态光

自定义船只

  1. 使用允许的方块建造结构(查看或在 blocks.yml 中编辑)
  • 通常,木材/金属/功能性方块是允许的,而石头/泥土/其他自然方块则不允许
  • 提供光照的方块,如萤石、末影烛台和信标,可作为浮力辅助。足够多的这些方块,你就能得到一艘飞艇!
  1. 制作“船舵”
  2. 将船舵放置在你的结构上
  3. 右键点击船舵进行组装
  4. 再次右键点击以登船并操控
  5. 右键点击船舵,或潜行时右键点击,以打开菜单并拆解

预制船只

生成即用的船只,可自定义旗帜/颜色/木材类型:

  • 小型船只 - 快速、轻便的水上载具。两个座位和一个双层箱。
  • 大型船只 - 更大的水上载具,拥有更多生命值。两个双层箱,多个座位。
  • 小型飞艇 - 悬浮在空中,具备垂直控制功能。同样有两个座位和一个双层箱。

指令: /blockships give <item> (物品: ship_wheel, small_ship, large_ship, small_airship)

物理系统

  • 在船上行走 - 玩家在航行/飞行时可以在甲板上走动。这目前仍有漏洞!
  • 浮力 - 船只根据方块重量和密度漂浮。有时会有漏洞!
  • 移动 - 加速度、阻力和碰撞响应
  • 碰撞检测 - 船只与地形和实体交互(与其他船只交互存在漏洞)

控制方式

按键 动作
W 前进
S 后退 / 刹车
A 左转
D 右转
Space 上升(仅限飞艇)
Sprint 下降(仅限飞艇)

合成配方

物品 合成配方
Ship Wheel Ship Wheel
Small Ship
Wood type, banner customizable
Small Ship
Large Ship
Wood type, banner customizable
Large Ship
Ship Balloon
Wool color customizable
Ship Balloon
Small Airship
Wood type, balloon type customizable
Small Airship

Cannons

Cannons Firing Cannon Menu
Cannons Firing Cannon Menu (or, right click obsidian to fire individually)

Commands

Command Description Permission
/blockships help Show help and list all commands -
/blockships info Show ship and wheel statistics -
/blockships dismount Force-dismount from a ship blockships.dismount
/blockships reload Reload configuration blockships.reload
/blockships give <item> Give yourself a ship wheel or ship kit blockships.give
/blockships recipes [player] Unlock crafting recipes blockships.recipes
/blockships forcedisassembleall (DANGEROUS) Disassemble all custom ships blockships.admin
/blockships killentities (DANGEROUS) Remove all ship entities blockships.admin

Installation

  1. Download the BlockShips jar file from modrinth: modrinth.com/plugin/blockships
  2. IMPORTANT: Download ProtocolLib if using 1.21.2 or below! ProtocolLib is no longer required as of BlockShips 0.0.16
  3. Place both jars in your server's plugins folder
  4. Restart the server

Configuration

config.yml

Main plugin settings including:

  • Ship physics (speed, acceleration, drag)
  • Buoyancy values (density, strength)
  • Collision settings (mass, response)
  • Crafting recipes

blocks.yml

Configure which blocks can be used in custom ships:

  • Weight scale - Affects buoyancy
  • Collider - Custom collision shapes
  • Seat/storage - Special block behaviors

Inspiration

This plugin is inspired by mods which also implement rideable ships, as well as plugins which have attempted similar functionality. I made this plugin because I realized that with the addition of display entities, it might be possible to create a better ship plugin than previously possible, but without requiring any client-side mods. No code from any of other project has been used. In particular, this plugin was inspired by:

Although this plugin predates them, you should also check out the extremely cool Create Aeronautics Mod, as well as the similar SimpleShips plugin!

License

You are free to use this plugin only for non-commercial projects and servers. For commercial use, please contact the author for a license. For more details, see the LICENSE.txt file.

Developing

You will need java and gradle installed. Running make build will compile the plugin and create a jar file in bin/.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源