命令/recipe

命令/recipe

recipe

需要的权限等级

Java版:2基岩版:1

限制条件

启用作弊[仅基岩版]

给予或剥夺(解锁或锁定)玩家的配方。

目录

1 语法

2 参数

3 结果

4 输出

5 示例

6 历史

7 参见

8 导航

语法[编辑 | 编辑源代码]

Java版

recipe give *

为玩家给予(解锁)所有配方。

recipe take *

剥夺(锁定)玩家的所有配方。

recipe give

为玩家给予(解锁)指定配方。

recipe take

剥夺(锁定)玩家的指定配方。

基岩版

recipe give *

recipe give "*"

为玩家给予(解锁)所有配方。

recipe take *

recipe take "*"

剥夺(锁定)玩家的所有配方。

recipe give

为玩家给予(解锁)指定配方。

recipe take

剥夺(锁定)玩家的指定配方。

参数[编辑 | 编辑源代码]

JE::entityBE:player: target:CommandSelector

指定要给予或剥夺配方的玩家。

必须为玩家名、目标选择器或UUID[仅Java版]。且要求目标选择器为玩家类型,若不是则此命令将无法解析[仅JE]/在命令执行时将会执行失败[仅BE]。

JE::resource_locationBE:recipe: string:basic_string

指定要给予或剥夺的配方。

必须为命名空间ID,将会在命令执行时根据此ID尝试获取一个未注册内容,或发送至客户端由客户端处理。在基岩版中,必须为一个配方的ID,命名空间不可省略(如果有)或添加(如果没有),参见此官方文档。

结果[编辑 | 编辑源代码]

命令触发条件Java版基岩版

任意命令不完整或参数未正确指定 无法解析 无法解析

或player: target无法选中至少一个玩家(指定的玩家必须在线上) 执行失败 执行失败

player: target是非玩家类型的目标选择器 N/A 执行失败

/recipe ... */recipe ... "*"[仅BE]未能给予/剥夺配方(所有配方已经拥有/都未拥有) 执行失败 执行成功

/recipe ... /recipe ... 配方ID不正确 执行失败

未能给任何玩家给予/剥夺配方(指定的配方已经被所有指定玩家拥有/未被任何指定玩家拥有)

任意不符合以上所有条件执行成功

输出[编辑 | 编辑源代码]

命令版本条件成功次数/execute store success .../execute store result ...

任意Java版执行失败000

执行成功11从每个玩家处给予/剥夺的配方总数。

任意基岩版执行失败0N/AN/A

/recipe ... */recipe ... "*"执行成功指定的玩家数量N/AN/A

/recipe ... 执行成功配方发生变更的玩家数量N/AN/A

示例[编辑 | 编辑源代码]

随机剥夺一名玩家全部的配方:/recipe take @r *

给予所有玩家铁剑的合成配方:/recipe give @a minecraft:iron_sword

历史[编辑 | 编辑源代码]

Java版1.1217w13a加入了/recipe命令。基岩版1.20.10实验性玩法配方解锁1.20.10.21加入了/recipe命令。1.20.30实验性玩法配方解锁1.20.20.20更改了/recipe的语法顺序以匹配Java版。1.20.301.20.20.21/recipe不再属于实验性玩法。1.20.20.22将目标参数victim: target更改为player: target。

参见[编辑 | 编辑源代码]

知识之书

/gamerule doLimitedCrafting – 玩家是否只能用已解锁的配方来合成物品。

导航[编辑 | 编辑源代码]

编命令

当前可用

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

chase[新增:JE 1.21.9]

data

datapack

debug

debugconfig

debugmobspawning

debugpath

defaultgamemode

dialog

fetchprofile[新增:JE 1.21.9]

fillbiome

forceload

item

jfr

pardon

pardon-ip

perf

publish

raid

random

return

rotate

save-all

save-off

save-on

seed

serverpack

setidletimeout

spawn_armor_trims

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

相关文章

典故《柔荑》什么意思|出处|释义|例句|用典
365bet网上手机投注

典故《柔荑》什么意思|出处|释义|例句|用典

⌛ 08-24 👁️‍🗨️ 7552
梦幻西游改名字需要花多少钱
365在线体育

梦幻西游改名字需要花多少钱

⌛ 08-26 👁️‍🗨️ 8387
高中化学一滴等于多少毫升 在线求帮助?
365在线体育

高中化学一滴等于多少毫升 在线求帮助?

⌛ 09-19 👁️‍🗨️ 596
国际航空公司代码MS
bte365正规网站

国际航空公司代码MS

⌛ 08-14 👁️‍🗨️ 6788
鸟人课堂
365在线体育

鸟人课堂

⌛ 08-26 👁️‍🗨️ 566
媸的解释
bte365正规网站

媸的解释

⌛ 07-08 👁️‍🗨️ 1762