Skip to Content

Height Limit

Block overlay and HUD display to help you build up to map height limits

Integration

How to toggle the mod

public void toggleHeightLimitExample(Player viewer, boolean value) { Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId()); apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModHeightLimit.ENABLED, value)); }

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: false
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.25F
      • Maximum: 5.0F
  • RENDER_RANGE

    • How far around you the block overlay is drawn
    • Config Key: render-range
    • Values
      • Type: Integer
      • Default: 4
      • Minimum: 1
      • Maximum: 8
  • HEIGHT_LIMIT_OVERLAY

    • Display height limit information on the HUD
    • Config Key: height-limit-overlay
    • Values
      • Type: Boolean
      • Default: true
  • TEXT_SHADOW

    • Adds a shadow to text
    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: true
  • BACKGROUND

    • Config Key: background
    • Values
      • Type: Boolean
      • Default: true
  • BORDER

    • Config Key: border
    • Values
      • Type: Boolean
      • Default: false
  • BORDER_THICKNESS

    • Config Key: border-thickness
    • Values
      • Type: Float
      • Default: 0.5F
      • Minimum: 0.5F
      • Maximum: 3.0F
  • AUTO_ALIGN

    • Automatically determine text alignment from position. Disable to manually set alignment
    • Config Key: auto-align
    • Values
      • Type: Boolean
      • Default: true
  • AUTO_COLOR_DISTANCE

    • Distance changes color depending on how close you are to the height limit
    • Config Key: auto-color-distance
    • Values
      • Type: Boolean
      • Default: true
  • TITLE_COLOR

    • Config Key: title-color
    • Values
      • Type: String
      • Default: #FFFFFF55
  • TEXT_COLOR

    • Config Key: text-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • NUMBER_COLOR

    • Config Key: number-color
    • Values
      • Type: String
      • Default: #FF55FF55
  • BACKGROUND_COLOR

    • Config Key: background-color
    • Values
      • Type: String
      • Default: #6F000000
  • BORDER_COLOR

    • Config Key: border-color
    • Values
      • Type: String
      • Default: #9F000000