资源图标

资源 LSE-Offhand 主副手切换 v0.0.2

完成注册/登录后下载
啦啦啦~
JavaScript:
mc.listen('onServerStarted', () => {
    const cmd = mc.newCommand('offhand', '主副手切换', PermType.Any);
    cmd.overload([]);
    cmd.setCallback((_, origin, output) => {
        if (!origin.player) return output.error('此命令仅玩家可使用!');
        const player = origin.player, itemBak = player.getHand().clone();
        player.getHand().set(player.getOffHand());
        player.getOffHand().set(itemBak);
        output.success('§6已切换。');
    });
    if (!cmd.setup()) logger.error('命令注册失败!');
});
 
佬,这个主副手切换,会导致被切换到副手的物品附魔消失,可以修复一下吗?
 
佬,这个主副手切换,会导致被切换到副手的物品附魔消失,可以修复一下吗?
你都看反馈区了,为什么不能看看我发的呢QvQ
 
啦啦啦~
JavaScript:
mc.listen('onServerStarted', () => {
    const cmd = mc.newCommand('offhand', '主副手切换', PermType.Any);
    cmd.overload([]);
    cmd.setCallback((_, origin, output) => {
        if (!origin.player) return output.error('此命令仅玩家可使用!');
        const player = origin.player, itemBak = player.getHand().clone();
        player.getHand().set(player.getOffHand());
        player.getOffHand().set(itemBak);
        output.success('§6已切换。');
    });
    if (!cmd.setup()) logger.error('命令注册失败!');
});
qwq 没看到这个api 研究了半天指令
 
啦啦啦~
JavaScript:
mc.listen('onServerStarted', () => {
    const cmd = mc.newCommand('offhand', '主副手切换', PermType.Any);
    cmd.overload([]);
    cmd.setCallback((_, origin, output) => {
        if (!origin.player) return output.error('此命令仅玩家可使用!');
        const player = origin.player, itemBak = player.getHand().clone();
        player.getHand().set(player.getOffHand());
        player.getOffHand().set(itemBak);
        output.success('§6已切换。');
    });
    if (!cmd.setup()) logger.error('命令注册失败!');
});
不对啊 你这个好像有问题
 
大佬我是新手,教我怎么导入进那个国基岩版。
 

在线会员

  • suyuchaoxi
  • 小叶
  • godgodww
  • hanyee
  • xp1.8.8mc
  • fu_doghh
  • linky233
  • 小莓子
  • xie_zi
  • 川谷君
  • yyaaoo
  • 名字起的长就有人会读完
  • luckychao
  • kidskint
  • L___wan
  • Sion
  • GaussPrime
  • Lengthy218
  • 龙龙爱吃肉
  • 想玩我的世界5
...和 1 更多。
后退
顶部 底部