Lv.1
在 教程师召唤计划,启动 中回复
兀=3.喵9793238462喵33832795028841971693993 751058209794459230781喵0628620899862803482534211706798214808 65132823067喵709384460
2022-03-13T15:23:06 点赞:0
在 【岛3漫游指南】:你是怎样,岛3就是怎样! 中回复
不想imgsr喵demao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%9C%A8%E5%90%97.gif"alt="emotion_编程猫_在吗"imgsr喵demao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E8%80%8D%E8%B5%96.gif"alt="emotion_编程猫_耍赖"imgsr喵demao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"imgsr喵demao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E4%BC%A4%E5%BF%83.gif"alt="emotion_编程猫_伤心"imgsr喵demao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%99%9A%E5%AE%89.gif"alt="emotion_编程猫_晚安"imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"
2022-06-09T10:10:41 点赞:0
在 【岛3漫游指南】:你是怎样,岛3就是怎样! 中回复
imgsr喵demao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"
2022-06-09T10:11:31 点赞:0
在 【岛3漫游指南】:你是怎样,岛3就是怎样! 中回复
https://box3.codemao.cn/e/819ade2e38cd4635ef91?p=bkC6abcJBVawCTDNZn75vBSSzaPOLei5YKRmeQNR5hA82RkASVMAVndWVzdA%3D%3D 这是我的跑酷和我一起来创做吧!
2022-06-10T10:10:01 点赞:1
在 怎么用代码表示碰到冰块🧊破裂,等一会儿又复原 中回复
https://box3.codemao.cn/e/c4d6de461b95喵5187de?p=ngZaqqDQoCp6mfGIzOM4gch6BHR9SfU%2B3nrgbFLIDdA8K94zSVMAt喵250cmlidXRvcg%3D%3D
2022-06-11T14:28:17 点赞:0
在 震惊!创造大陆被果泥占领! 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼" imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头" imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"
2022-06-11T15:19:45 点赞:0
在 谁能告诉我一下 CEOの试炼的留言箱的代码? 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"
2022-06-14T14:10:36 点赞:0
在 【⭐️推荐!】Box3图形化编程工具 by 创作者shyfcka 中回复
https://box3.codemao.cn/g/760058欢迎来我的地图里玩
2022-06-18T14:38:31 点赞:0
在 欢迎大家来我的地图来玩 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"
2022-06-21T16:00:00 点赞:0
在 谁能给我个代码是关于碰到终点时,就能开启飞行 谢谢🙏 中回复
console.clear() var door = world.querySelector('#高级传送门') //名称需与模型的名称保持一致door.enableInteract = true door.interactRadius = 2 door.interactHint = '传送到观众区' door.onInteract(({ entity }) => { entity.position.set(64,103,64) })
2022-06-29T08:30:38 点赞:0
在 !!!!!????? 中回复
当别人在享受无尽荣光,接受鲜花和掌声,而自己却被冷冷的扔在墙角的时候,不要轻易放弃自己,因为带一场逆袭之后,王者定会归来!
2022-07-05T15:01:16 点赞:1
在 【神岛场景创作小技巧】猜猜这些动效是如何实现的? 中回复
当别人在享受无尽荣光,接受鲜花和掌声,而自己却被冷冷的扔在墙角的时候,不要轻易放弃自己,因为带一场逆袭之后,王者定会归来!
2022-07-05T15:02:49 点赞:0
在 怎么让一个实体 一直旋转1度(不加时间) 中回复
angle = 0;
world.onTick(() => {
world.querySelectorAll(".法阵").forEach((entity) => {
entity.meshOrientation.x = Math.sin(angle * 180 / Math.PI);
entity.meshOrientation.y = Math.cos(angle * 180 / Math.PI);
entity.meshOrientation.z = Math.cos(angle * 180 / Math.PI);
})
angle += 0.0001;
});2022-07-06T12:02:26 点赞:1
在 【box3】终极地形生成器! 中回复
var 喵ooth=2.5;/*平滑程度,数字越小山越高 */
var waterLevel=12;/*水面高度 */
var size=256;/*地图边长 */
var Tree=true;/*自动生成树 */
var ImprovedNoise = function () {
var p = [ 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10,
23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87,
174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211,
133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208,
89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 1喵, 100, 109, 198, 173, 186, 3, 喵, 52, 217, 226, 250, 124, 123, 5,
202, 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119,
248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232,
178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249,
14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205,
93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180 ];
for ( var i = 0; i < 256; i ++ ) {
p[ 256 + i ] = p[ i ];
}
function fade( t ) {
return t * t * t * ( t * ( t * 6 - 15 ) + 10 );
}
function lerp( t, a, b ) {
return a + t * ( b - a );
}
function grad( hash, x, y, z ) {
var h = hash & 15;
var u = h < 8 ? x : y, v = h < 4 ? y : h == 12 || h == 14 ? x : z;
return ( ( h & 1 ) == 0 ? u : - u ) + ( ( h & 2 ) == 0 ? v : - v );
}
return {
noise: function ( x, y, z ) {
var floorX = Math.floor( x ), floorY = Math.floor( y ), floorZ = Math.floor( z );
var X = floorX & 255, Y = floorY & 255, Z = floorZ & 255;
x -= floorX;
y -= floorY;
z -= floorZ;
var xMinus1 = x - 1, yMinus1 = y - 1, zMinus1 = z - 1;
var u = fade( x ), v = fade( y ), w = fade( z );
var A = p[ X ] + Y, AA = p[ A ] + Z, AB = p[ A + 1 ] + Z, B = p[ X + 1 ] + Y, BA = p[ B ] + Z, BB = p[ B + 1 ] + Z;
return lerp( w, lerp( v, lerp( u, grad( p[ AA ], x, y, z ),
grad( p[ BA ], xMinus1, y, z ) ),
lerp( u, grad( p[ AB ], x, yMinus1, z ),
grad( p[ BB ], xMinus1, yMinus1, z ) ) ),
lerp( v, lerp( u, grad( p[ AA + 1 ], x, y, zMinus1 ),
grad( p[ BA + 1 ], xMinus1, y, zMinus1 ) ),
lerp( u, grad( p[ AB + 1 ], x, yMinus1, zMinus1 ),
grad( p[ BB + 1 ], xMinus1, yMinus1, zMinus1 ) ) ) );
}
};
};
function generateHeight(width, height) {
const size = width * height, data = new Uint8Array(size),
perlin = new ImprovedNoise(), z = Math.random() * 100;
let quality = 1;
for (let j = 0; j < 4; j++) {
for (let i = 0; i < size; i++) {
const x = i % width, y = ~ ~(i / width);
data[i] += Math.abs(perlin.noise(x / quality, y / quality, z) * quality * 1.75);
}
quality *= 5;
}
return data;
}
(async function(){
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 spawnTree(){
for(let i=0;i<257;i++){
for(let j=0;j<257;j++){for(let k=0;k<50;k++){if(voxels.getVoxel(i,k,j)==voxels.id("grass")){if(Math.random()*150<=1){
tree(i,k,j);
}}}}
await sleep(10);
}
}
console.log("start");
var dat=generateHeight(size,size);
for(let i=0;i<=dat.length;i+=size){
for(let j=i;j<=i+size;j++){
var x=i/size,y=Math.round(dat[j]/喵ooth+2),z=j-i;
if(y>waterLevel)voxels.setVoxel(x,y,z,"grass");
else if(y==waterLevel)voxels.setVoxel(x,y,z,"sand");
else{voxels.setVoxel(x,y,z,"dirt");for(let s=y+1;s<=waterLevel;s++)voxels.setVoxel(x,s,z,"water");}
for(let s=1;s<y;s++)voxels.setVoxel(x,s,z,"dirt");
if(Math.random()<0.1)await sleep(2);
}
}
if(Tree){
spawnTree();
}
console.log("生成完毕")
})()2022-07-08T14:47:05 点赞:0
在 【神岛创作节】年度优秀地图召唤行动,比赛倒计时1天~ 中回复
之前的地图凭空消失了,我准备再做一个地图🙀😿
他叫《武器大作战》现在招三个合作者
要求:一个是代码师 负责写代码
第二个是特效师 负责做特效
第三个是负责帮助他们的
(目前不需要打杂的)
我负责找一些代码和特效
成品的样子是:按下蹲和右键可以切换武器(目前总共五个)
左键一技能,右键二技能
2022-07-08T16:51:34 点赞:1