
Lv.1
5202年想起黑历史赶忙来优化一下,以后不一定了
签名:“真正的不予置评,是默默走开,而不是拿着键盘像营造众人皆醉他独醒的人设,奈何文化水平又跟不上,起码的分辨能力也没有。”
在 岛3代码求助 中回复
world.onVoxelContact(async({entity,voxel,x,y,z})=>{
if(voxel!=voxels.id('ice')||!entity.isPlayer)return
voxels.setVoxel(x,y,z,0);
await sleep(2000);
voxels.setVoxel(x,y,z,'ice')})2022-12-13T09:52:58 点赞:0
在 【神岛圣诞创作节】一飞冲天 中回复
更改:吴氏大军.帅气的吴某人:部分模型 https://box3.codemao.cn/u/code649180y
2022-12-13T15:32:46 点赞:0
在 【box3】游玩端各能力水平评测标准·ECAL 中回复
15分钟内通关《凤凰塔跑酷》
神级跑酷师
30分钟内通关《HELL》
至高无上级别跑酷师
我应该是神印/将跑酷师吧
等会我再测一下)
2022-12-14T14:47:57 点赞:0
在 求一段代码qwq()() 中回复
//就给动画部分吧
entity.hasAnimate = true
var animate = entity.animate([
{position: entity.position},
{position: [entity.poistion.x+10,entity.poistion.y,entity.poistion.z]}
], {duration: 16 * 0.5})
animate.onFinish(() => {
entity.position.x += 1;
entity.hasAnimate = false
})
//PS:似乎是一剑写的,我改了下看看行不行)2022-12-15T11:11:09 点赞:0
在 求敲简单的代码() 中回复
for(let x=0; x<127; x++){
for(let z=0; z<127; z++){
for(let y=0; y<127; y++){
const voxel1 = voxels.getVoxel(x,y,z)
if (voxel1 == 125)
voxels.setVoxel(x, y, z, 'blue_surfaces_01')
}}}2022-12-15T11:31:07 点赞:0
在 【氵】当代创作节现状 中回复
吉吉:
有跑酷/吃鸡/竞争等等玩法的地图
往往是最受欢迎的!
大家看到的
有跑酷/吃鸡/竞争等等玩法的地图
往往是最受欢迎的!
2022-12-15T17:19:23 点赞:2
在 求一下切换视角的代码(含菜单的那种qwq) 中回复
entity.player.onPress(async ({ button }) => { //每当有按钮被按下
if (button == Box3ButtonType.ACTION1) { //如果按钮是右键
const hd = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: `控制面板`,
content:`切换视角`,
options: ['第一人称', '第三人称'],
});
if (hd == null || !hd ) return;
if (hd.index == 0){
entity.player.cameraMode = Box3CameraMode.FPS;
}
else if (hd.index == 1){
entity.player.cameraMode = Box3CameraMode.FOLLOW;
}
}
})2022-12-15T19:49:30 点赞:0
在 家人们帮帮忙 中回复
for(let x=0; x<255; x++){
for(let z=0; z<255; z++){
voxels.setVoxel(x, 8, z, 'water')
}}2022-12-16T19:16:43 点赞:0
在 求助QAQ人物互动代码怎么写? 中回复
// 先在场景中放置一个名称为 NPC 的实体。
const npc = world.querySelector('#NPC');
npc.enableInteract = true; // 允许进行互动
npc.interactRadius = 8; // 实体的互动范围
npc.interactHint = npc.id; // 互动提示框显示实体的名称
npc.interactColor = new Box3RGBColor(1,0,1); // 互动提示的文字颜色
// 玩家与实体进行交互时触发
npc.onInteract(async({entity}) => {
const xz = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: npc.id,
content: `请选择游戏模式:`,
options: ["末世生存"],
})
if (!xz)return;
if (xz.index == 0){
entity.poistion.set(x,y,z)
}
})2022-12-17T13:27:52 点赞:2