Test World Operation
Converts minecraft:world
prototype into puffish_skills:boolean
prototype whether the condition matches given world.
Examples
The operation is used to test dimension, such that the experience source gives the player exactly 5 experience every time the player kills entity in the nether.
Click to view
json
{
"type": "puffish_skills:kill_entity",
"data": {
"variables": {
"is_nether": {
"operations": [
{
"type": "get_player"
},
{
"type": "get_world"
},
{
"type": "puffish_skills:test",
"data": {
"dimension": "minecraft:the_nether"
}
}
]
}
},
"experience": [
{
"condition": "is_nether",
"expression": "5"
}
]
}
}
JSON structure
Property | Type | Required |
---|---|---|
dimension | dimension identifier | yes |