
Lv.1
念往昔岁月
签名:dao3 羽岚.龍族[原]:Aoken 是我 2022-05-29 22:55:02 注册此账号 如想知道自己账号注册时间 记得先登录好账号可打开:https://api.codemao.cn/web/users/details 查看create_time的数字 并在 https://tool.lu/timestamp/ 进行时间轴转换
在 js代码教学(全册) 中回复
格式整理后
空岛生成器 https://shequ.codemao.cn/community/422438
山生成器 https://shequ.codemao.cn/community/436549
空气墙 https://shequ.codemao.cn/community/250211
喵 https://shequ.codemao.cn/community/243421
不可动 https://shequ.codemao.cn/community/415676
火车(可载人) https://shequ.codemao.cn/community/303280
SQL教程 happy-cola.github.io/box3-code-maker/create.html
河流生成器 https://shequ.codemao.cn/community/425522
超真实地形生成器https://shequ.codemao.cn/community/368253
音乐制作方法 https://shequ.codemao.cn/community/344172
人工不智能 https://shequ.codemao.cn/community/436173
图片变迷宫 https://shequ.codemao.cn/community/421006
指定方块替换 https://shequ.codemao.cn/community/312866
玩家变身 https://shequ.codemao.cn/community/256717
输入姓名移动 https://shequ.codemao.cn/community/344785
超真实地形生成器(2.0) https://shequ.codemao.cn/community/422176
玩家强制跟随 https://shequ.codemao.cn/community/428105
圈地代码 https://shequ.codemao.cn/community/251013
生物移动 https://shequ.codemao.cn/community/330161
挂机检测 https://shequ.codemao.cn/community/367470
打字机对话框 https://shequ.codemao.cn/community/432147
输出文字 https://shequ.codemao.cn/community/432477
模型变方块 https://shequ.codemao.cn/community/387221
跑酷代码(官方):https://shequ.codemao.cn/community/434585
2023-05-15T20:18:47 点赞:0
在 一个大屑的第一个速建代码 中回复
V 0.0.2版本:
修剪了点
变得更简单,更多功能
SetVoxel_xy=(x_pos,x_,y_pos,y_,z_pos,voxel)=>{
for(let x=x_pos;x>x_;x--){for(let y=y_pos;y<y_;y++){voxels.setVoxel(x,y,z_pos,voxel);}};
}
SetVoxel_yz=(y_pos,y_,z_pos,z_,x_pos,voxel)=>{
for(y=y_pos;y<y_;y++){for(let z=z_pos;z>z_;z--){voxels.setVoxel(x_pos,y,z,voxel);}};
}
SetTB_xz=(x_pos,x_,z_pos,z_,y_pos,voxel)=>{
for(x=x_pos;x<x_;x++){for(z=z_pos;z<z_;z++){voxels.setVoxel(x,y_pos,z,voxel);}};
}
Wall=(start_y=9,end_y=20,wall_voxel='brick_red',top_voxel='water',botton_voxel='stone')=>{
/* 制作墙体 */
SetVoxel_xy(127,-1,start_y,end_y,126,wall_voxel);
SetVoxel_yz(start_y,end_y,127,-1,126,wall_voxel);
SetVoxel_xy(127,-1,start_y,end_y,0,wall_voxel);
SetVoxel_yz(start_y,end_y,127,-1,0,wall_voxel)
/* 制作顶 */
top_y = end_y++ // 设置顶的yy坐标
SetTB_xz(0,127,0,127,top_y,top_voxel)
/* 制作底 */
botton_y = start_y // 设置底的yy坐标
SetTB_xz(0,127,0,127,botton_y,botton_voxel)
}
Wall();// 制作墙壁2023-05-16T21:23:32 点赞:0