用户:
坦率的血翼蝠5801新号查看:0 回复:1 评论:0 创建时间:2023-08-14T11:13:07
看到的人顺便找一下
我们要搞得是删除
remove▸ remove(): void
Returns: void
里面什么都不写,这个函数是删除配件的,但我们要做蹲下删除,那就可以:
world.onPress(async({entity, button}) => {
if(button == Box3ButtonType.CROUCH){
const allWearables = entity.player.wearables();
allWearables.forEach((e) => {
e.remove();
});
}
})
喵,权限回来了……
如果事先有隐藏头部,建议使用:
world.onPress(async({entity, button}) => {
if(button == Box3ButtonType.CROUCH){
entity.player.skinInvisible.head = false
const allWearables = entity.player.wearables();
allWearables.forEach((e) => {
e.remove();
});
}
})点赞0
评论