summon
需要的權限等級
Java版:2基岩版:1
限制條件
啟用作弊[僅基岩版]
召喚一個實體。
目次
1 語法
2 參數
3 結果
4 輸出
5 示例
6 歷史
7 參考
8 導覽
語法[編輯 | 編輯原始碼]
Java版
summon
基岩版
summon
summon
summon
summon
參數[編輯 | 編輯原始碼]
JE:
指定要被召喚的實體類型。
在Java版中,必須是一個註冊在minecraft:entity_type登錄的一個註冊項的命名空間ID。在基岩版中,必須是一個實體類型的ID。
在Java版中,玩家(minecraft:player)和浮標(minecraft:fishing_bobber)實體無法被召喚。嘗試召喚這兩種實體會使指令執行失敗。
在基岩版中,只有特定實體類型允許被召喚。允許召喚的實體類型可見於指令的自動補全建議清單。指定清單外的實體類型會使指令無法解析。
JE:
指定該實體的召喚位置。如果未指定,預設為指令執行位置。
必須為三維座標,元素為倍精度[僅Java版]或單精度[僅基岩版]浮點數。允許相對座標(~ ~ ~)或局部座標(^ ^ ^)。
JE:
指定該實體的NBT。
必須為SNBT格式的複合標籤。
BE:yRot: value:RelativeFloat和xRot: value:RelativeFloat
指定該實體生成時的旋轉角度。
必須為兩個單精度浮點陣列成的朝向,分別表示繞Y軸旋轉和繞X軸旋轉,以度為單位。
繞Y軸旋轉時,-180.0表示北,-90.0表示東,0.0表示南,90.0表示西。
繞X軸旋轉時,豎直上方為-90.0,至豎直下方90.0。
加上波浪號前綴將相對於執行朝向進行旋轉。
BE:lookAtEntity: target:CommandSelector
指定該實體生成時的要朝向的實體。
必須為玩家名或目標選擇器。
BE:lookAtPosition: x y z:CommandPositionFloat
指定該實體生成時的要朝向的座標。
必須為三維座標,元素為單精度浮點數。允許相對座標(~ ~ ~)或局部座標(^ ^ ^)。
BE:spawnEvent: string:basic_string
指定該實體的召喚時附帶的實體事件,應為一個行為包內適用於實體的生成事件的名稱。
必須為 字串。必須為單個詞或者雙引號(")括起的字串。引號內的字元可以使用\進行跳脫。
BE:nameTag: string:basic_string
指定該實體的名稱,生成時為該實體命名。
必須為 字串。必須為單個詞或者雙引號(")括起的字串。引號內的字元可以使用\進行跳脫。
結果[編輯 | 編輯原始碼]
指令觸發條件Java版基岩版
任意指令不完整或參數未正確指定 無法解析 無法解析
entityType: EntityType不是允許生成的實體類型。 N/A 無法解析
指定的位置未載入 執行失敗
在基岩版中和於Java版1.21.9前,嘗試在和平難易度下生成無法在和平難易度生成的敵對生物 執行成功
自Java版1.21.9起,嘗試在和平難易度下生成無法在和平難易度生成的敵對生物,終界龍除外[1] 執行失敗 N/A
嘗試生成UUID與其他實體重複的實體
指定的
不符合以上所有條件執行成功
輸出[編輯 | 編輯原始碼]
指令版本條件成功次數/execute store success .../execute store result ...
任意Java版執行失敗000
執行成功111
基岩版執行失敗0N/AN/A
執行成功1N/AN/A
示例[編輯 | 編輯原始碼]
在目前位置往西面10格處生成一個閃電:
/summon lightning_bolt ~-10 ~ ~
在座標(0,0,0)生成一個豬:
/summon pig 0 0 0
Java版:
在目前位置生成一個名為「充能苦力怕」的高壓苦力怕:
/summon creeper ~ ~ ~ {powered:1b,CustomName:"充能苦力怕"}
在目前位置生成一個蜘蛛騎士:
/summon spider ~ ~ ~ {Passengers:[{id:"minecraft:skeleton",equipment:{mainhand:{id:"minecraft:bow",count:1}}}]}
在目前位置生成一個數量為64的掉落物鑽石:
/summon item ~ ~ ~ {Item:{id:"minecraft:diamond",count:64}}
在目前位置生成一個被停用AI、朝向西面的骷髏:
/summon skeleton ~ ~ ~ {NoAI:1b,Rotation:[90F,0F]}
在目前位置生成一個向上飛的豬:
/summon pig ~ ~ ~ {Motion:[0d,5d,0d]}
在目前位置生成一隻藍色六角恐龍:
/summon axolotl ~ ~ ~ {Variant:4}
基岩版:
在目前位置生成一個名為「充能苦力怕」的高壓苦力怕:
/summon creeper ~ ~ ~ ~ ~ minecraft:become_charged "充能苦力怕"
在目前位置生成一個掠奪者突襲隊長:
/summon pillager ~ ~ ~ ~ ~ minecraft:spawn_as_illager_captain
在目前位置生成一個掠奪者巡邏隊的掠奪者突襲隊長:
/summon pillager ~ ~ ~ ~ ~ minecraft:promote_to_patrol_captain
在目前位置生成一個名為「海豚」的海豚:
/summon dolphin "§6海豚" ~ ~ ~
在目前位置往東面5格處生成一個朝向目前座標的殭屍:
/summon zombie ~5 ~ ~ facing ~ ~ ~
歷史[編輯 | 編輯原始碼]
此章節仍需完善,你可以幫助我們擴充更多資訊。
Java版1.7.213w36a加入了/summon。1.814w30a現在可以使用/summon來生成閃電。1.1620w06a/summon現在不允許
參考[編輯 | 編輯原始碼]
↑ 1.0 1.1 MC-300066
導覽[編輯 | 編輯原始碼]
閱
論
編指令
目前可用
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
僅基岩版
allowlist
changesetting
clearrealmevents
gametips
project
reloadconfig
reloadpacketlimitconfig
save
sendshowstoreoffer
僅教育版
classroommode
code
getchunkdata
getchunks
geteduclientinfo
geteduserverinfo
getspawnpoint
globalpause
resourceuri
takepicture
基岩版和教育版
?
ability
agent
aimassist
camera
camerashake
clearspawnpoint
closewebsocket
codebuilder_actorinfo
controlscheme
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