locate
需要的權限等級
Java版:2基岩版:1
限制條件
啟用作弊[僅基岩版]
在聊天欄中為指令執行者顯示給定的結構、生態域或興趣點[僅Java版]的最近座標和距離。在Java版中,點擊返回的座標後,會自動在聊天欄輸入/tp @s 座標。
目次
1 語法
2 參數
3 結果
4 輸出
5 示例
6 歷史
7 導覽
語法[編輯 | 編輯原始碼]
Java版
locate biome
locate poi
locate structure
基岩版
locate biome
locate structure
參數[編輯 | 編輯原始碼]
JE:
BE:biome: Biome:enum
指定要定位的生態域的命名空間ID或生態域標籤[僅Java版]。參見生態域/ID及標籤 § 生態域以查看所有可用的生態域ID和生態域標籤。
JE:
指定要定位的興趣點的命名空間ID或興趣點標籤。參見興趣點 § 興趣點類型及標籤 § 興趣點類型以查看所有可用的興趣點ID和興趣點標籤。
JE:
BE:structure: Structure:enum
指定要定位的結構的命名空間ID或結構標籤[僅Java版]。參見生成結構 § 可被定位的結構及標籤 § 結構以查看所有可用的結構ID和結構標籤。
BE:useNewChunksOnly: Boolean:enum
僅定位在尚未生成的區塊中的結構,預設為false。
必須為 布林值(true或false)。
結果[編輯 | 編輯原始碼]
指令觸發條件Java版基岩版
任意參數未正確指定 無法解析 無法解析
目前維度中不生成所請求的對象 執行失敗 執行失敗
biome: Biome不含命名空間[新增:BE 1.21.100] N/A
/locate structure ...無法在201×201區塊的正方形區域中找到請求的結構 執行失敗
/locate biome ...無法在12801×12801方塊的正方形區域中找到請求的生態域 N/A
任意不符合以上所有條件執行成功
輸出[編輯 | 編輯原始碼]
指令版本條件成功次數/execute store success .../execute store result ...
任意Java版失敗000
成功11執行者與對象之間的水平距離
基岩版失敗0N/AN/A
成功1N/AN/A
示例[編輯 | 編輯原始碼]
獲得最近的綠林府邸的座標:/locate structure mansion
獲得最近的沙漠生態域的座標:/locate biome desert
獲得最近的講台的座標:/locate poi librarian[僅Java版]
歷史[編輯 | 編輯原始碼]
Java版1.1116w39a加入了/locate指令。1.1318w06a/locate現在接受之前在Temple分組下所有結構的不同名稱Desert_Pyramid、Igloo、Jungle_Pyramid、Swamp_Hut。18w08a為/locate指令輸出的座標加入了可點擊的傳送連結(將傳送指令輸入至聊天視窗)。1.1418w47a/locate現在接受Pillager_Outpost。18w48a/locate現在接受New_Village。1.1620w11a/locate現在接受Nether_Fossil。20w21a現在結構ID全部使用小寫字母。1.18.222w03a現在結構ID使用命名空間ID,而不是之前的寫死值。pre1現在支援標籤,用#前綴與一般的ID做區分。參數類型由結構類型(Structure Type)改為設定的結構(Configured Structure)。1.1922w19a將/locatebiome作為子指令/locate biome併入了/locate。/locate原有的功能由/locate structure繼承。加入了/locate poi子指令。攜帶版1.0.00.17.0.1加入了/locate指令。0.17.0.2移除了/locate指令。1.0.0.0重新加入了/locate指令,但僅接受Stronghold。1.1.01.1.0.0/locate現在可查找其他結構。基岩版1.17.301.17.30.22/locate現在可用於只查找在未生成區塊中的結構。1.19.101.19.10.23加入了/locate biome和/locate structure子指令,分別用於定位生態域和結構。1.19.301.19.30.20現在只有/locate structure可用於定位結構。基岩版(即將到來)1.21.1001.21.100.20現在biome: Biome必須包含命名空間。
導覽[編輯 | 編輯原始碼]
閱
論
編指令
目前可用
clear
clone
damage
deop
difficulty
effect
enchant
execute
experience
xp
fill
function
gamemode
gamerule
give
help
kick
kill
list
locate
loot
me
op
particle
place
playsound
recipe
reload
ride
say
schedule
scoreboard
setblock
setworldspawn
spawnpoint
spreadplayers
stop
stopsound
summon
tag
msg
tell
w
tellraw
time
title
teleport
tp
transfer
weather
whitelist
僅Java版
advancement
attribute
ban
ban-ip
banlist
bossbar
data
datapack
debug
defaultgamemode
dialog
fillbiome
forceload
item
jfr
pardon
pardon-ip
perf
publish
random
return
rotate
save-all
save-off
save-on
seed
setidletimeout
spectate
team
teammsg
tm
test
tick
trigger
version
warden_spawn_tracker
waypoint
worldborder
僅基岩版
aimassist
allowlist
changesetting
clearrealmevents
controlscheme
gametips
project
reloadconfig
save
sendshowstoreoffer
僅教育版
classroommode
code
getchunkdata
getchunks
geteduclientinfo
geteduserverinfo
getspawnpoint
globalpause
takepicture
基岩版和教育版
?
ability
agent
camera
camerashake
clearspawnpoint
codebuilder_actorinfo
daylock
alwaysday
dedicatedwsserver
dialogue
enableencryption
event
fog
gametest
gettopsolidblock
hud
immutableworld
inputpermission
listd
mobevent
music
permission
ops
playanimation
querytarget
replaceitem
script
scriptevent
setmaxplayers
structure
testforblocks
testforblock
testfor
tickingarea
titleraw
toggledownfall
worldbuilder
wsserver
connect
已移除
placefeature
僅Java版
?
achievement
banip
blockdata
broadcast
entitydata
home
iron
locatebiome
replaceitem
setspawn
solid
stats
toggledownfall
testfor
testforblock
testforblocks
unban
wood
僅基岩版
clearfixedinv
mixer
resupply
set_movement_authority
setfixedinvslot
setfixedinvslots
simulationtype
volumearea
僅教育版
collect
dropall
move
position
tpagent
transfer
turn
基岩版和教育版
attack
createagent
destroy
detect
detectredstone
drop
executeasother
executeasself
getitemcount
getitemdetail
getitemspace
inspectdata
inspect
place
till
transferserver