Add entity distance property

This commit is contained in:
Misode
2019-10-04 10:33:19 +02:00
parent 5e9fbc0f89
commit 335a33728e
2 changed files with 47 additions and 0 deletions

View File

@@ -234,6 +234,7 @@
"type": "Entity",
"nbt": "NBT",
"location": "Location",
"distance": "Distance",
"status_effect": "Effects",
"status_effect_add": "Add Effect",
"status_effect_remove": "Remove Effect"
@@ -249,6 +250,13 @@
"feature": "Feature",
"dimension": "Dimension"
},
"$distance": {
"x": "X",
"y": "Y",
"z": "Z",
"absolute": "Absolute",
"horizontal": "Horizontal"
},
"$status_effect": {
"amplifier": "Amplifier",
"duration": "Duration",

View File

@@ -702,6 +702,13 @@
"value": "location",
"collapse": true
},
{
"id": "distance",
"type": "object",
"translate": "$entity.distance",
"value": "distance",
"collapse": true
},
{
"id": "effects",
"type": "map",
@@ -768,6 +775,38 @@
}
]
},
{
"id": "distance",
"type": "object",
"color": "dark",
"fields": [
{
"id": "x",
"type": "boundary",
"translate": "$distance.x"
},
{
"id": "y",
"type": "boundary",
"translate": "$distance.y"
},
{
"id": "z",
"type": "boundary",
"translate": "$distance.z"
},
{
"id": "absolute",
"type": "boundary",
"translate": "$distance.absolute"
},
{
"id": "horizontal",
"type": "boundary",
"translate": "$distance.horizontal"
}
]
},
{
"id": "status_effect",
"type": "object",