Test Entity Operation
Converts minecraft:entity_type prototype into puffish_skills:boolean prototype whether the condition matches given entity.
Examples
The operation is used to test entity, such that the experience source gives the player exactly 5 experience every time the player kills zombie entity.
Click to view
json
{
"type": "puffish_skills:kill_entity",
"data": {
"variables": {
"exp_value": {
"operations": [
{
"type": "killed_living_entity"
},
{
"type": "puffish_skills:test",
"data": {
"entity_type": "zombie"
}
},
{
"type": "switch",
"data": {
"true": 5,
"false": 0
}
}
]
}
},
"experience": "exp_value"
}
}The operation is used to test entity, such that the experience source gives the player exactly 5 experience every time the player kills any entity with type tag undead.
Click to view
json
{
"type": "puffish_skills:kill_entity",
"data": {
"variables": {
"exp_value": {
"operations": [
{
"type": "get_killed_living_entity"
},
{
"type": "puffish_skills:test",
"data": {
"entity_type": "#undead"
}
},
{
"type": "switch",
"data": {
"true": 5,
"false": 0
}
}
]
}
},
"experience": "exp_value"
}
}JSON structure
| Property | Type | Required |
|---|---|---|
entity_type | entity identifier or entity tag | no |
nbt | entity nbt | no |