More BBBoatHud
作者:rebot | 分类:模组
Minecraft 版本: 1.21.4
平台: fabric
标签: utility
More BBBoatHud
Adds pressingSpace, pressingLeftClick, pressingRightClick, touchingBlock, and touchingEntity to BBBoatHud that is required for this mod to work.
About
BBBoatHud exposes boat input states like pressingForward, pressingBack, pressingLeft, pressingRight to Lua modules, but doesn't track jump/attack/use inputs, nor whether the boat is touching an entity. This addon fills that gap.
Variables
| Variable | Description |
|---|---|
pressingSpace |
Space/jump key is held |
pressingLeftClick |
Left click/attack key is held |
pressingRightClick |
Right click/use key is held |
touchingBlock |
The boat is colliding with a block horizontally (wall impact; the ground never triggers it) |
touchingEntity |
The boat is touching a collidable entity |
Functions
| Function | Returns | Description |
|---|---|---|
print(message) |
— | Prints a message to chat |
getWidth("path") |
number | Width of a texture in pixels (0 if missing) |
getHeight("path") |
number | Height of a texture in pixels (0 if missing) |
The print() function shows a blue underlined message in chat. Hover to see which module sent it.
Texture paths work the same as renderTexture — relative to textures/bb_boat_hud_modules/ in the module's namespace.
local w = getWidth("my_texture.png")
local h = getHeight("my_texture.png")
Included modules
After installing, go to the Add Modules tab in /bb_boat_hud and find the morebbboathud namespace:
- crash_sounds — plays
metal_pipewhen the boat collides with a block andvineboomwhen it touches an entity (edge-triggered, so it plays once per collision). Block detection uses the boat'shorizontalCollision, so the ground never triggers it
How to configure
Use /bb_boat_hud to open the web configuration interface, then:
- Go to the Add Modules tab
- Browse to the
morebbboathudnamespace - Switch to Active Modules to adjust position, scale, rotation, and anchor
License
GNU General Public License v3.0
请登录后举报
暂无评论,抢个沙发吧~