猫史档案馆


wangjunjiec

wangjunjiec

Lv.1

不求当大佬,只求问心无愧box3老手玩我的世界3年多编程达人求No.1

获赞:125收藏:90浏览:1696作品收藏:18

签名:做box3地图 做作品 学习

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

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

太棒了

 

2020-04-30T21:32:54 点赞:0

我们一起创作吧,【金币多多】 中回复

请不要到地图中,正在更新

https://shequ.codemao.cn/community/286871

2020-04-30T21:33:50 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

吉吉喵!我怎么没有更新呢?emotion_编程猫_伤心emotion_编程猫_伤心emotion_编程猫_伤心

2020-04-30T21:34:36 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

@吉吉喵!我怎么没有更新呢???/?emotion_编程猫_伤心emotion_编程猫_伤心emotion_编程猫_伤心

2020-04-30T21:46:03 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

 

@吉吉喵!我怎么没有更新呢????emotion_编程猫_伤心emotion_编程猫_伤心emotion_编程猫_伤心

 

2020-04-30T21:51:41 点赞:0

我们一起创作吧,【金币多多】 中回复

日常分享,大家看看

别忘了点个赞

以后我每天给大家推荐一下

2020-04-30T21:57:40 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

吉吉喵!我更新失败了!

2020-04-30T22:02:32 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

吉吉喵!我一晚上都没有更新!

2020-05-01T09:08:03 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

吉吉喵,更新失败了!

2020-05-01T09:10:21 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

吉吉喵,更新失败了!

2020-05-01T09:10:27 点赞:0

我们一起创作吧,【金币多多】 中回复

https://box3create.codemao.cn/games/e75252796135cc749d77

2020-05-01T09:41:12 点赞:0

想问一下为什么我不能在代码岛,里面说话? 中回复

我也是emotion_编程猫_翻白眼

2020-05-01T16:11:42 点赞:0

【代码岛3.0双周创作赛!第2届!】今日最后提交! 中回复

吉吉喵,为什么我只有那个场景滤镜,没有刷墙的emotion_编程猫_紧张emotion_编程猫_伤心

2020-05-02T18:36:32 点赞:0

【教程】无字天书 中回复

666

 

2020-05-05T12:46:04 点赞:0

【教程】无字天书 中回复

666

2020-05-05T12:48:10 点赞:0

我们一起创作吧,【金币多多】 中回复

-特大公告-

地图其实已经升级了哦emotion_吃惊,只是没发现。emotion_星能猫_ye

center_imagecenter_image

2020-05-05T14:01:51 点赞:0

哈哈哈哈哈 中回复

enableDamage: boolean = true
 showHealthBar: boolean = true
  hp: number = 100
world.querySelectorAll('.test').forEach((e)=>{
    var type='p';
    world.onTick(()=>{
        if(e.meshOrientation.x>=0.5){
            e.meshOrientation.x-=0.1;
            type='m';
        } else if(e.meshOrientation.x<=-0.5){
            e.meshOrientation.x+=0.1;
            type='p';
        } else{
            if(type==='p'){
                e.meshOrientation.x+=0.1;
            } else{
                e.meshOrientation.x-=0.1;
            }
        }
    })
})
world.querySelectorAll('.test').forEach((e)=>{
    var tick_times=0;
    world.onTick(()=>{
        tick_times++;
        if(tick_times===1){
            e.position.x+=1;
        } else if(tick_times===3){
            e.position.x+=1;
            e.position.z+=1;
        } else if(tick_times===5){
            e.position.z+=1;
        } else if(tick_times===7){
            e.position.x-=1;
            e.position.z+=1;
        } else if(tick_times===9){
            e.position.x-=1;
        } else if(tick_times===11){
            e.position.x-=1;
            e.position.z-=1;
        } else if(tick_times===13){
            e.position.z-=1;
        } else if(tick_times===15){
            e.position.x+=1;
            e.position.z-=1;
            tick_times=0;
        }
    })
})
world.querySelectorAll('.狗').forEach((dog) => {
    dog.onEntityContact(({other}) =>{
        dog.say('汪,你好! '+other.player.name)
    }
    )
}
)
world.querySelectorAll('.3').forEach((e)=>{
    var type='r';
    world.onTick(()=>{
        if(e.position.z>=11){
            e.position.z-=0.3;
            type='l';
        } else if(e.position.z<=6){
            e.position.z+=0.3;
            type='r';
        } else{
            if(type==='r'){
                e.position.z+=0.3;
            } else{
                e.position.z-=0.3;
            }
        }
    })
})
const red_light = voxels.id('red_light');
voxels.setVoxelId(68, 8, 57, red_light);

enableDamage: boolean = true
showHealthBar: boolean = true
maxHp: number = 100









//随机摆放所有东西的位置
world.querySelectorAll('f').forEach((e) => {
  e.position = new Box3Vector3(
      Math.random()*100,
     10+Math.random()*100,
     Math.random()*100);
});
hp: number = 100
world.onPlayerJoin(({entity})=>{
    entity.position.set(5, 9, 117);//玩家进来的时候,将ta传送到指定的坐标
    entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标
})
world.onEntityContact(({entity,other})=>{
    if(entity.isPlayer&&!other.isPlayer){
        if(other.hasTag("start")&&entity.player.Pokering==false){
            entity.player.Pokering=true;
        }
        if(other.hasTag("f")){
            entity.player.Pokering=false;
            var increase=Math.random()*10
            world.say(`${entity.player.name}找到了空投!ta的攻击力增加了${increase}!`)
            entity.player.emissive=true;
            entity.player.attack+=increase;
            entity.player.color=new Box3RGBColor(1,1,0)
            entity.player.colorvariable=entity.player.color
            entity.position.set(喵,20,喵)
            //随机摆放所有东西的位置
world.querySelectorAll('f').forEach((e) => {
  e.position = new Box3Vector3(
      Math.random()*100,
     10+Math.random()*100,
     Math.random()*100);
});
        }
    }
})
world.onPlayerJoin(({ entity }) => {
    entity.player.colorvariable=new Box3RGBColor(1,1,1)
    entity.player.attack=5;
    entity.player.Pokering=false;
    entity.enableDamage = true;
    entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
        if (button !== 'action0' || !hitEntity) {
            return;
        }
        if(!hitEntity.isPlayer){return}
        hitEntity.velocity.x += direction.x;
        hitEntity.velocity.y += 0.5;
        hitEntity.velocity.z += direction.z;
        hitEntity.hurt(entity.player.attack+Math.random()*5, {
            attacker: entity,
        });
    });
});

world.onDie(({ entity, attacker }) => {
    if (attacker) {
        world.say(attacker.player.name + ' 无情KO了 ' + entity.player.name)
    }
    entity.player.spawnPoint.set(Math.random()*125,10,Math.random()*125)
    entity.player.forceRespawn();
});


world.onTick(()=>{world.querySelectorAll('player').forEach((e)=>{
    if(e.position.y<0){e.hurt(e.hp/10+1)}

    })
})




world.onPress(({entity,button})=>{
    if(button=="crouch"&&entity.hp<100&&!entity.player.Pokering){
        if(entity.hp<98){
            entity.hp+=2;
            entity.player.color=new Box3RGBColor(0,1,0)
            setTimeout(()=>{
              entity.player.color=entity.player.colorvariable
            },100)
        }else{
            entity.hp=100;
            entity.player.color=new Box3RGBColor(0,1,0)
            setTimeout(()=>{
              entity.player.color=entity.player.colorvariable
            },100)
        }
        
    }
})

2020-05-08T13:58:49 点赞:0

哈哈哈哈哈 中回复

world.onTick(async({tick})=>{//重复执行!!!
    world.querySelectorAll('.12').forEach((e)=>{//如果实体标签为“动车”
    e.position.x+=3//z轴持续+3
        if(e.position.x>120){//假如超过一定范围
            e.position.x=0//把它抓回去!!
}
})//别忘了框架哦
})
world.onTick(async({tick})=>{//电梯代码
    world.querySelectorAll('.555').forEach((e)=>{//如果实体标签为“动车”
    e.position.y+=0.2//y轴持续+3
        if(e.position.y>130){//假如超过一定范围
            e.position.y=0//把它抓回去!!
}
})//别忘了框架哦
})
world.onEntityContact(({entity,other})=>{
    if(entity.isPlayer===false){
        if(other.isPlayer===true){
            if(entity.hasTag('car')){
                if(other.mesh===''){
                    other.meshOrientation = new Box3Quaternion(0, 1, 0, 0);//调整方向
                    other.mesh=entity.mesh;
                    other.meshScale=entity.meshScale;
                    other.player.canFly=false;
                    other.player.invisible=true;
                    other.player.walkSpeed=2;
                    other.player.runSpeed=3;
                }
            }
        }
    }
});

2020-05-10T19:57:21 点赞:0

——特大公告——CD工作室聊天室即将迎来巨大更新!! 中回复

emotion_编程猫_点赞

2020-05-17T18:49:30 点赞:0

——特大公告——CD工作室聊天室即将迎来巨大更新!! 中回复

https://www.qqxiuzi.cn/zh/caihongzi/index2.ht m           彩虹字体链接【注意:t m是连在一起滴】

2020-05-17T18:52:05 点赞:0

CD的大量小组和小店上线啦! 中回复

欢迎参加,每人限参加3个

2020-05-23T13:05:38 点赞:0

CD的大量小组和小店上线啦! 中回复

我肚子痛,正在看医生,emotion_编程猫_伤心

2020-05-24T10:06:35 点赞:0

天空岛被毁图了 中回复

额......你不会截图吗?!

2020-05-28T20:03:26 点赞:0

问一下,封面怎么动起来 中回复

搞得动图呗

2020-05-28T20:05:37 点赞:0

啊😫w(゚Д゚)w,毁图者居然毁了我的家 中回复

想呕,室长,你最近很少上线,TAT,能不能上线啊TAT

2020-05-31T18:28:59 点赞:0

代码岛3.0围棋大赛 - 代码揭秘! 中回复

哇哦

2020-06-01T13:36:12 点赞:0

代码岛3.0围棋大赛 - 代码揭秘! 中回复

怎么使用啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊!!!!!!!!!!!!!!!!

谁到我地图里帮我搞啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊!!!!!!!!!!!!!!!!!头好晕...........emotion_编程猫_伤心emotion_编程猫_伤心emotion_编程猫_伤心

2020-06-01T15:06:54 点赞:0

55555555555555555555吉吉喵你好坏5555555555555555555 中回复

我的资格亚嗷嗷啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊55555555555555555emotion_编程猫_伤心emotion_编程猫_伤心emotion_编程猫_伤心emotion_编程猫_伤心

2020-06-04T20:09:38 点赞:0

55555555555555555555吉吉喵你好坏5555555555555555555 中回复

本人要退喵了,【吉吉喵逼得】emotion_编程猫_伤心

2020-06-04T20:23:50 点赞:0

【代码岛3.0内测第13弹!】官网更新!粒子特效! 中回复

差一点

2020-06-05T19:37:09 点赞:0