LogicUsing Conditions
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 Deathevent, give the player a different score depending on whether they killed aZOMBIEor aSKELETON. - 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
- Event: An
Entity Deathevent in your main play area. This event provides both aPlayer(the killer) and anEntity(the one that died). - Action:
Conditionalaction. - Configuration:
- Condition:
Entity Type Condition- Entity Type:
ZOMBIE
- Entity Type:
- If Actions:
- A
Change Propertyaction to add10points to thePlayer'sScore.
- A
- Condition: