
Lv.1
森森
在 管喵和接单的代码怎么写 中回复
管理员代码,但是接单是啥意思()
var gl=[`管理员名字`]
world.onChat(async ({entity,message}) => {
if(gl.includes(entity.player.name)){
try {
var code = eval(message);
world.say(`~>${code}`)
}
catch (e) {
}finally{}
}
})
直接在评论区输入代码就能执行(屑),比如entity.player.canFly=true就是开启飞行
2023-01-14T09:51:00 点赞:0
在 「求助帖」 中回复
for(var y=8;y<9;y++){ for(var x=0;x<127;x++){ for(var z=0;z<127;z++){ voxels.setVoxel(x,y,z,'water') } } }
2023-01-31T19:14:30 点赞:0
在 ........求代码 中回复
world.onPlayerJoin(async({entity})=>{
entity.player.dialog({
type:'select',
options:列表名
})
})2023-01-31T19:23:15 点赞:0
在 【求助】如何做出从下往上看的视角() 中回复
world.onPlayerJoin(async ({ entity }) => {
entity.player.cameraMode = 'fixed';
entity.player.cameraEntity = entity;
entity.player.cameraMode = Box3CameraMode.RELATIVE;
entity.player.cameraPosition = new Box3Vector3(-0.01, 10, 0);
entity.player.swapInputDirection = true;
entity.player.reverseInputDirection = Box3InputDirection.HORIZONTAL;
entity.player.cameraFreezedAxis = -Box3CameraFreezedAxis.Y;
entity.player.freezedForwardDirection = new Box3Vector3(0, 0, 1);
});//应该可以()2023-02-03T12:45:44 点赞:2
在 【Box3求助】如何做出和战桥起床一样的不卡方块效果 中回复
world.onPress(({ raycast, button }) => {
if (button === 'action1') {
const pos = raycast.voxelIndex.add(raycast.normal)
const bounds = new Box3Bounds3(new Box3Vector3(pos.x, pos.y, pos.z), new Box3Vector3(pos.x + 1, pos.y + 1, pos.z + 1));
if(world.searchBox(bounds).length !==0)return
voxels.setVoxel(pos.x, pos.y, pos.z, 'stone'/*方块名称 */)
}
})
//我貌似来晚了,还来得及吧()2023-02-11T13:31:01 点赞:0