猫史档案馆


馫龘飝鱻灥麤靐飍朤馫譶龘飝虪齺

馫龘飝鱻灥麤靐飍朤馫譶龘飝虪齺

Lv.1

func.我又开始学习了

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

【box3】切视角代码awa(左键直接切,无选项框) 中回复

world.onPlayerJoin(({ entity }) => { //玩家进⼊游戏时
entity.player.onPress(async ({ button }) => { //每当有按钮被按下
if (button == Box3ButtonType.ACTION1) { //如果按钮是右键
if (entity.player.cameraMode == Box3CameraMode.FOLLOW) {
entity.player.cameraMode = Box3CameraMode.FPS;
}
else {
entity.player.cameraMode = Box3CameraMode.FOLLOW;
}
entity.player.directMessage('切换视角成功')
}
}
)
})

2022-12-18T16:12:34 点赞:0

勇 敢 中回复

666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666

2022-12-19T08:25:16 点赞:1

危险!!!!!代码泄漏 中回复

view-source:https://box3.codemao.cn/?filter=common

2022-12-19T08:43:06 点赞:0

:) 【box3】创作节开始招人~要求换武器代码 中回复

格式又被吞了()格式又被吞了()

2022-12-19T09:13:51 点赞:0

危险!!!!!代码泄漏 中回复

function cylinder(cx,cy,cz,vox,radius,height){
  var xend = cx+radius
  var yend = cy+height
  var zend = cz+radius
  for(var x=cx-radius;x<=xend;x++){
    for(var z=cz-radius;z<=zend;z++){
      var dx = x-cx;
      var dz = z-cz;
      if(Math.round(Math.sqrt(dx*dx+dz*dz))<=radius){
        for(var y=cy;y<yend;y++){
          voxels.setVoxel(x,y,z,vox)
        }
      }
    }
  }
}

for(var i=0;i<300;i++){ // 300个随机圆柱体构成场景
  let x = Math.random() * 125 // x坐标
  let z = Math.random() * 125 // z坐标
  let r = 2 + Math.random() * 5 //半径 2~7
  let h = Math.random() * 4 // 高 0~4
  cylinder(x,9,z,'dirt',r,h)
}

for(var y=9;y<13;y++){//扫描9~12层的格子
  for(var x=0;x<127;x++){
    for(var z=0;z<127;z++){
      if(voxels.getVoxel(x,y,z)!=0 && voxels.getVoxel(x,y+1,z)==0){// 如果当前格子不为空而它上面那格是空的, 则表示它是此地形的表面 
        voxels.setVoxel(x,y,z,'grass')// 土块替换成草地
      }
    }
  }
}

2022-12-19T11:13:13 点赞:0

危险!!!!!代码泄漏 中回复

function cylinder(cx,cy,cz,vox,radius,height){
  var xend = cx+radius
  var yend = cy+height
  var zend = cz+radius
  for(var x=cx-radius;x<=xend;x++){
    for(var z=cz-radius;z<=zend;z++){
      var dx = x-cx;
      var dz = z-cz;
      if(Math.round(Math.sqrt(dx*dx+dz*dz))<=radius){
        for(var y=cy;y<yend;y++){
          voxels.setVoxel(x,y,z,vox)
        }
      }
    }
  }
}

for(var i=0;i<350;i++){ // 300个随机圆柱体构成场景
  let x = Math.random() * 125 // x坐标
  let z = Math.random() * 125 // z坐标
  let r = 2 + Math.random() * 5 //半径 2~7
  let h = 1 + Math.random() * 5 // 高 0~4
  cylinder(x,9,z,'dirt',r,h)
}

for(var y=9;y<13;y++){//扫描9~12层的格子
  for(var x=0;x<127;x++){
    for(var z=0;z<127;z++){
      if(voxels.getVoxel(x,y,z)!=0 && voxels.getVoxel(x,y+1,z)==0){// 如果当前格子不为空而它上面那格是空的, 则表示它是此地形的表面 
        voxels.setVoxel(x,y,z,'grass')// 土块替换成喵地
      }
    }
  }
}

2022-12-19T11:23:28 点赞:0

特权代码·直接粘贴 中回复

666666emotion_xkl转圈

2022-12-19T11:51:19 点赞:1

在混沌神域,谁愿意当我师傅 中回复

谢谢各位大佬emotion_ali哇

2022-12-19T14:18:16 点赞:1

在混沌神域,谁愿意当我师傅 中回复

https://box3.codemao.cn/e/e7497851ec10a6da047d

2022-12-19T14:24:30 点赞:0

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊,我要和作CEOの试炼 中回复

CEOの试炼

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊,我要和作CEOの试炼

 

2022-12-20T10:01:18 点赞:1

喆,整一下 中回复

CEOの试炼

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊,我要和作CEOの试炼

CEOの试炼

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊,我要和作CEOの试炼emotion_互粉

 

2022-12-20T10:22:16 点赞:1

喆,整一下 中回复

CEOの试炼

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊,我要和作CEOの试炼

CEOの试炼

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊,我要和作CEOの试炼

 

 

2022-12-20T10:23:18 点赞:1

【举报贴】伪官方加插件(应该是插件) 中回复

https://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047dhttps://box3.codemao.cn/e/e7497851ec10a6da047d

2022-12-20T15:23:34 点赞:0

人物怎么跑 中回复

https://box3.codemao.cn/e/e7497851ec10a6da047d

2022-12-20T15:24:18 点赞:1

一起来合作,一起来合作! 中回复

https://box3.codemao.cn/e/e3b6ca65031b5060b606

2022-12-20T15:52:50 点赞:1

浅浅的招个人…… 中回复


var seaLevel=14;
var xzZoom=10;
var yZoom=20;
var exZ1=1;
var exZ2=1;
var exZ3=10;
var base=4;
function tree(x,y,z){
    if(voxels.getVoxel(x,y,z)!=voxels.id("water")){
       var rand=1;
    for(let i=y+rand;i<y+4+rand;i++){
            voxels.setVoxel(x,i,z,"acacia");
        }
    for(let i=3+rand;i<5+rand;i++){
        for(let j=-2;j<3;j++){
            for(let k=-2;k<3;k++){
                voxels.setVoxel(x+j,y+i,z+k,"green_leaf");
            }
        }
    }
    for(let j=-1;j<2;j++){
        for(let k=-1;k<2;k++){
            voxels.setVoxel(x+j,y+5+rand,z+k,"green_leaf");
        }
    }
    voxels.setVoxel(x-1,y+6+rand,z,"green_leaf");
    voxels.setVoxel(x,y+6+rand,z,"green_leaf");
    voxels.setVoxel(x+1,y+6+rand,z,"green_leaf");
    voxels.setVoxel(x,y+6+rand,z-1,"green_leaf");
    voxels.setVoxel(x,y+6+rand,z+1,"green_leaf");
    }
    
};
(async function(){
for(let i=0;i<127;i++){
    var ii=i-63;
    var xh=Math.sin(i/xzZoom)*yZoom+i/5;
    for(let j=0;j<127;j++){
        var jj=j-63;
         var zh=Math.cos(Math.pow(Math.sin(j/xzZoom),2))*yZoom*exZ1;
        if(xh+zh+base<seaLevel){
            voxels.setVoxel(i,xh+zh+base,j,"dirt");
            for(let k=0;k<xh+zh+base-1;k++){
                voxels.setVoxel(i,k,j,"dirt");
            }
        }else if(Math.round(xh+zh+base)==seaLevel){
            voxels.setVoxel(i,xh+zh+base,j,"sand");
            for(let k=0;k<xh+zh+base-1;k++){
                voxels.setVoxel(i,k,j,"dirt");
            }
        }else{
            voxels.setVoxel(i,xh+zh+base,j,"grass");

            for(let k=0;k<xh+zh+base-1;k++){
                voxels.setVoxel(i,k,j,"dirt");
            }
        }
        
        
    }
    await sleep(20);
}
for(let i=0;i<127;i++){
    for(let j=0;j<127;j++){
        for(let k=0;k<=seaLevel;k++){
            if(voxels.getVoxel(i,k,j)==0){
                voxels.setVoxel(i,k,j,"water");
            }
        }
    }
}
await sleep(1000);
world.say("即将生成建筑和树木");
for(let i=0;i<127;i++){
    for(let j=0;j<127;j++){
        for(let k=0;k<100;k++){
            if(voxels.getVoxel(i,k,j)==voxels.id("grass")){
                if(Math.random()*100<=1){
                    tree(i,k,j);
                }
            }
        }
    }
    await sleep(10);
}

})();

2022-12-21T10:18:31 点赞:0

如何能像TNT派对那样左键(手机A)切换视角呢(?) 中回复

var seaLevel=14;
var xzZoom=10;
var yZoom=20;
var exZ1=1;
var exZ2=1;
var exZ3=10;
var base=4;
function tree(x,y,z){
    if(voxels.getVoxel(x,y,z)!=voxels.id("water")){
       var rand=1;
    for(let i=y+rand;i<y+4+rand;i++){
            voxels.setVoxel(x,i,z,"acacia");
        }
    for(let i=3+rand;i<5+rand;i++){
        for(let j=-2;j<3;j++){
            for(let k=-2;k<3;k++){
                voxels.setVoxel(x+j,y+i,z+k,"green_leaf");
            }
        }
    }
    for(let j=-1;j<2;j++){
        for(let k=-1;k<2;k++){
            voxels.setVoxel(x+j,y+5+rand,z+k,"green_leaf");
        }
    }
    voxels.setVoxel(x-1,y+6+rand,z,"green_leaf");
    voxels.setVoxel(x,y+6+rand,z,"green_leaf");
    voxels.setVoxel(x+1,y+6+rand,z,"green_leaf");
    voxels.setVoxel(x,y+6+rand,z-1,"green_leaf");
    voxels.setVoxel(x,y+6+rand,z+1,"green_leaf");
    }
    
};
(async function(){
for(let i=0;i<127;i++){
    var ii=i-63;
    var xh=Math.sin(i/xzZoom)*yZoom+i/5;
    for(let j=0;j<127;j++){
        var jj=j-63;
         var zh=Math.cos(Math.pow(Math.sin(j/xzZoom),2))*yZoom*exZ1;
        if(xh+zh+base<seaLevel){
            voxels.setVoxel(i,xh+zh+base,j,"dirt");
            for(let k=0;k<xh+zh+base-1;k++){
                voxels.setVoxel(i,k,j,"dirt");
            }
        }else if(Math.round(xh+zh+base)==seaLevel){
            voxels.setVoxel(i,xh+zh+base,j,"sand");
            for(let k=0;k<xh+zh+base-1;k++){
                voxels.setVoxel(i,k,j,"dirt");
            }
        }else{
            voxels.setVoxel(i,xh+zh+base,j,"grass");

            for(let k=0;k<xh+zh+base-1;k++){
                voxels.setVoxel(i,k,j,"dirt");
            }
        }
        
        
    }
    await sleep(20);
}
for(let i=0;i<127;i++){
    for(let j=0;j<127;j++){
        for(let k=0;k<=seaLevel;k++){
            if(voxels.getVoxel(i,k,j)==0){
                voxels.setVoxel(i,k,j,"water");
            }
        }
    }
}
await sleep(1000);
world.say("即将生成建筑");
for(let i=0;i<127;i++){
    for(let j=0;j<127;j++){
        for(let k=0;k<100;k++){
            if(voxels.getVoxel(i,k,j)==voxels.id("grass")){
                if(Math.random()*100<=1){
                    tree(i,k,j);
                }
            }
        }
    }
    await sleep(10);
}

})();

2022-12-21T10:20:36 点赞:0

一起来合作,一起来合作! 中回复

//*伴雪纷飞版权所有
//没进地图时按f12输入
box3=document.querySelector(".desktop")._reactRootContainer._internalRoot.current.updateQueue.baseState.element.props.children.props.children.props.state;

//进地图后输入
box3.box3.dialog.resolveDialog();
//伴雪不知道别人是怎么卡的()反正我是这么卡的()原理是拒绝对话框
//按f12或fn+f12打开控制台输入这串代码
//doge(
//*伴雪纷飞版权所有
//没进地图时按f12输入
box3=document.querySelector(".desktop")._reactRootContainer._internalRoot.current.updateQueue.baseState.element.props.children.props.children.props.state;

//进地图后输入
box3.box3.dialog.resolveDialog();
//伴雪不知道别人是怎么卡的()反正我是这么卡的()原理是拒绝对话框
//按f12或fn+f12打开控制台输入这串代码
//doge(

2022-12-21T12:39:55 点赞:0

【代码】灯塔 中回复

5555555555

2022-12-21T13:25:15 点赞:0

细思极恐的《超时空对决》!? 中回复

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

喆你别来封我号!求你)))emotion_黑线

2022-12-21T15:46:46 点赞:1

一起来合作,做出贡献者上黄金万两 中回复

006https://www.bilibili.com/video/
BV1hq4y1S7VH

2022-12-21T17:06:16 点赞:0

神岛首个世界大厅上线!以及圣诞创作节获奖名单公布~ 中回复

你将在这个地图体验到:

1. 永远卡顿的服务器

2. 模型无碰撞,脚埋进地里+墙上莫名其妙的洞+永远也不知道地板是不是虚空

3. 开G的dalao

4. 刷屏的猴子

5. GPU温度70℃+

6. 帧率巨大波动

7. 被碰撞弹上天

8. 被烤焦的排风扇

你将在这个地图体验到:

1. 永远卡顿的服务器

2. 模型无碰撞,脚埋进地里+墙上莫名其妙的洞+永远也不知道地板是不是虚空

3. 开G的dalao

4. 刷屏的猴子

5. GPU温度70℃+

6. 帧率巨大波动

7. 被碰撞弹上天

8. 被烤焦的排风扇

2022-12-26T13:34:25 点赞:0

地表最强の炸炸喵,这是啥? 中回复

你将在这个地图体验到:

1. 永远卡顿的服务器

2. 模型无碰撞,脚埋进地里+墙上莫名其妙的洞+永远也不知道地板是不是虚空

3. 开G的dalao

4. 刷屏的猴子

5. GPU温度70℃+

6. 帧率巨大波动

7. 被碰撞弹上天

8. 被烤焦的排风扇

 

 

 

 

2022-12-26T13:36:22 点赞:0

吉吉猫这次真的生气了(顺序可能不对) 中回复

 

《2020-03-22发布》

2022-12-27T08:01:15 点赞:0

帮军长渡选个新头像吧 中回复

2022-12-27T12:23:49 点赞:0

又崩了... 中回复

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

2022-12-27T12:37:57 点赞:1

神岛创造端、游玩端坏了 中回复

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

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

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

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

 

2022-12-27T12:39:44 点赞:0

完了完了,神奇代码岛什么也进不去了!!!!!!! 中回复

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

2022-12-27T12:40:38 点赞:1

完了完了,神奇代码岛什么也进不去了!!!!!!! 中回复

对,我也发贴骂那个姓吉的emotion_编程猫_溜了溜了emotion_雷电猴_围观

2022-12-27T12:43:39 点赞:0

【岛3圣诞创作节】获奖名单公布!最大赢家居然是……进来领奖励! 中回复

《2020-12-24发布》

2022-12-28T07:55:37 点赞:1