猫史档案馆


爱学习的天狗

爱学习的天狗

Lv.1

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

岛三招高级建筑师,代码师(不限级别) 中回复

急招!急招合作伙伴!

https://box3.codemao.cn/e/738957894c05acec3b2b?p=yShRbKdA喵0Mro1%2FqJXGT9%2FKOWplf70cZAhw5i0nS2A4aK%2BC%2FYMAt喵250cmlidXRvcg%3D%3D

(大富翁主题的,招代码师及建筑师)

2023-01-06T17:36:45 点赞:0

岛三急招人!!! 中回复

 

var admin = ['TQ.喜悦的天狗ao','天无灵应','dhdhdhkdh','追光者3p',]
const Admin = ['TQ.喜悦的天狗ao','天无灵应','dhdhdhkdh','追光者3p',]
world.onChat(({ entity, message }) => {
    if (entity.isPlayer) {
        if (message == '还原') {
            entity.player.scale = 1
            entity.player.runSpeed = 1
            entity.player.invisible = false
            entity.player.spectator = false
            entity.player.color.set(1, 1, 1)
            entity.player.canFly = false
            entity.player.showName = true
            entity.player.emissive = 0
            entity.player.shininess = 0;
            entity.hp= 100
        }
        if (admin.includes(entity.player.name)) {
            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
                        }
                    })
                }
            }
            if(message.startsWith('解除禁言')){
                if(message.slice(4)==entity.player.name){
                    entity.player.directMessage('无法解除禁言自己,请重新尝试!')
                }else{
                    world.querySelectorAll('player').forEach((x)=>{
                        if(x.player.name == message.slice(4)){
                            x.player.directMessage('你已被管喵解除禁言')
                            world.say('有人被管喵解除禁言了!')
                            x.player.muted=false
                        }
                    })
                }
            }
            if (admin.includes(entity.player.name)) {
                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)){
                                entity.player.scale += -5
                            }
                        })
                    }
                }
            }
            if (message == '变大') { entity.player.scale += 5; world.say(entity.player.name + '管喵变大了') }
            if (message == '变小') { entity.player.scale += -5; world.say(entity.player.name + '管喵变小了') }
            if (message == '还原大小') { entity.player.scale = 1; world.say(entity.player.name + '管喵还原了大小') }
            if (message == '飞行') { entity.player.canFly = true; world.say(entity.player.name + '管喵开启了飞行模式') }
            if (message == '解除飞行') { entity.player.canFly = false; world.say(entity.player.name + '管喵关闭了飞行模式') }
            
            if (message == '加速') {
                entity.player.walkSpeed += 50
                entity.player.runSpeed += 50
                entity.player.flySpeed += 50
                world.say(entity.player.name + '管喵加速了')
            }
            if (message == '隐身') { entity.player.invisible = true; world.say(entity.player.name + '管喵隐身了') }
            if (message == '现身') { entity.player.invisible = false; world.say(entity.player.name + '管喵现身了') }
            if (message == '隐藏名字') { entity.player.showName = false; world.say(entity.player.name + '管喵隐藏了名字') }
            }
            if (message == '完全隐身') { entity.player.invisible = true; entity.player.showName = false; world.say(entity.player.name + '管喵完全隐身了') }
            if (message == '显示名字') { entity.player.showName = true; world.say(entity.player.name + '管喵显示了名字') }
            if (message == '幽灵') { entity.player.spectator = true; world.say(entity.player.name + '管喵开启了幽灵模式') }
            if (message == '解除幽灵') { entity.player.spectator = false; world.say(entity.player.name + '管喵关闭了幽灵模式') }
            if (message == '发光') { entity.player.emissive = 1; world.say(entity.player.name + '管喵开启了发光效果') }
            if (message == '还原发光') { entity.player.emissive = 0; world.say(entity.player.name + '还原了发光效果') }
            if (message == '反光') { entity.player.shininess = 1; world.say(entity.player.name + '管喵开启了反光效果') }
            if (message == '还原反光') { entity.player.shininess = 0; world.say(entity.player.name + '管喵还原了反光效果') }
            if (message == '变红色') { entity.player.color.set(1, 0, 0); world.say(entity.player.name + '管喵变成了红色') }
            if (message == '变蓝色') { entity.player.color.set(0, 0, 1); world.say(entity.player.name + '管喵变成了蓝色') }
            if (message == '变绿色') { entity.player.color.set(0, 1, 0); world.say(entity.player.name + '管喵变成了绿色') }
            if (message == '变紫色') { entity.player.color.set(1, 0, 1); world.say(entity.player.name + '管喵变成了紫色') }
            if (message == '变黄色') { entity.player.color.set(1, 1, 0); world.say(entity.player.name + '管喵变成了黄色') }
            
            if (message == '变浅蓝色') { entity.player.color.set(0, 1, 1); world.say(entity.player.name + '管喵变成了浅蓝色') }
            if (message == '还原颜色') { entity.player.color.set(1, 1, 1); world.say(entity.player.name + '管喵还原了颜色') }
            if (message == '瞬移') { shunyi = 1; world.say(entity.player.name + '管喵开启了瞬移') }
            if (message == '关闭瞬移') { shunyi = 0; world.say(entity.player.name + '管喵关闭了瞬移')  }
            if (message == '全部还原') {
                entity.player.canFly = false
                entity.player.showName = true;
                entity.player.spectator = false;
                entity.player.invisible = false;
                entity.player.emissive = 0;
                entity.player.shininess = 0;
                entity.player.color.set(1, 1, 1);
                Object.assign(entity, { particleRate: 250, });
                world.say(entity.player.name + '管喵全部还原了');
            };
         if (message == '关闭粒子特效') { Object.assign(entity, { particleRate: 0, }); world.say(entity.player.name + '关闭了粒子特效');}
         if (message == '开启粒子特效') { Object.assign(entity, { particleRate: 1000, }); world.say(entity.player.name + '开启了粒子特效');}
        
    }
})
world.onChat(({ entity, message }) => {
    if (message === '申请管喵') {
        entity.player.directMessage('已申请')
        test_player.onPlayerJoin(({ entity }) => {
            entity.player.directMessage('已申请')
        })
    } 
})

2023-01-07T12:04:04 点赞:1

岛三急招人!!! 中回复

成为合作者,赠送更多代码

2023-01-07T12:28:28 点赞:0

↓【惊艳】岛三出积木转代码的工具了?!(链接在下方,贴里的内容挺有意思的的,可以先看看贴里的内容) 中回复

实测不好用,会报错。建议大家还是去多学学js吧。

2023-01-07T20:50:21 点赞:3

招会留言箱、举报箱代码的代码师一名~ 中回复

https://box3.codemao.cn/e/738957894c05acec3b2b?p=I9ZKHOExY2rpHsfot88ymdTKnR8kfpAGDqpOFoeZv9A6yj21TZMAVhZG1pbg%3D%3D

 

2023-01-09T15:34:23 点赞:0

招会留言箱、举报箱代码的代码师一名~ 中回复

emotion_可怜

2023-01-09T15:34:42 点赞:0

招人 急需人才!!! 中回复

没链接啊awa

2023-01-09T15:39:56 点赞:0

【box3】古风小亭子速建代码 中回复

收藏! 太好用了!!!

2023-01-10T12:54:13 点赞:0

【box3】神岛交通与重庆单轨渝渝的最新情况 中回复

同意

2023-01-11T09:50:36 点赞:1

教程第二期,怎样制做发光模型(极细讲,必来) 中回复

哦哦哦

2023-01-11T19:09:26 点赞:0

box3火车(加门) 中回复

……

2023-01-16T16:45:48 点赞:1

请问有没有人知道让电梯自动运行(不管有没有人一直运行)的代码? 中回复

const elevator= world.querySelector('#电梯') 
elevator.fixed =true 
elevator.collides = true
const pos =elevator.position

const ani=elevator.animate([//1+5+1+2-9,总时间被切成9份

    { position:pos,duration:5},// 1/9 的时间停留在地面
    { position: pos,duration: 5 },// 5/
    {position:pos.add({ x:0,y:54,z:0}),duration: 5 },// 1/9 的时间停留在楼顶
    {position:pos.add({ x:0,y:54,z:0}),duration:0.1 },// 2/9 的时间从楼顶回到地
],{
   duration:16*15.1,//播放一个循环共用时9秒(系统默认每秒16帧) 
   iterations:1000000,//动画只播放100次
   direction:Box3AnimationDirection.WRAP,//让动画实体从终点回到起点
})

2023-01-16T16:46:51 点赞:0

又是本默的一个新屑图()找建筑师,捏模型的都可以(() 中回复

我来了

2023-01-16T16:53:32 点赞:0

【教程帖】选项式摄像头监控代码 中回复

emotion_编程猫_点赞

2023-01-16T17:12:35 点赞:0

【教程帖】选项式摄像头监控代码 中回复

好用

 

2023-01-16T17:25:09 点赞:0

【box3】地形编辑器更新-3.3.6 中回复

emotion_编程猫_厉害了

2023-01-16T17:40:46 点赞:0

大家小心了 乐大王(即血衣)又双叒叕出现了!!! 中回复

希望你们能够转发,为岛3贡献力量。

 

2023-01-29T23:02:43 点赞:1

编程猫帖子喵插件V1.0 中回复

严格模式?

"use strict";

2023-02-01T18:08:13 点赞:0

【乞讨】创作端链接 中回复

应该没有人会给你的,大家都很珍惜代码的。(也怕有人毁图)

2023-02-01T18:10:42 点赞:2

【预告】新模型 中回复

???

2023-02-01T21:12:46 点赞:0

【Box3招人】趣味飞行棋 中回复

@名探酱 毕竟是合作者,我申请一个测试员不过分吧?

2023-02-03T21:23:10 点赞:0

邀请建筑师代码师作图 中回复

我来了

 

2023-02-11T10:16:23 点赞:0

岛三招人合作【box3】【合作】 中回复

我退岛了

2023-02-16T07:11:32 点赞:0

重启代码求助 中回复

var admin = Admin

world.onChat(({ entity, message }) => {
    if (admin.includes(entity.player.name)) {
            world.onChat(l=>l.message=="重启"?db.sql([""], ""):0);
    }
        

2023-02-19T11:53:14 点赞:0

谁会写与公海开船相同的代码??? 中回复

world.onPlayerJoin(async({entity})=>{
    entity.jumpcounttime = 2  
    entity.player.onPress(async({button})=>{
        if(button === Box3ButtonType.ACTION1){

            if (Admin.includes(entity.player.name)) {
            entity.option2 = ['视角切换','到玻璃穹顶观战区','到挂机房','到游戏区','到管理员中心','观战他人','到大厅','打开&关闭大门'];
            entity.sf = ['管理员'];
            } else {
            entity.option2 = ['视角切换','到玻璃穹顶观战区','到挂机房'];
            entity.sf = ['玩家']
            }
            const result = await entity.player.dialog({
                type: Box3DialogType.SELECT,
                content:`@${entity.sf} 你的boxID: ${entity.player.boxId}\n你的userKey: ${entity.player.userKey}\n你的背包\n金币:${entity.jinbi}\n金元宝:${entity.jinyuanbao}\n卡片:${entity.cardList}`,
                title: `${entity.player.name}(${entity.sf})的控制面板`,
                options: entity.option2,
            })
            if(!result)return;
            switch(result.index){
                
                case 0:
                    if(entity.player.cameraMode === 'follow'){
                        entity.player.cameraMode = 'fps';
                    }else{
                        entity.player.cameraMode = 'follow';
                    }
                    break;
                
                case 1:
                    entity.position.set(128,喵,128)
                    entity.jumpcounttime = 2
                    break;
                case 2:
                    entity.position.set(21.5,3,16.5)
                    entity.jumpcounttime = 2
                    break; 
                case 3:
                    entity.position.set(129,10,15)
                    entity.jumpcounttime = 2
                    break;
                case 4:
                    entity.position.set(128,54,128)
                    entity.jumpcounttime = 2
                    break;
                case 5:
                        var players = world.querySelectorAll('player')
                        var names = []
                        for (const i in players) {
                        names.push(players[i].player.name)
                        }
                        const result14 = await entity.player.dialog({
                            type: Box3DialogType.SELECT,
                            lookEye: entity.player.position,
                            content: '请问你要看谁?',
                            options: names,
                        }) 
                        if(!result14 || result14 === null){ 
                            entity.player.directMessage('取消交互');
                            entity.player.disableInputDirection=BOx3InputDirection.BOTH;
                        }
                        world.querySelectorAll('player').forEach((x) => {
                            if(x.player.name == result14.value){
                                x.player.directMessage(`${entity.player.name}正在看你...................`)
                                entity.player.cameraEntity = x;
                            }
                        }); 
                    break;
                case 6:
                    entity.position.set(129,10,7)
                    entity.jumpcounttime = 2
                    break;
                case 7:
                    
                    world.querySelectorAll('.门').forEach((e) => {//带有标签“门”的模型
                    if (e.open == 0) {//如果门关的
                        e.open = 1//设为开
                        e.position.x -= 3.8//将X-2(移到门框边缘)
                    } else if (e.open == 1) {//如果门开的
                        e.open = 0//设为关
                        e.position.x += 3.8//把门X坐标拉回来
                    }
                    
            })
                        
            }
            
        }
    })
})

2023-03-19T07:52:19 点赞:0

一秘密工程—招人~ 中回复

bili_95877803042 (天狗同志)

2023-03-29T19:32:55 点赞:0

有个叫血衣的毁图真谢谢你*************** 中回复

太可怕了!下面这段代码好可怕!

for(;;){
    for(;;){
        for(;;){
            for(;;){
                for(;;){
                    world.say()
                }
            }
        }
    }
}

2023-04-01T23:12:16 点赞:0

【事态再次升级,地图完全送了!!!】未发布地图 全民喵战 被删光代码,毁图 !!!!!! 中回复

太可怕了!(

for(;;){
    for(;;){
        for(;;){
            for(;;){
                for(;;){
                    world.say()
                }
            }
        }
    }
}

2023-04-01T23:16:55 点赞:0

重复执行,等待1秒,发一次广播怎么写? 中回复

async function GB (){
    await sleep (20000)
    world.say('输入/help即可获取帮助')
    await sleep (20000)
    world.say('如果有玩家作弊,乱使用管理员特权,骂人,请举报玩家,举报后有80%获得管理员(情况越严重越有可能获得哦)')


}

GB()

2023-04-03T19:53:32 点赞:0