猫史档案馆


YDS尹子

YDS尹子

Lv.1

Everything happens for a reason.

获赞:5139收藏:4471浏览:232601作品收藏:3454

签名:https://box3.codemao.cn/u/YDSyinzi

回复帖子评论
上一页18 页 / 共 38下一页

【box3】方块动力(滑稽) 中回复

center_image

2020-08-15T09:30:14 点赞:3

看看你打出了是什么 中回复

完毕。。?

2020-08-15T19:58:28 点赞:0

【box3】本尊:危 中回复

啊哈本尊别打我

2020-08-15T21:18:53 点赞:2

招募代码师一名 中回复

围观

2020-08-16T07:43:39 点赞:1

【萌新教学】-如何从0捏一只小猫咪? 中回复

2020/8/16 10:40:31

2020-08-16T10:40:15 点赞:0

【Python作品分享】新的作品【作品秀】 中回复

function boom(pos,r){
    for(let i=pos.x-r;i<=pos.x+r;i++){
        for(let j=pos.z-r;j<=pos.z+r;j++){
            for(let k=pos.y-r;k<=pos.y+r;k++){
                
                if(new Box3Vector3(i,k,j).distance(pos)<=r){
                    var force=Math.pow(new Box3Vector3(i,k,j).distance(pos),0.5)*0.3;
                    if(Math.random()*force<1){
                        voxels.setVoxel(i,k,j,0);
                        
                    }
                }
            }
        }
    }
}
world.onPlayerJoin(({entity})=>{
    entity.addTag(entity.player.name);
    entity.enableDamage=true;
})
 world.onPress(async({entity,button})=>{
     if(button=="action0"){
         var f=3;
         a=world.createEntity();
         a.mesh=world.querySelector(".pd").mesh;
         a.meshScale=world.querySelector(".pd").meshScale;
         a.addTag("bullet");
         a.owner=entity.player.name;
         a.position.set(entity.position.x,entity.position.y+1.5,entity.position.z);
         a.collides=true;
         a.restitution=1;
         a.fixed=false;
         a.gravity=true;
         var angx=Math.asin(entity.player.facingDirection.x)*180/Math.PI;
         var angz=Math.acos(entity.player.facingDirection.z)*180/Math.PI;
        a.velocity.x=f*Math.sin(angx*Math.PI/180);
        a.velocity.z=f*Math.cos(angz*Math.PI/180);
        a.velocity.y=0.3;
        setTimeout(()=>{
            a.destroy();
        },2000)
     }
 })

world.onEntityContact(({entity,other})=>{
    if(entity.isPlayer&&other.hasTag("bullet")){
        entity.hurt(10);
        entity.dreason="被炮弹砸喵了";
        other.destroy()
    }
})
world.onVoxelContact(({entity})=>{
    if(entity.hasTag("bullet")&&!entity.isPlayer){
        setTimeout(()=>{
        boom(entity.position,5)
        entity.destroy();
        },1000)
        
    }
})

2020-08-16T11:56:58 点赞:0

曲奇招聘——吃鸡模拟器 中回复

hi

好久不见

2020-08-16T13:12:28 点赞:0

急啊,BOX3这怎么做出来的????? 中回复

world.onPlayerJoin(({ entity }) => {
  entity.player.enable3DCursor = true;
})

2020-08-16T18:58:56 点赞:1

关于鸽阁工作室三级这件事 中回复

扰乱还不小。。。

2020-08-16T19:13:32 点赞:0

【box3】招人帖 中回复

本图片版权归尹子所有,请立刻将头像改回去,否则将实行制裁(滑稽)

2020-08-16T20:38:25 点赞:1

Alan Walker 中回复

333393

2020-08-17T07:09:42 点赞:0

【巅峰战绩】双春鼠计划<3局连胜>达成! 中回复

233233

2020-08-17T07:10:14 点赞:0

【战绩分享】通天塔排位赛<对局胜利>达成! 中回复

222333

2020-08-17T07:58:00 点赞:0

看看你打出了是什么 中回复

无视那吧

2020-08-17T15:58:06 点赞:0

【Python作品分享】港铁线路图(2020)【作品秀】 中回复

喵枚举。。?

2020-08-17T16:16:50 点赞:0

听说月球大战要下首页了???!?! 中回复

center_image

2020-08-17T16:39:48 点赞:2

听说月球大战要下首页了???!?! 中回复

注意血衣族仍然存在

center_image

center_image

2020-08-17T16:43:47 点赞:0

举报血衣呀 中回复

补:这家伙毁我图

2020-08-17T19:41:19 点赞:0

【代码岛3.0活动预告】大神在线写代码!今天! 中回复

申请!

2020-08-17T21:04:42 点赞:0

征集新闻! 中回复

血衣族肆虐岛三

2020-08-17T21:07:19 点赞:1

【巅峰战绩】双春鼠计划<新秀4段>达成! 中回复

232332

2020-08-17T21:26:11 点赞:0

【战绩分享】彩虹桥计划<对局胜利>达成! 中回复

和我id一样的帖子

2020-08-18T06:57:11 点赞:0

[退猫贴]喵啊 中回复

一路走好

有缘相见

2020-08-18T06:59:22 点赞:0

【举报】被毁图!望岛民转发让大家都来揭发按毁图者的恶行! 中回复

MDIO介入调查

给下链接?

2020-08-18T06:59:48 点赞:0

【举报】被毁图!望岛民转发让大家都来揭发按毁图者的恶行! 中回复

分享一份情报

 

---------血衣族----------

邪恶的血衣(啊,爱代码岛):
id:
box3id:3472873

热爱编程猫代码岛合格岛民:
id:10133533
box3id:7183359

战神_小火熊_:
id:
box3id:6710617

匛膩深婧惢魢唥(江紫衣):
id:
box3id:7982811

2020-08-18T07:00:31 点赞:0

【代码岛教程贴】玩家发送指令并让系统自己恢复 中回复

我问一个代码

我不信你能写得出来

椭圆球代码

2020-08-18T07:46:33 点赞:0

还真有人能写到8000行JS代码 中回复

代码岛才十万行

2020-08-18T10:55:14 点赞:0

【跟风】用四个字形容你楼下的头像 中回复

日本风格(滑稽)

2020-08-18T11:25:19 点赞:0

334455号贴! 中回复

咋那么准呢

2020-08-18T15:25:07 点赞:1

【代码岛教程贴】玩家发送指令并让系统自己恢复 中回复

写得代码犯低级错误还说自己是代码大咖

2020-08-18T16:53:30 点赞:3