
Lv.1
看来没有人发现我是break
签名:质量、创新以及正向 一直以来都是我和c*的目标 没人知道我一直在他手里吗(() dule也变成了我的别名, 就像c*化装成quast(问题)一样(
在 斯这。。。 中回复
c喵ole.clear();
var y = 100;
for (
var a = 50 + Math.round(Math.random() * 50),
b = 0,
x = Math.round(Math.random() * 128),
z = Math.round(Math.random() * 128),
size = Math.round(Math.random() * 10);
b <= a;
b + 1
) {
!async function () {
for (var x1 = -Math.round(size / 2); x1 <= size / 2; x1++) {
for (var z1 = -Math.round(size / 2); z1 <= size / 2; z1++) {
voxels.setVoxel(
x + x1,
y,
z + z1,
"air",
0
);
}
}
}();//啊啊啊我恨这括号(恼极了)
};
c喵ole.log("over");2023-01-04T18:09:25 点赞:0
在 斯这。。。 中回复
*故事*
后来这个大大屑特
改了代码
var dig = [], y = 100;
!async function () {
for (var deep = 0; deep < 51;) {
var max = random(deep ^ 1.2);
deep += 1 + random(5);
for (var count = 0; count <= max; count++) {
var x = random(128), z = random(128);
dig.push([
x,
y - deep,
z,
random(800, 100),
random(80, 10),
random(180, -180),
random(180, -180),
random(180, -180)
]);
};
};
}();
console.log("over", dig.length, dig);
啊屑想在某几层生成几个 <dig>起点
于是有了如上
想从这些点(x=dig[point][1],y=dig[point][2],z=dig[point][3])
出发(以dx=dig[point][6],dy=...,dz=...)方向)掘进 dig[point][4]个坐标点,
粗细为dig[point][5]
但是不会3d()去找速建
找到了还没做
觉得Math.random()+Math.round()太麻烦
然后去翻“范围随机数 js”
得到
function random(max, min) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
因为min输入了0,输出了null
这个屑很不爽
于是试图改造
得出
function random(max, min) {
if (!max && !min || typeof max != "number") { return (NaN) }
else {
if (min == null || typeof min != "number") {
min = 0
} else {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
然后生成程序直接无结果啦
屑十分恼2023-01-04T22:12:22 点赞:0
在 代码教学之如何让官方直接审核你的地图? 中回复
该这样吧
world.onPlayerJoin(({entity})=>{
if(entity.player.name='吉吉喵'&& entity.player.name='和平队长'){
}else{
entity.player.kick();
}
})
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
2023-01-05T22:15:25 点赞:0
在 给大家一道闲得蛋/疼的数学题 中回复
先拼下半
1:
2L+1方

拼成一个4*3但上面的两个平行四边形就没空间了
所以必须有一个L与平行四边形相接
2
条(形) + T+ L

这样看上去又多了一个 T形
继续但是又发现怎样放都有一放不了

3
两四边对接

最好的样子:

可恶,我想不出来了
2023-01-06T18:14:33 点赞:0
在 【求助】击杀实体后如何让它复活?(主要是想做刷怪) 中回复
看这:
world.onClick(({entity/*被点对象*/,distance/*距离(单位 格)*/}) => {
if(distance<=20){
entity.hurt(5)//伤害量
}
})
docs.box3.cod喵/box3entity.html#%E6%8E%A7%E5%88%B6%E5%AE%9E%E4%BD%93%E7%9A%84%E7%94%9F%E5%91%BD%E5%80%BC2023-01-06T18:33:26 点赞:0