Has Tag Operation
Converts minecraft:entity
prototype into puffish_skills:boolean
prototype whether the entity has given tag.
Examples
The operation is used to test entity tag, such that the experience source gives the player exactly 5 experience every time the player kills any entity with has tag example
.
Click to view
json
{
"type": "puffish_skills:kill_entity",
"data": {
"variables": {
"exp_value": {
"operations": [
{
"type": "get_killed_living_entity",
},
{
"type": "as_entity",
},
{
"type": "puffish_skills:has_tag",
"data": {
"tag": "example"
}
},
{
"type": "switch",
"data": {
"true": 5,
"false": 0
}
}
]
}
},
"experience": "exp_value"
}
}