Compatibility
Minecraft: Java Edition
1.21.4
1.21.1
Platforms
Supported environments
Client-side
Links
Tags
Creators
Details
More BBBoatHud
Addon for the mod BBBoatHud (required for this mod to work).
Variables
| Variable | Description |
|---|---|
pressingSpace |
Space is held |
pressingLeftClick |
Left click is held |
pressingRightClick |
Right click is held |
sliderValue |
Current slider value inside renderSlider function |
Functions
| Function | Returns | Description |
|---|---|---|
print(message) |
- | Prints a message to chat |
renderButton(width, height, canBeUsed, anchor, function) |
- | Draws a clickable button |
renderSlider(width, height, canBeUsed, minValue, maxValue, value, anchor, function) |
- | Draws a draggable slider, sliderValue is set before the callback |
onMenuOpen(anchor, function) |
- | Run the function when the menu gets open |
onMenuClose(function) |
- | Run the function when the menu gets closed |
getWidth("path") |
number | Returns the width of a texture in pixels |
getHeight("path") |
number | Returns the height of a texture in pixels |
getConfig(key, fallback) |
value | Returns a saved config value, or fallback if not set |
setConfig(key, value) |
- | Saves a value to the module's config (string, number, or boolean) |


