猫史档案馆


SCS_user_LoeheodVOQ

SCS_user_LoeheodVOQ

Lv.1

原名:QXN.独立的暴风雀

获赞:3443收藏:548浏览:14764作品收藏:354

签名:点赞是自动的,但不是所有作品都点 原名:QXN独立的暴风雀 岛三同名(id:13046303,boxid:SMYLuke) 邮箱:SMYLuke@163.com QQ:无 正在开发: box3应用市场 编程猫违规现象公示 box3-tas sqlEasy log Codemao++ box3-docs bQuery CNN

回复帖子评论
上一页20 页 / 共 35下一页

吉吉喵,有人毁图,bug必须整改!!! 中回复

所以说你是不会版本恢复吗???

2023-01-05T15:08:22 点赞:0

吉吉喵,有人毁图,bug必须整改!!! 中回复

还有你想要吉吉改什么东西

2023-01-05T15:13:21 点赞:0

岛三起床无限火力——新手教程 中回复

写的挺好的,不过我感觉这种帖子会加重岛三游玩化()()

2023-01-05T15:26:42 点赞:1

【社区】这啥玩意? 中回复

https://shequ.codemao.cn/community/515037

2023-01-05T16:06:37 点赞:0

官方能不能加一个私人聊天(官方必看) 中回复

这个可以用聊天室实现(加密码)

2023-01-05T20:58:48 点赞:0

【box】一大疑问 中回复

你在控制台输入

console.warn = $ => $

就不会有新的消息了

2023-01-05T21:46:51 点赞:0

【风纪】你快来啊!!我遇到麻烦了 中回复

主要是你作品再创作超过1000,没法看创作树()

2023-01-06T09:07:19 点赞:0

为什么我有时(几乎都是)发消息会显示登录喵并发布作品才能发消息(我登录好几天了,大号也是) 中回复

https://shequ.codemao.cn/community/515037

2023-01-06T13:39:40 点赞:1

【Python 教程向】屏幕取色器 中回复

我记得pyautogui好像有一个封装过的取色、取坐标的窗口

2023-01-06T13:43:50 点赞:0

【Python 教程向】屏幕取色器 中回复

mouseinfo文档-mouseInfo:This exists as a shortcut instead of running MouseInfoWindow() because
PyAutoGUI (which imports mouseinfo) is set up with a simple mouseInfo()
function and I'd like to keep this consistent with that.

2023-01-06T14:09:40 点赞:0

科幻巨制《星际 · 迷航》开始招募创作人才! 中回复

现在合作者有多少()分别是谁,什么职位()()

2023-01-06T15:43:40 点赞:0

【704地图可能上首页吗】吉吉我有亿个问题 中回复

方块符文就是704的()

2023-01-06T16:13:55 点赞:0

一个想法(?) 中回复

帖号不错()

2023-01-07T14:05:16 点赞:0

官方你出来解释一下 中回复

不要点舞台

2023-01-07T16:59:51 点赞:0

#编程# 传说&萌新 中回复

根本不是ai打广告,就是普通的爬虫

2023-01-07T21:30:49 点赞:1

吐槽一些沙diao代码(雾 中回复

entity.player.name == 'xxx' ? entity.player.kick() : null
// 可以简化为:
entity.player.name == 'xxx' && entity.player.kick()

2023-01-08T08:49:28 点赞:1

吐槽一些沙diao代码(雾 中回复

分号补充:https://shequ.codemao.cn/community/474247

2023-01-08T09:30:25 点赞:0

我能进工作室吗)) 中回复

来我们这()()

2023-01-08T13:30:39 点赞:0

招一个同行肝代码) 中回复

我来)

2023-01-08T13:39:30 点赞:2

【论神岛商业化与新域名的关系】 中回复

结果到现在新域名还没弄好()

2023-01-08T13:42:09 点赞:1

灌水池塘:test 中回复

我看了一下,旧版和新版的api都是一样的,是前端不一样,你用新版发只要操作得当也不会吞格式

2023-01-08T14:46:41 点赞:0

【box】导入问题N(恼) 中回复

// 第一种改法(不推荐)
// 优点:简单
// 缺点:会造成全局污染

//random.js

console.log("random: import sucessed");
function random(max, min) {
    if (typeof min != "number") {
        min = 0
    };
    min = Math.ceil(min);
    max = Math.floor(max);

    return Math.floor(Math.random() * (max - min + 1)) + min;
}

globalThis.random = random;  // random原理只是这个文件里的,这行代码将random放入全局,改成 global.random = random 也可以

//dig.js
require("./random.js");

var dig = [], y = 100;
let rundig = 0;

for (var deep = 0; deep < 71;) {
    var max = random(20, 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(100),
            random(4, 10),
            random(180, -180),
            random(180, -180),
        ]);
    };
};

c.log("over", dig.length);
if (rundig) {
    for (var count = 0; count < dig.length; count++) {
        sleep(1000);
        c.log(count);
        for (
            var diglen = dig[count][3];
            dig <= diglen;
            diglen++) {
            var
                cx = dig[count][0],
                cy = dig[count][1],
                cz = dig[count][2],
                size = dig[count][4],
                up = dig[count][5],
                angle = dig[count][6],
                radius = random(5, 3);
            let xend = cx + size,
                yend = cy + size,
                zend = cz + size;
            for (let x = cx - size; x <= xend; x++) {
                for (let y = cy - size; y <= yend; y++) {
                    for (let z = cz - size; z <= zend; z++) {
                        let dx = x - cx;
                        let dy = y - cy;
                        let dz = z - cz;
                        if (Math.round(Math.sqrt(dx * dx + dy * dy + dz * dz)) <= size) {
                            voxels.setVoxel(x, y, z, "air")
                        }
                    }
                }
            }
            size - random(10);
            cx += Math.cos(angle) * Math.cos(up) * radius;
            cy += Math.sin(up) * radius;
            cz += Math.sin(angle) * Math.cos(up) * radius;
        }
    }
}

 

// 第二种改法(推荐)
// 优点:模块化
// 缺点:复杂
//random.js

console.log("random: import sucessed");
function random(max, min) {
    if (typeof min != "number") {
        min = 0
    };
    min = Math.ceil(min);
    max = Math.floor(max);

    return Math.floor(Math.random() * (max - min + 1)) + min;
}

module.export = {  // require()会返回这个模块的module.export
    random  // 这里使用了对象的特殊语法,也可以写成 random: random
}

//dig.js
const { random } = require("./random.js");  // 解构赋值

var dig = [], y = 100;
let rundig = 0;

for (var deep = 0; deep < 71;) {
    var max = random(20, 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(100),
            random(4, 10),
            random(180, -180),
            random(180, -180),
        ]);
    };
};

c.log("over", dig.length);
if (rundig) {
    for (var count = 0; count < dig.length; count++) {
        sleep(1000);
        c.log(count);
        for (
            var diglen = dig[count][3];
            dig <= diglen;
            diglen++) {
            var
                cx = dig[count][0],
                cy = dig[count][1],
                cz = dig[count][2],
                size = dig[count][4],
                up = dig[count][5],
                angle = dig[count][6],
                radius = random(5, 3);
            let xend = cx + size,
                yend = cy + size,
                zend = cz + size;
            for (let x = cx - size; x <= xend; x++) {
                for (let y = cy - size; y <= yend; y++) {
                    for (let z = cz - size; z <= zend; z++) {
                        let dx = x - cx;
                        let dy = y - cy;
                        let dz = z - cz;
                        if (Math.round(Math.sqrt(dx * dx + dy * dy + dz * dz)) <= size) {
                            voxels.setVoxel(x, y, z, "air")
                        }
                    }
                }
            }
            size - random(10);
            cx += Math.cos(angle) * Math.cos(up) * radius;
            cy += Math.sin(up) * radius;
            cz += Math.sin(angle) * Math.cos(up) * radius;
        }
    }
}

2023-01-08T15:54:21 点赞:0

[#整活失败]失败的万能sql 中回复

其实理论上是可以的()只需要去除一点属性,读取用JSON.parse和Object.assign

2023-01-08T16:34:04 点赞:0

不太对劲的电脑 中回复

你有四核喵U?

2023-01-09T09:11:02 点赞:0

新年计划{大型活动【有没有工作室的人都进来康康(多个知名工作室主办支持)】} 中回复

工具不限,不是bcm的工具也行吗()做个网页()()

2023-01-09T10:27:28 点赞:0

我也是醉了,现在萌新的代码居然有29811行 中回复

那么代码大概率是臃肿的()()也许可以优化到5000行()

2023-01-09T10:38:11 点赞:3

阿吉,能不能给我们这些小创作者一些机会 中回复

吉吉审核的时候是会看的,如果你做的能达到首页标准直接就上首页了

2023-01-09T14:03:16 点赞:0

《做网盘时不小心做了个全站最长的可执行积木》 中回复

代码太臃肿了,可以用函数简化到300块以内的

2023-01-09T17:02:59 点赞:2

【又是box】模块导入&接收问题 中回复

不是,要写module.exports = random,不要加括号

2023-01-09T17:19:40 点赞:0

【又是box】模块导入&接收问题 中回复

你给我修吧()

2023-01-09T17:21:13 点赞:0