Lv.1
在 【岛3老活新整创作节】官方地图《赤碧城》限时送,报名时间已截止! 中回复
我要报名参赛,我的编辑地址是:https://box3.codemao.cn/e/dac70e840a4a55a9aa56
2021-04-29T21:11:29 点赞:0
在 【收徒学代码】 中回复
我,我想学sql,其他函数之类的还行,sql总是报错,啊啊啊啊imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"
2022-04-28T10:09:22 点赞:0
在 【神岛创作节】年度优秀地图召唤行动,比赛倒计时1天~ 中回复
https://box3.codemao.cn/e/c3b5595e0a1da9f6c247地图需要1名代码师+一名会建模和建筑的,
2022-07-11T12:03:19 点赞:1
在 【岛三工具】瞧瞧这次SQL生成器又更新了什么! 中回复
async function saveData(entity) {
if (entity.player.userKey) {
await db.sql`
INSERT INTO player (
bag,
coin,
userKey
)
VALUES (
${entity.player.bag},
${entity.player.coin},
${entity.player.userKey}
)
ON CONFLICT(userKey)
DO UPDATE SET
bag = excluded.bag,
coin = excluded.coin,
userKey = excluded.userKey
`
}
}
world.onPlayerLeave(async ({entity})=>{await saveData(entity);});
async function loadData(entity) {
const data = (
await (
db.sql`
SELECT * FROM player WHERE userKey = ${entity.player.userKey} limit 1
`
)
)[0];
if (data) {
entity.player.bag = data.bag;
entity.player.coin = data.coin
entity.player.directMessage('已读取数据');
} else {
entity.player.directMessage('你是第一次进入这个地图,已创建数据');
}
}2022-08-06T14:01:33 点赞:0
在 【box3】怎么做出排行榜这样的排除第一第二 中回复
var arr = [9,8,55,66,49,68,109,55,33,6,2,1];
var max = arr[0];
for(var i = 1; i < arr.length; i++){
if( max < arr[i] ){
max = arr[i];
}
}2022-08-20T19:54:24 点赞:0
在 我求以下方块:使人物能冲刺;使人物能蹬墙;使人物能攻击;使人物能受伤(洛克人大佬都懂)。求求了! 中回复
entity.velocity.x += direction.x; entity.velocity.x += direction.x; entity.velocity.z += direction.z; entity.velocity.z += direction.z; entity.velocity.x += direction.x; entity.velocity.z += direction.z; entity.tuci = 1 entity.tucicd = 1 await sleep(1000) entity.tuci = 0 await sleep(2000) entity.tucicd = 0 entity.tuci = 0
2022-11-27T21:16:51 点赞:0
在 【NCT哔哔机&第二期】带盐人哔哔赛!为NCT12月考打call 中回复
我学的是python,之前考4级,很紧张,每周都要复习复习函数呀什么的,然后做那个模拟复习题,然后经过一顿奋战最终是那个暑假是成功了,拿到了88分
2022-12-06T21:21:24 点赞:3
在 不懂就问:地图是不是可以用模型当方块无限扩大? 中回复
可是现在这些心编辑器地图那么大空间就是用模型,新编辑器:模型卡顿优化了,但目前地图小,所有模型完美适合新编辑器地图
2023-06-28T18:47:58 点赞:0