mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Add entity distance property
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user