猫史档案馆


Dooooove

Dooooove

Lv.1

伏特加、威士忌、白兰地。

获赞:6707收藏:4470浏览:119580作品收藏:864

签名:倘若一个错误所关联的两方都心照不宣地漠视了当中的荒谬之处,那么这个错误就具备了长久存续下去的条件。

回复帖子评论
上一页3 页 / 共 36下一页

“猫老祖初体验”结果出炉~~~ 中回复

sofa~2016考古队谁还要加入?(doge)

2020-06-01T09:51:46 点赞:0

【奇妙风尚】 中回复

dddddd

2020-06-01T10:45:50 点赞:0

来来来 我问大家一个问题 中回复

2 3

2020-06-01T22:09:05 点赞:0

【时光游乐园】每一关攻略及密码全解析 中回复

sofa~

2020-06-01T22:22:08 点赞:0

退喵了!!! 中回复

2020-06-02T09:58:20 点赞:0

【退猫】最后一天! 中回复

诶嘛,不要指望我这个渣渣通关~

(↑曾经连续输了48场的渣渣某染↑)

2020-06-02T12:40:11 点赞:0

收个徒弟!2个 中回复

我阔以吗?

2020-06-02T17:09:55 点赞:0

收徒弟啦——————————————————!!! 中回复

我阔以吗?

2020-06-02T17:10:45 点赞:0

求助,联机怎么做。 中回复

阔以康康我的联机作品~

购买一下就知道啦~

2020-06-02T21:01:55 点赞:0

【公告和调查】退猫 中回复

建议:好短[doge]

2020-06-02T21:07:40 点赞:0

【找师傅】求师傅带 中回复

center_image

2020-06-02T22:38:24 点赞:0

求各位美术大佬和云代码大佬,作品需要美工和一些云变量代码 中回复

呃呃呃,sofa~

2020-06-02T22:44:00 点赞:0

大家帮我点个赞!!!!!O(∩_∩)O谢谢 中回复

挖坟~

2020-06-02T23:03:37 点赞:0

大家帮我点个赞!!!!!O(∩_∩)O谢谢 中回复

欢迎来到2016年考古队

还有谁要考古吗?

2020-06-02T23:03:56 点赞:0

哇哇哇吉吉喵就在刚才合照了现在走了 中回复

dddd

2020-06-03T09:18:14 点赞:0

游戏咋档存记录 中回复

第一种:模型存档

//存档点:可放置多个,需要加存档点标签,同时存档点需要开实体化,可推移要关掉
world.querySelectorAll('.存档点').forEach((e)=>{
    e.onEntityContact(({entity,other})=>{
        if(other.player.Start==true){
            other.player.spawnPoint.copy(other.position);
            other.player.directMessage('存档成功!')
        }
    })
})

第二种:方块存档(踩S存档)

world.onVoxelContact(({voxel,entity})=>{
const c=voxels.id('S');//也可以是别的方块
    if(voxel===c){
        entity.player.directMessage('存档成功!);
        entity.player.spawnPoint.copy(entity.position);
    }
})

2、起点的提示(加起点标签,开实体关防推移)

world.onPlayerJoin(({entity})=>{
    entity.player.Start=false;//跑酷起点判断,防作弊
    entity.enableDamage=true;//可伤害
})
//跑酷起点
world.querySelectorAll('.起点').forEach((e)=>{
    e.onEntityContact(({entity,other})=>{
        if(other.player.Start==false){
            world.say(other.player.name+'出发了!');
            other.player.Start=true;
            other.player.spawnPoint.copy(other.position);
        }
    })
})

3、不想说了太简单,一行就可以了

//跑酷快速传送门
world.querySelectorAll('.跑酷传送门').forEach((e)=>{e.onEntityContact(({entity,other})=>{other.position.set(124, 23, 68);})})//填自己的坐标,标签跟前面一样,怎么做就怎么做

4、一样的简单,也是1行(才怪)

world.querySelectorAll('.终点').forEach((e)=>{
    e.onEntityContact(({entity,other})=>{
        other.player.directMessage('你到了终点!获得加速效果!(蹲下加速)以及发光!')
        world.say(other.player.name+'到达了终点!')
        other.player.Start=false;
        other.player.emissive=999;
        other.position.set(73, 10, 77);//这里填出生点坐标
        other.player.spawnPoint.copy(other.position);
    })
})

5、需要配合上面代码

//如果玩家跑酷中,一到地上就凉凉
world.onTick(({entity})=>{
    world.querySelectorAll('player').forEach((e)=>{
        if(e.player.Start==true){
            if(e.position.y<=15){
                e.hurt(999)
            }
        }
    })
})

如果连起来,就是:

//跑酷起点
world.querySelectorAll('.起点').forEach((e)=>{
    e.onEntityContact(({entity,other})=>{
        if(other.player.Start==false){
            world.say(other.player.name+'出发了!');
            other.player.Start=true;
            other.player.spawnPoint.copy(other.position);
        }
    })
})
//存档点:可放置多个,需要加存档点标签,同时存档点需要开实体化,可推移要关掉
world.querySelectorAll('.存档点').forEach((e)=>{
    e.onEntityContact(({entity,other})=>{
        if(other.player.Start==true){
            other.player.spawnPoint.copy(other.position);
            other.player.directMessage('存档成功!')
        }
    })
})
//如果玩家跑酷中,一到地上就凉凉
world.onTick(({entity})=>{
    world.querySelectorAll('player').forEach((e)=>{
        if(e.player.Start==true){
            if(e.position.y<=15){
                e.hurt(999)
            }
        }
    })
})
//跑酷快速传送门
world.querySelectorAll('.跑酷传送门').forEach((e)=>{e.onEntityContact(({entity,other})=>{other.position.set(124, 23, 68);})})

(这里用了模型存档)

2020-06-03T09:19:14 点赞:0

彩虹字怎么弄 中回复

sofa~

2020-06-03T09:19:54 点赞:0

小沙 雕视频——黑人抬钉钉 中回复

sofa~

2020-06-03T09:29:08 点赞:0

有人吗噼噼喵 中回复

???????????????

2020-06-03T10:20:35 点赞:0

啊呜,又退了一个呜呜呜,感觉一点都不好,想哭┭┮﹏┭┮ 中回复

呃呃呃

2020-06-03T10:24:25 点赞:0

想不想,想不想 中回复

天花板~

2020-06-03T10:31:28 点赞:0

【求助】通天塔这一关怎么过? 中回复

挖坟

2020-06-03T11:51:46 点赞:0

【求助】为什么小说界面更新了? 中回复

挖坟~

2020-06-03T11:52:05 点赞:0

【灵感提供】 中回复

帮顶

(虽然不知道你在说啥)

2020-06-03T12:54:42 点赞:0

【回顾】活动喵和七代鸣人对喷聊天记录 中回复

2020-06-03T12:57:24 点赞:0

一个小调查 中回复

欧皇是谁??????????(跟不上时代的某染)

2020-06-03T14:32:55 点赞:0

啊啊啊,代码有什么用啊 中回复

挖坟~

2020-06-03T14:33:39 点赞:0

【内测报名】代码岛3.0 抢先体验! 中回复

挖坟~center_image

2020-06-03T14:35:46 点赞:0

【wow】小伙伴开始做象棋喽~~ 中回复

我都没玩过象棋(不知道为啥)

2020-06-03T14:36:48 点赞:0

现在不是3D的作品(不是代码岛)很流行吗?我也做了一个,大家看看呗 中回复

大佬的世界咱不懂

2020-06-03T17:50:49 点赞:0