Tower Defense X
  • 🖥️Commands and Permissions
  • ◼️Arena-Setup
  • 🧑‍🤝‍🧑Bungee-mode
  • 🛑Creating-signs
  • 🦞Enemies
  • 📕Classes
  • 🗼Towers
  • ⚙️API
  • 💬Placeholders
  • 🐼Other Permissions
  • ‼️TOS
Powered by GitBook
On this page
  • YAML file structure
  • Example YAML file
  • Bosses

Enemies

In Tower Defense X, enemies are the primary threat to the player's defenses. To create an enemy, a YAML file should be edited with the appropriate statistics for the entity to be spawned.

YAML file structure

The YAML file structure has a specific format that must be followed. The following fields are required:

  • Entity: The type of entity to spawn.

  • Cost: The cost to spawn this enemy. If the cost is negative, summoning the enemy will grant the player coins.

  • Coins-On-Kill: The number of coins the player will receive upon killing the enemy.

  • Exp-On-Kill: The amount of experience points the player will receive upon killing the enemy.

  • Health: The amount of health the enemy has.

  • Damage: The amount of damage the enemy deals.

  • Wave-Unlocked: The wave on which the enemy will be available for the player to spawn.

  • Speed: The speed of the enemy. Speed options include Normal, Normal-High, Normal-Low, High, Low, Very-High, Very-Low, Highest, and Lowest.

Additionally, enemies may have optional Equipment fields that allow for customization of the enemy's appearance.

Example YAML file

The following is an example YAML file with two enemies:

Guide-Format:
  Material: MONSTER_EGG
  Boss-Material: EYE_OF_ENDER
  Color: '&c'
  Description:
  - '&a- &6Spawn cost: &b%spawn_cost%'
  - '&a- &6Health: &b%health%'
  - '&a- &6Damage: &b%damage%'
  - '&a- &6Wave unlocked: &b%wave_unlocked%'
  - '&a- &6Speed: &b%speed%'
  - '&a- &6Coins on kill: &b%coins_on_kill%'
  - '&a- &6Exp on kill/spawn: &b%exp_on_kill%'
Enemies:
  RED_ZOMBIE:
    Entity: ZOMBIE
    Cost: -1
    Coins-On-Kill: 2
    Exp-On-Kill: 1
    Health: 10
    Damage: 1
    Wave-Unlocked: 1
    Speed: Normal
    Equipment:
      Helmet: 'LEATHER_HELMET : dye:red'
      Chestplate: 'LEATHER_CHESTPLATE : dye:red'
      Leggings: 'LEATHER_LEGGINGS : dye:red'
      Boots: 'LEATHER_BOOTS : dye:red'
      Hand: AIR
  BLUE_ZOMBIE:
    Entity: ZOMBIE
    Cost: 3
    Coins-On-Kill: 3
    Exp-On-Kill: 2
    Health: 20
    Damage: 1
    Wave-Unlocked: 2
    Speed: Normal
    Equipment:
      Helmet: 'LEATHER_HELMET : dye:blue'
      Chestplate: 'LEATHER_CHESTPLATE : dye:blue'
      Leggings: 'LEATHER_LEGGINGS : dye:blue'
      Boots: 'LEATHER_BOOTS : dye:blue'
      Hand: AIR

Bosses

Bosses are stronger enemies that require more strategy to defeat. They have unique characteristics and are unlocked later in the game. To create a boss, follow the same YAML file structure as for regular enemies, but include the Wave-Released field instead of Wave-Unlocked. This field determines the wave on which the boss will spawn.

PreviousCreating-signsNextClasses

Last updated 2 years ago

🦞