猫史档案馆


Aoken

Aoken

Lv.1

念往昔岁月

获赞:192收藏:83浏览:6516作品收藏:10

签名:dao3 羽岚.龍族[原]:Aoken 是我 2022-05-29 22:55:02 注册此账号 如想知道自己账号注册时间 记得先登录好账号可打开:https://api.codemao.cn/web/users/details 查看create_time的数字 并在 https://tool.lu/timestamp/ 进行时间轴转换

回复帖子评论
上一页第 19 页 / 共 23 页下一页

在 游戏人物AI制作【干货满满】 中回复

收藏

2023-02-15T21:52:39 点赞:0

在 【Box3】神奇大战代码(仿照迷失冷光武器,并未抄袭) 中回复

格式。。

2023-02-16T19:37:17 点赞:0

在 【从扫雷开始的kitten进阶教程】巧建地图————二维数组的构建与应用 中回复

挖。

2023-02-16T19:59:59 点赞:0

在 【kitten高阶教程】几分钟学会kitten手写栈的递归高级操作!原来函数和列表还能这么用? 中回复

。。

2023-02-16T20:00:52 点赞:0

在 【Python连续剧--4】for循环与range函数(干货好多doge) 中回复

ddd

2023-02-24T20:56:44 点赞:0

在 哈哈,一些沙.雕猫的动图center_image 中回复

收藏

2023-03-05T18:17:44 点赞:0

在 【神奇代码岛】DreamExd正式上线! 中回复

ddd

2023-03-16T20:47:20 点赞:0

在 【神岛】瞎搞合作者代码( 中回复

。。

2023-03-19T15:21:19 点赞:0

在 【box3】【代码】【水】有图案的烟花教程 中回复

2023-03-19T15:23:13 点赞:0

在 Box3CameraSettings动画库 中回复

2023-03-19T15:29:10 点赞:0

在 【灌水】python爬虫 中回复

你这个是什么编辑器?

2023-05-03T23:59:32 点赞:0

在 box3.fun变成这样了 中回复

确实

神岛商业化。()

2023-05-06T19:33:47 点赞:0

在 如果你的地图也有快捷栏和物品栏只因制,这些die码一定对你有big用处() 中回复

收藏

2023-05-06T20:02:20 点赞:0

在 【编程猫账号体系API】编创协统一身份认证平台 中回复

sofa

2023-05-07T15:09:33 点赞:0

在 【box3】收藏帖の整理 中回复

收藏!

2023-05-07T15:29:28 点赞:0

在 教程:背包换武器 勿喷! 中回复

收藏

2023-05-07T15:54:13 点赞:0

在 天空之城当前进度 中回复

sofa

2023-05-07T16:24:08 点赞:0

在 教程:背包换武器 勿喷! 中回复

排版

world.onPress(async ({ button,entity }) => {
    if (button != Box3ButtonType.ACTION1 || !entity.isPlayer || entity.player.dead)return;
    const result = await entity.player.dialog({
        type: Box3DialogType.SELECT,
        title: `${entity.player.name}的状态`,
        options: ['切换武器', '切换视角', '脱离卡点'],
    });

    if (!result || result === null) return; // 判断玩家选了什么选项。     
    switch (result.index) {     
        case 0:
           const result = await entity.player.dialog({
               type: Box3DialogType.SELECT,
               content: `切换魔法`,
               options: ['剑', '剑之刃', '蓝之剑', '圣之法杖', '冰——喵', '法仗', '星月权杖', '穹破刀', '弓']
           });
        
           if (!result || result === null) return;
        
           switch (result.index) {
               case 0:
                   entity.fashuy = 1 
                   entity.fashu = `剑`
                   entity.act = 90
                   const handWears = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                   entity.player.removeWearable(handWears[0]);
                   entity.player.directMessage(`切换成功`) 
                   entity.player.addWearable({
                       bodyPart: Box3BodyPart.RIGHT_HAND,
                       mesh: 'mesh/剑.vb',
                       orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2),
                       scale: new Box3Vector3(0.4, 0.7, 0.4),
                       offset: new Box3Vector3(-0.05, 0.4, 1.4),
                   });break;
                
                   case 1:
                       entity.fashuy = 2 
                       entity.fashu = `剑之刃`
                       entity.act = 120
                       const handWears1 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears1[0]);
                       entity.player.directMessage(`切换成功`);
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/剑之刃.vb',
                           orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2),
                           offset: new Box3Vector3(-0.05, 0.4, 1.4),
                       });break;
                    
                   case 2:
                       entity.fashu = `蓝之剑`
                       entity.act = 105
                       const handWears2 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears2[0]);
                       entity.player.directMessage(`切换成功`) 
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/蓝之剑.vb',
                           orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2),
                           scale: new Box3Vector3(0.4, 0.7, 0.4),
                           offset: new Box3Vector3(-0.05, 0.4, 1),
                       });break;
                    
                   case 3:
                       entity.fashu = `圣之法杖`
                       entity.act = 130
                       const handWears3 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears3[0]);
                       entity.player.directMessage(`切换成功`) 
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/圣之法杖.vb',
                           orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2.5),
                           scale: new Box3Vector3(0.4, 0.7, 0.4),
                           offset: new Box3Vector3(-0.05, 0.2, 0.4)
                       });break;
                    
                   case 4:
                       entity.fashu = `冰——喵`
                       entity.act = 150
                       const handWears4 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears4[0]);
                       entity.player.directMessage(`切换成功`) 
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/冰——喵.vb',
                           orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2),
                           scale: new Box3Vector3(0.4, 0.7, 0.4),
                           offset: new Box3Vector3(-0.05, 0.4, 1),
                       });break;
                    
                   case 5:
                       entity.fashu = `法仗`
                       entity.act = 170
                       const handWears5 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears5[0]);
                       entity.player.directMessage(`切换成功`) 
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/法仗.vb',
                           orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2),
                           scale: new Box3Vector3(0.4, 0.7, 0.4),
                           offset: new Box3Vector3(-0.05, 0.4, 1),
                       });break;

                   case 6:
                       entity.fashu = `星月权杖`
                       entity.act = 125
                       const handWears6 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears6[0]);
                       entity.player.directMessage(`切换成功`) 
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/星月权杖.vb',
                           orientation: new Box3Quaternion(0, 1, -3, 9).rotateY(Math.PI / 2),
                           scale: new Box3Vector3(0.4, 0.55, 0.4),
                           offset: new Box3Vector3(0, 0.7, 0.6),
                       });break;

                   case 7:
                       entity.fashu = `穹破刀`
                       entity.act = 135
                       const handWears7 = entity.player.wearables(Box3BodyPart.RIGHT_HAND);
                       entity.player.removeWearable(handWears7[0]);
                       entity.player.directMessage(`切换成功`) 
                       entity.player.addWearable({
                           bodyPart: Box3BodyPart.RIGHT_HAND,
                           mesh: 'mesh/穹破刀.vb',
                           orientation: new Box3Quaternion(0.4, 1.3, 0.5).rotateY(Math.PI / 2),
                           scale: new Box3Vector3(0.4, 0.7, 0.4),
                           offset: new Box3Vector3(-0.05, 0.4, 1),
                       });
               }break;

    case 1: 
        const result1 = await entity.player.dialog({
        type: Box3DialogType.SELECT,
        title: `${entity.player.name}的状态`,
        content: `视角切换`,
        options: ['第一人称', '第三人称']
    });

    if (!result1 || result1 === null) return;

    switch (result1.index) {
        case 0:
            entity.player.cameraMode = 'FPS'
            break;
        case 1:
            entity.player.cameraMode = 'FOLLOW'
            break;
        default:
    }
    case 2: entity.position.set(54, 10, 58);break;
    default:
    }
});

world.onPlayerJoin(({ entity }) => {
    Object.assign(entity, {
        particleRate: 7,
        particleSize: [2, 4, 8, 4, 10],
        particleColor: [
            new Box3RGBColor(10, 9, 2), 
            new Box3RGBColor(5, 0.25, 0.1), 
            new Box3RGBColor(3, 0.05, 0.05), 
            new Box3RGBColor(0, 0, 0), 
            new Box3RGBColor(0, 0, 0), 
        ],particleLifetime: 1,
        particleVelocitySpread: new Box3Vector3(2, 2, 2),
    });
});

2023-05-07T16:41:23 点赞:2

在 NPC交互代码简化教程(非萌新误入) 中回复

收藏。;

2023-05-07T17:08:51 点赞:0

在 NomenSQLite:神岛首个多表格便携式轻量级协同管理器 中回复

收藏

2023-05-13T15:48:47 点赞:0

在 在线征集地图名称qwq 中回复

这个学校咋看起来那么阴间呢?(

2023-05-14T16:29:02 点赞:1

在 在线征集地图名称qwq 中回复

要不叫做午夜凶铃吧

2023-05-14T16:29:49 点赞:1

在 [氵]盘点-吉吉喵发过的帖子 中回复

收藏

2023-05-14T16:33:09 点赞:0

在 【BOX3 Blockly】图形化编辑器增加喵 中回复

打不开

2023-05-14T16:34:17 点赞:0

在 [氵][一期]那些你不知道的高级js用法 中回复

收藏

2023-05-14T16:38:32 点赞:0

在 关于那些不为人知的小api 中回复

收藏

2023-05-14T16:49:16 点赞:0

在 Waddle这是咋了? 中回复

dddddd

2023-05-14T19:20:06 点赞:1

在 Waddle这是咋了? 中回复

 

 

2023-05-14T19:26:47 点赞:0

在 Waddle这是咋了? 中回复

喵d

2023-05-14T19:51:11 点赞:0

在 【BOX3】放卡方块die骂 中回复

2023-05-14T19:58:01 点赞:0