
Lv.1
只活在神岛)一个连代码都不会写的人awa
签名:一个只活在神岛的入)
在 啊这、啊啊啊 中回复
https://kitten4.codemao.cn/?invite_code=9IVFIX喵:9IVFIX我在编程猫发起了一个协作项目,点击链接即可加入一起创作!
2022-10-04T10:27:30 点赞:0
在 【神岛创作节】万圣节那晚,我进入了32*32的异世界…… 中回复
有谁要鼠标右键代码(给我暗区突围点个赞直接抱走)
// 右键
world.onPlayerJoin(({ entity }) => {
entity.player.onPress(async ({ button }) => {
if (button == Box3ButtonType.ACTION1) {
const res = await entity.player.dialog({
type: Box3DialogType.SELECT,
content: `请问有什么事?`,
options: ['切换视角', '观战', '俯视全图','回到存档点']
})
if (!res || res === null) return;
if (res.value == '切换视角') {
if (entity.player.cameraMode === 'follow') {
entity.player.cameraMode = 'fps';
}
else {
entity.player.cameraMode = 'follow';
}
}
if (res.value == '重新开始') {
Object.assign(entity, INIT);
entity.position.set(entity.x, entity.y, entity.z);
entity.player.spawnPoint.set(entity.qx, entity.qy, entity.qz);
update.call(entity);
}
if (res.value == '观战') {
entity.player.directMessage(`左键退出观战`)
var players = world.querySelectorAll('player')
var names = []
for (const i in players) {
names.push(players[i].player.name)
}
const result = await entity.player.dialog({
type: Box3DialogType.SELECT,
lookEye: entity.player.position,
content: '请问你要观战谁?',
options: names,
})
if (!result || result === null) {
return;
}
world.querySelectorAll('player').forEach((x) => {
if (x.player.name == result.value) {
entity.player.cameraEntity = x;
}
});
world.onPlayerJoin(async ({ entity }) => {
entity.player.onPress(async ({ button }) => {
if (button == Box3ButtonType.ACTION0) {
if (entity.player.cameraEntity === entity) return;
else {
entity.player.cameraEntity = entity
entity.player.directMessage(`已退出`)
}
}
})
})
}
if (res.value == '回到存档点') {
entity.player.directMessage('已回到存档点!');
entity.player.directMessage('sir: .......')
entity.player.directMessage('sir:咋掉了?不耐跑啊~')
entity.player.forceRespawn()
entity.player.invisible = false;
}
}
})
})
2022-11-05T11:33:03 点赞:1
在 军港风暴招代码师+建筑!!! 中回复
出了点小差错,链接重发:https://box3.codemao.cn/e/3434c08f9f07cd71cb34
2023-02-24T22:24:01 点赞:0
在 逃离块科夫V.10版本更新预告来啦!!! 中回复
地图链接:https://box3.codemao.cn/g/50177721
有什么建议或意见都可以提出,我会进行整改!!!
管理员第一次招募时间:2023.3.15至2023.3.31
如果要报名管理员,请在本论坛报名,如果有人举报滥用管理员权限、乱封号的,可以在这里进行举报,我会对该用户进行永久封禁并且永久删除管理员权限,永久禁止参与管理员竞选!!!还有如果有违规现象的,也可以在这里进行举报,一旦审核成功,我会对该用户进行相应的惩罚!!!
2023-03-15T13:34:59 点赞:0
在 【我被盗 号了?为啥是我号???iframe链接又是啥】解决一下一些萌新的疑惑 中回复
2023-03-15T13:41:13 点赞:0
在 逃离块科夫V.10版本更新预告来啦!!! 中回复
2023-03-15T13:50:41 点赞:0
在 逃离块科夫V.10版本更新预告2.0!!! 中回复
原本的更新预告:https://shequ.codemao.cn/community/531944
2023-03-16T13:32:36 点赞:0
在 初中部做完啦!!! 中回复
2023-05-11T20:48:28 点赞:0