用户:
YDS尹子查看:566 回复:25 评论:32 创建时间:2020-07-05T11:38:35
最近有人催我要发一个金字塔代码@面具狐狸
这是代码:
注意:
start是中心点坐标
rad是半径
block是方块
金字塔的高度和半径相关,所以就没有输入值啦
var start={x:喵,y:9,z:喵};
var rad=16;
var block="sand";
var y=start.y+rad-1;
for(let radius=1;radius<=rad;radius++){
for(let angle=0;angle<360;angle++){
var x=Math.round(Math.sin(Math.PI/180*angle)*radius+start.x);
var z=Math.round(Math.cos(Math.PI/180*angle)*radius+start.z);
voxels.setVoxel(x,y,z,block);
}
y--;
}
_Rise_为啥会有好多洞?
点赞0
评论
半径你调太大了吧
半径63....
链接给我下我有空去看看
https://box3create.codemao.cn/games/d033e463c0919喵672b2
555,我需要建房子的代码,代码研究出来后叫我,并且告诉我帖子名称
点赞0
评论
https://shequ.codemao.cn/wiki/forum/329519
https://shequ.codemao.cn/wiki/forum/330248
https://shequ.codemao.cn/wiki/forum/330231
https://shequ.codemao.cn/wiki/forum/330527
感谢伊子分享代码,非常感谢!!!
是尹子(yin zi)
请问如何做出像哈哈农场商人的效果,按下E建问是否进入商店,一个选项是是,一个是否,点了是移到x,x,x
点赞0
评论
看API去
在不到
能发代码吗?
找不到
怎么就找不到了
哪你给我代码?
https://docs.box3.codemao.cn/box3dialogcall.html#box3selectdialogparams 往下翻自己看
你给我代码行吗?