Entity
Make the recipe check, heal, hurt or kill entities near the machine
Entity requirement is used to check, consume health or kill some entities in a specified radius of the machine.
To use it you need to provide the amount of entities/health you want to check/consume/kill and the radius the machine should search them.
Note that the larger the radius, the more lag it will generate, and the machine doesn't count entities in unloaded chunks.
This requirement is available in both input
and output
modes.
The requirement type of entity requirement is : "custommachinery:entity"
Properties
The entity requirement has 5 mandatory properties and 3 optional properties.
Mandatory properties
"type": "custommachinery:entity" //Mandatory to define an entity requirement.
Optional properties
Example
An Entity Requirement that will make the recipe kill 10 villagers in a radius of 20 blocks at the end of the process :
The 10 villagers are needed to be in radius during all the crafting process or the machine will error.
{
"type": "custommachinery:entity",
"mode": "output",
"amount": 10,
"radius": 20,
"action": "kill",
"filter": ["minecraft:villager"],
"whitelist": true
}
Last updated