猫史档案馆


wyyds

wyyds

Lv.1

获赞:0收藏:0浏览:0作品收藏:0
回复帖子评论
上一页1 页 / 共 1下一页

限时教自定义装备代码! 中回复

33

2022-06-11T08:02:40 点赞:0

[Box3代码]普通却很实用的背包代码 中回复

请问你的哔哩大陆是怎么同时装备那么多装备的

2022-06-11T09:29:23 点赞:0

每日一个岛3建图小技巧:区域范围攻击! 中回复

有谁成功了吗

2022-06-11T09:40:49 点赞:0

【岛3】教程(如何让XX实体追踪自己) 中回复

constQuat=newBox3Quaternion(0,0,0,1);//默认旋转值,方便旋转 world.onPlayerJoin(({entity})=>{ entity.enableDamage=true; entity.maxHp=100 entity.hp=100; }); /*上一行的设置默认旋转值千万不要忘记加分号结束了,否则会报错*/ (asyncfunction(){//创建新的异步函数,并让他执行 while(true){//重复执行 awaitnewPromise((resolve)=>{setTimeout(()=>{resolve()},喵)});//等待喵毫秒 //在世界寻找要追踪你的实体的id名 varchase=world.querySelectorAll('*').filter(i=>i.id=='要追踪你的目标的实体id')[0] for(constplayersofworld.querySelector('player')){//遍历地图的每一个玩家 if(players.position.distance(chase.position)<=15){//当距离小于15格 if(players.player.dead)continue//如果那个玩家已经喵了,就不去攻击他 //用于计算出要追踪实体的需要面向的方向 constdirection=(players.position.sub(chase.position)).clone().scale(players.position.distance(chase)) constface=Quat.rotateY(-Math.atan2(direction.x,direction.z))//这里稍微借鉴了官方的范围攻击帖子()() chase.meshOrientation=faces.rotateY(Math.PI)//面向玩家 constspeed=1//设置追赶者的移动速度(可以自己调) chase.velocity.copy( direction.scale(1/u.position.distance(e.position)/3*speed) )//设置速度值,追赶这个玩家 if(chase.position.distance(players.position)<0.8){//如果碰到 players.velocity.copy(direction.scale(0.9))//被追的附加击退(数值可以自己改) players.hurt(10)//受伤(可以自己改) } } } } })();(()=>{constQ={R:world};constF=()=>(returnQ.R.say);F(unescape('%u4EE3%u7801%u63D0%u4F9B%uFF1A%u8FF7%u96FE%u7684%u7D2B%u91D1'))})()

2022-06-11T14:30:28 点赞:0

【代码岛3.0代码公布!】僵尸追杀玩家 中回复

僵尸喵了   但会出错

2022-06-11T16:07:44 点赞:0

【墨教】俗话说上车容易下车难……吗? 中回复

好家伙  上车呢

2022-06-11T18:59:41 点赞:0

【代码岛3.0代码公布!】僵尸追杀玩家 中回复

??不会自动刷新僵尸吗

2022-06-11T19:45:01 点赞:0

【代码岛3.0】忽然曝光的年兽随机移动代码 中回复

跳崖小能手

2022-06-14T21:51:16 点赞:0

【box3】求助 如何让碰到的方块消失 中回复

这样模型也...

2022-07-07T15:14:04 点赞:1

岛三合作有人吗???代码来找我 中回复

帮我吗

2022-07-15T16:39:48 点赞:0

【协作招人】哈利波特迷的你要来还原哈利波特吗 中回复

打不开...

2022-07-15T19:34:37 点赞:0

哈迷工作室招人啦!————一个可以加入哈利波特学院的工作室! 中回复

刑啊,我加

2022-07-15T19:35:23 点赞:0

岛三合作有人吗???代码来找我 中回复

https://box3.codemao.cn/e/f0ef804f81cabca447f0是这个

2022-07-17T14:25:23 点赞:0

【box3】当哈利波特咒语和管喵代码碰撞后... 中回复

doge/dgoe

第一部分的是装扮

2022-07-20T13:15:55 点赞:1

CoCo求助! 中回复

doge

2022-07-20T13:22:05 点赞:0

【box3】当哈利波特咒语和管喵代码碰撞后... 中回复

const GLY_HL喵 = ['bom']

world.onPlayerJoin(({ entity }) => {
    if (!GLY_HL喵.includes(entity.player.name)) return; 
    world.say(`管喵${entity.player.name}来咯`)
    entity.player.addWearable({
        bodyPart: Box3BodyPart.TORSO,
        mesh: 'mesh/魔杖-3.vb',
        orientation: new Box3Quaternion(0, 1, 0, 1).rotateX(Math.PI/90),
        scale: new Box3Vector3(0.3,0.3,0.3),
        offset: new Box3Vector3(-0.4, -0.1, 0.3)
    });
    if (!GLY_HL喵.includes(entity.player.name)) return;
    entity.player.addWearable({
        bodyPart: Box3BodyPart.TORSO,
        mesh: 'mesh/魔法书.vb',
        orientation: new Box3Quaternion(0, 1, 0, 1).rotateX(Math.PI/0),
        scale: new Box3Vector3(0.4,0.4,0.4),
        offset: new Box3Vector3(0.5, -0.2, 0.3)
    });
});

var author = ['bom']
world.onChat(async({entity, message}) => {
    if (!(author.includes(entity.player.name))) return;
    if (message == '飞来飞去'){ 
        entity.player.canFly = true
    } else if (message=='速速变小'){
        entity.player.scale=0.5
    } else if (message=='速速变大'){
        entity.player.scale=1.5
    } else if (message=='恢复如初'){
        entity.player.scale=1
        entity.player.canFly = false
        entity.player.canFly = false
        entity.player.invisible=false
        entity.player.showName=true
    } else if (message=='幻身咒'){
            entity.player.invisible=true
            entity.player.showName=false
    }else if(message.startsWith('无声无息@')){
            if(message.slice(2)==entity.player.name){
                entity.player.directMessage('无法对自己使用')
            }else{
                world.querySelectorAll('player').forEach((x)=>{
                    if(x.player.name == message.slice(2)){
                        x.player.directMessage('管喵对你使用了无声无息!')
                        world.say('有人被管喵使用了无声无息!')
                        x.player.muted=true
                    }
                })
            }
        }
})

2022-07-20T14:14:38 点赞:0

【box3】当哈利波特咒语和管喵代码碰撞后... 中回复

还要调一下,禁言的没用

2022-07-20T14:58:30 点赞:0

【box3】当哈利波特咒语和管喵代码碰撞后... 中回复

var author = ['bom']
world.onChat(async({entity, message}) => {
    if (!(author.includes(entity.player.name))) return;// 如果说话的不是管喵,跳过下面的脚本
    if (message == '飞来飞去'){ 
        entity.player.canFly = true
    } else if (message=='速速变小'){
        entity.player.scale=0.5
    } else if (message=='速速变大'){
        entity.player.scale=1.5
    } else if (message=='恢复如初'){
        entity.player.scale=1
        entity.player.canFly = false
        entity.player.canFly = false
        entity.player.invisible=false
        entity.player.showName=true
        entity.player.emissive = 0;
    } else if (message=='幻身咒'){
        entity.player.invisible=true
        entity.player.showName=false
    } else if (message=='呼神护卫'){
        for(var i=0;i<1;i++){
        spawn(Math.random()*127,9,Math.random()*127,'mesh/雪王.vb',1)
        }
    } else if (message=='荧光闪烁'){
        entity.player.emissive = Infinity;
    }else if(message.startsWith('无声无息@')){
        if(message.slice(5)==entity.player.name){
            entity.player.directMessage('无法对自己使用')
        }else{
            world.querySelectorAll('player').forEach((x)=>{
                if(x.player.name == message.slice(5)){
                    x.player.directMessage('你被施咒!')
                    world.say('有人被施咒了!')
                    x.player.muted=true
                }
            })
        }
    } else if(message.startsWith('恢复@')){
        if(message.slice(3)==entity.player.name){
            entity.player.directMessage('无法对自己使用')
        }else{
            world.querySelectorAll('player').forEach((x)=>{
                if(x.player.name == message.slice(3)){
                    x.player.directMessage('你被恢复了!')
                    world.say('有人施咒被恢复了!')
                    x.player.muted=true
                }
            })
        }
    }
})

2022-07-20T16:34:16 点赞:0

【box3】求助! 输入名称将让人关进监狱的代码! 中回复

报错也是很

2022-07-21T18:58:42 点赞:0

【box3】有收徒的吗? 会js的 中回复

...

2022-07-21T21:28:04 点赞:0

【box3】有收徒的吗? 会js的 中回复

如果不拒绝的话https://box3.cod喵/e/6e5cc119b7648aee0835

2022-07-21T21:29:20 点赞:0

【box3】有收徒的吗? 会js的 中回复

https://box3.cod喵/e/6e5cc119b7648aee0835

2022-07-21T21:32:09 点赞:0

岛三做地图选人+防毁图守则(第一次讲课,并且我是在岛三工作的所以说只能讲这个) 中回复

鹅鹅鹅 捧个场   我bom/doge

2022-07-22T22:01:19 点赞:0

防毁图小妙招 中回复

.../我提出几个问题/doge

 

方法一.副本太多 杂乱无章,进度无法实时更进

 

方法二.被记仇!,收集各种证据举报你直到封号

 

方法三.这样应该没人会跟你合作,没有新人感,有种东西叫做当面炸图

 

我推荐的方法是:打不过就加入

2022-07-22T22:15:15 点赞:1

找人,修什么都行,但不要毁图 中回复

可以逝世

2022-07-22T22:25:54 点赞:0

【box3】当哈利波特咒语和管喵代码碰撞后... 中回复

var author = ['bom']
world.onChat(async({entity, message}) => {
    if (!(author.includes(entity.player.name))) return;// 如果说话的不是管喵,跳过下面的脚本
    if (message == '飞来飞去'){ 
        entity.player.canFly = true
    } else if (message=='魔法师规则'){
        entity.player.directMessage('HI 亲爱的魔法师 本法杖含有 速速变小 速速变大 恢复如初 幻身咒 急急现形 荧光闪烁 送往阿兹卡班 阿瓦达啃大瓜@ 无声无息@ 恢复@ 等权限噢')
    } else if (message=='速速变小'){
        entity.player.scale=0.5
    } else if (message=='速速变大'){
        entity.player.scale=1.5
    } else if (message=='恢复如初'){
        entity.player.scale=1
        entity.player.canFly = false
        entity.player.canFly = false
        entity.player.emissive = 0;
    } else if (message=='幻身咒'){
        entity.player.invisible=true
        entity.player.showName=false
    } else if (message == '急急现形'){
        entity.player.invisible=false
        entity.player.showName=true
    } else if (message=='荧光闪烁'){
        entity.player.emissive = Infinity ;
    } else if (message.startsWith('送往阿兹卡班@')) {
        try {
            world.say(`${message.slice(7)}被送往阿兹卡班!`)
            world.querySelectorAll('player').find(e => e.player.name == message.slice(7)).position.set(59, 17, 62)
            } catch (error) {
            } 

    } else  if(message.startsWith('阿瓦达啃大瓜@')){
        if(message.slice(7)==entity.player.name){
            entity.player.directMessage('无法对自己施咒')
        }else{
            world.querySelectorAll('player').forEach((x)=>{
                if(x.player.name == message.slice(7)){
                    x.player.directMessage('你中了致命一击')
                    x.hurt=x.hp-=100
                }
            })
        }      
    } else if(message.startsWith('无声无息@')){
        if(message.slice(5)==entity.player.name){
            entity.player.directMessage('无法对自己使用')
        }else{
            world.querySelectorAll('player').forEach((x)=>{
                if(x.player.name == message.slice(5)){
                    x.player.directMessage('你被施咒!')
                    x.player.muted=true
                }
            })
        }
    } else if(message.startsWith('恢复@')){
        if(message.slice(3)==entity.player.name){
            entity.player.directMessage('无法对自己使用')
        }else{
            world.querySelectorAll('player').forEach((x)=>{
                if(x.player.name == message.slice(3)){
                    x.player.directMessage('你被恢复了!')
                    world.say(`有人被恢复了`)
                    x.player.muted=false
                    x.hp=x.maxHp
                }
            })
        }
    }
})

2022-07-24T11:54:32 点赞:0

代码求助 存档点代码怎么做? 中回复

...

2022-07-25T10:51:22 点赞:0

招人了(会sql) 中回复

eee

2022-10-02T09:48:50 点赞:0

招人了(会sql) 中回复

e 那啥 怎么换头像啊 保存不了.

2022-10-04T11:21:56 点赞:0