ghostMob Introduction

The entity section defines the core properties of your mob.


Entity Section

Basic entity configuration
entity:
  # Minecraft entity type
  mob-type: ZOMBIE
  
  # Display name shown above mob
  display-name: '&cLevel 5 Zombie &4❤&c%health%'
  
  # Maximum health
  health: 150
  
  # AFK mob flag (for passive spawning)
  afk-mob: false
  
  # Auto-hit configuration
  auto-hit:
    enabled: true
    interval: 10

Properties

mob-type (Required)

The Minecraft entity type for this mob.

Complete list of entity typesarrow-up-right


display-name (Required)

The name displayed above the mob and in the boss bar.

Supports:

  • Color codes (&a, &c, #RRGGBB)

  • Placeholders (%health%, %max_health%)

  • PlaceholderAPI placeholders

Available Placeholders:

Placeholder
Description
Example

%health%

Current health (rounded)

150

%max_health%

Maximum health

200


health (Required)

The mob's maximum health.


afk-mob (Optional)

Whether this mob is an AFK mob (spawned passively for idle players).

Default: false


auto-hit (Required)

Configuration for automatic attacking when the mob is targeted.

enabled

Enable or disable auto-hitting for this mob.

interval

Time in ticks between automatic attacks.

Formula: ticks = seconds × 20

Seconds
Ticks

0.5s

10

1s

20

2s

40

5s

100

10s

200


Next Steps

Last updated