-
Notifications
You must be signed in to change notification settings - Fork 19
cmd_dist
PTjack edited this page Jan 25, 2016
·
2 revisions
command: /dist
quick ref:
/dist [@entityname]
description:
return the block distance from current player to given player.
This command is usually run from NPC or command block to obtain distance to a nearby player.
@param entityname: name of the entity.
@return the block distance. if entity is not found, it will return a very large number
e.g.
/if $(dist @a) <= 2 /tip hello : when the distance to closest nearby player is less than 2 meters, say hello
实行把物体或方块从这个人物分配给另外一个人物。
这是一个WIKI百科页面,任何人都可以编辑, 了解详情 | 上传图片
Download Paracraft | ParacraftSDK | copyright by tatfook 2016 | Join Us