手册:Entity.setOffhandSlot

来自Minecraft基岩版开发Wiki

语法[编辑]

Entity.setOffhandSlot(par1Object, par2int, par3int, par4int);

参数[编辑]

参数一

Object类型 实体

参数二

int类型 物品id

参数三

int类型 物品数量

参数四

int类型 物品伤害值(特殊值)

效果[编辑]

设置实体的右手所持物品。

Template:ModPE