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_COLOR

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

    • Config Key: block-overlay-color
    • Values
      • Type: String
      • Default: #66000000
  • BLOCK_OUTLINE_WIDTH

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

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

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