Skip to main content

Nearby Entity Ingredient

The entity ingredient requires one or more entities near the structure.

This is a premium ingredient.

Basic example

ingredients:
nearby_zombie:
type: entity
amount: 1
range: 5
check:
types:
- ZOMBIE

Fields

FieldTypeDescription
checkEntity checkerDefines which entities are valid.
amountNumberRequired number of matching entities.
rangeNumberSearch range around the structure.
exclusiveBooleanIf true, stricter matching behavior is used.
consumeBooleanIf true, matching entities may be consumed/removed depending on behavior.

Example: require two villagers nearby

ingredients:
villagers:
type: entity
amount: 2
range: 8
check:
types:
- VILLAGER

Use this for rituals, summoning systems, or structures that require mobs nearby.