Apollo
Developers
Mods
BlockOutline

Block Outline

Allows you to customize the outline or add an overlay to the block you are pointing at.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: block-outline
    • Values
      • Type: Boolean
      • Default: true
  • BLOCK_OUTLINE_WIDTH

    • Config Key: block-outline-width
    • Values
      • Type: Float
      • Default: 2.0F
      • Minimum: 1.0F
      • Maximum: 10.0F
  • BLOCK_OUTLINE_COLOR

    • Primary block outline color
    • Config Key: block-outline-color
    • Values
      • Type: String
      • Default: #66000000
  • BLOCK_OUTLINE_COLOR_END

    • Secondary block outline color
    • Config Key: block-outline-color-end
    • Values
      • Type: String
      • Default: #66000000
  • BLOCK_OUTLINE_INTERPOLATE_ALPHA

    • If the transparency should also blend between both outline colors
    • Config Key: block-outline-interpolate-alpha
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_OUTLINE_ACCURATE

    • If the exact block bounding box should be used, this comes at a slight performance cost
    • Config Key: block-outline-accurate
    • Values
      • Type: Boolean
      • Default: true
  • BLOCK_OUTLINE_TRAVERSAL

    • If the outline colors should travel through the block
    • Config Key: block-outline-traversal
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_OUTLINE_TRAVERSAL_SPEED

    • Config Key: block-outline-traversal-speed
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.15F
      • Maximum: 5.0F
  • BLOCK_OVERLAY

    • Config Key: block-overlay
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_OVERLAY_COLOR

    • Primary block overlay color
    • Config Key: block-overlay-color
    • Values
      • Type: String
      • Default: #1A000000
  • BLOCK_OVERLAY_COLOR_END

    • Secondary block overlay color
    • Config Key: block-overlay-color-end
    • Values
      • Type: String
      • Default: #1A000000
  • BLOCK_OVERLAY_INTERPOLATE_ALPHA

    • If the transparency should also blend between both overlay colors
    • Config Key: block-overlay-interpolate-alpha
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_OVERLAY_ACCURATE

    • If the exact block bounding box should be used, this comes at a slight performance cost
    • Config Key: block-overlay-accurate
    • Values
      • Type: Boolean
      • Default: true
  • BLOCK_OVERLAY_TRAVERSAL

    • If the overlay colors should travel through the block
    • Config Key: block-overlay-traversal
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_OVERLAY_TRAVERSAL_SPEED

    • Config Key: block-overlay-traversal-speed
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.15F
      • Maximum: 5.0F
  • BLOCK_OUTLINE_SIDE

    • If only a single side of the block should have outlines
    • Config Key: block-outline-side
    • Values
      • Type: Boolean
      • Default: false
  • BLOCK_OUTLINE_SHOW_HIDDEN_FOLIAGE

    • If using hide foliage, should outlines still show on foliage
    • Config Key: block-outline-show-hidden-foliage
    • Values
      • Type: Boolean
      • Default: true
  • BLOCK_OUTLINE_MULTI_BLOCK

    • If blocks that connect together should share an outline
    • Config Key: block-outline-multi-block
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_IN_SPECTATOR

    • If outlines should be visible in spectator mode
    • Config Key: show-in-spectator
    • Values
      • Type: Boolean
      • Default: false