Apollo
Developers
Mods
TntCountdown

TNT Countdown

Displays the fuse countdown above TNT.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Offset the default tnt delay in ticks. 1 second is 20 ticks
    • Config Key: adjust-fuse-time
    • Values
      • Type: Integer
      • Default: 0
      • Minimum: -80
      • Maximum: 80
  • BACKGROUND

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

    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: false
  • STATIC_COUNTDOWN_COLOR

    • Should the color stay the same the entire time.
    • Config Key: static-countdown-color
    • Values
      • Type: Boolean
      • Default: false
  • COLOR

    • Config Key: color
    • Values
      • Type: String
      • Default: #FF00FF00
  • PREFIX_COLOR

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