
Lv.1
签名:一枚被封藏在历史中的屑?
在 求助,box3如何自动生成玻璃围栏 中回复
for(let x=0;x<256;x++)for(let y=0;y<256;y++){
if(voxels.getVoxel(x,y,0)==voxels.id('air')){
voxels.setVoxel(x,y,0,'glass');/*第一道墙*/
}
if(voxels.getVoxel(0,y,x)==voxels.id('air')){
voxels.setVoxel(0,y,x,'glass');/*第二道墙*/
}
if(voxels.getVoxel(x,y,254)==voxels.id('air')){
voxels.setVoxel(x,y,254,'glass');/*第三道墙*/
}
if(voxels.getVoxel(254,y,x)==voxels.id('air')){
voxels.setVoxel(254,y,x,'glass');/*第四道墙*/
}
/*下面是封顶*/
if(voxels.getVoxel(x,63,y)==voxels.id('air')){
voxels.setVoxel(x,63,y,'glass');
}
await sleep(1);/*防止卡爆*/
}
/*这个是大地图的代码,输到控制台*/2021-03-15T19:24:54 点赞:0
在 求助,box3如何自动生成玻璃围栏 中回复
(async()=>{
for(let x=0;x<256;x++)for(let y=0;y<256;y++){
if(voxels.getVoxel(x,y,0)==voxels.id('air')){
voxels.setVoxel(x,y,0,'glass');/*第一道墙*/
}
if(voxels.getVoxel(0,y,x)==voxels.id('air')){
voxels.setVoxel(0,y,x,'glass');/*第二道墙*/
}
if(voxels.getVoxel(x,y,254)==voxels.id('air')){
voxels.setVoxel(x,y,254,'glass');/*第三道墙*/
}
if(voxels.getVoxel(254,y,x)==voxels.id('air')){
voxels.setVoxel(254,y,x,'glass');/*第四道墙*/
}
/*下面是封顶*/
if(voxels.getVoxel(x,62,y)==voxels.id('air')){
voxels.setVoxel(x,62,y,'glass');
}
await sleep(1);/*防止卡爆*/
}
})()
/*这个是大地图的代码,输到控制台*/
/*这个没错误*/2021-03-15T19:34:30 点赞:0
在 【岛3创作节】爆“肝”48小时后,你们做出了怎样的作品? 中回复
拉个票
https://shequ.codemao.cn/community/369686
2021-03-28T17:33:39 点赞:0
在 【岛3创作节】爆“肝”48小时后,你们做出了怎样的作品? 中回复
喵!https://box3.codemao.cn/p/b5a5c9381c245166e8ad
2021-03-28T18:10:07 点赞:0
在 【岛3创作节】爆“肝”48小时后,你们做出了怎样的作品? 中回复
喵!https://box3.codemao.cn/p/b5a5c9381c245166e8ad
2021-03-28T18:47:20 点赞:0
在 【岛3创作节】目标达成后,开启你的视频show! 中回复
2021-03-29T18:37:58 点赞:0
在 【岛3挑战32创作节】激情碰碰车 中回复
2021-03-29T19:22:02 点赞:0
在 这哪里错了? 中回复
world.onChat(({entity,message})=>{ if(message.startsWith(`/kill`)){ if(message.endsWith(entity.player.name)){ entity.hurt(entity.hp); entity.player.directMessage('你杀死了自己'); }else{ world.querySelectorAll('player').forEach((x)=>{ if(message.endsWith(x.player.name)){ x.hurt(x.hp); world.say(`${entity.player.name}击杀了玩家${x.player.name}`); return; } }) } } })
2021-03-29T20:06:50 点赞:0
在 【岛3创作节】目标达成后,开启你的视频show! 中回复
2021-03-30T19:38:34 点赞:0
在 急需!谁能教教我怎样用代码控制人物说话? 中回复
varnumber1=3;string1='名字';//number1是互动范围,string1是互动名称 world.querySelectAll('.标签').forEach((entity)=>{ entity.enableInteract=true; entity.interactRadius=number1; entity.interactHint=string1; entity.onInteract(({entity})=>{ //执行某些代码 }) }) //当然也可以是其他实体,甚至是一个玩家
2021-03-30T19:46:53 点赞:0
在 【岛3教程】有了存档功能,跑酷再也不虐了! 中回复
2021-03-30T19:48:28 点赞:0