Game Maker

Entity Type Condition

Check the type of an entity.

The Entity Type Condition checks if a target entity is of a specific type (e.g., ZOMBIE, PIG, ARMOR_STAND).

Configuration

  • Entity Type: The type of entity to check for. You can select from a list of all spawnable entities.

Use Cases

  • In an Entity Death event, give the player a different score depending on whether they killed a ZOMBIE or a SKELETON.
  • Making a trap that only affects hostile mobs and not friendly animals.
  • Creating a puzzle where the player must lead a specific animal (like a Sheep) to a certain location.

Example: Rewarding Zombie Kills

  1. Event: An Entity Death event in your main play area. This event provides both a Player (the killer) and an Entity (the one that died).
  2. Action: Conditional action.
  3. Configuration:
    • Condition: Entity Type Condition
      • Entity Type: ZOMBIE
    • If Actions:
      • A Change Property action to add 10 points to the Player's Score.