
Lv.1
我披星斩月 我奋不顾身 只为证明 你是个托(
在 【box3】可以自动恢复的毁图系统! 中回复
world.onVoxelContact(({voxel,x,y,z})=>{
voxels.setVoxel(x,y,z,0);
setTimeout(()=>{voxels.setVoxel(x,y,z,voxel)},Math.random()*4000+1500);
})2020-08-08T11:38:03 点赞:0
在 [广州006教程]如何做到像omega city一样的权限效果 中回复
var lines = []
world.onPlayerJoin(({entity})=> {
entity.enableDamage = true;
lines.push(entity.player.name)
})
world.onPlayerLeave(({entity})=> {
(asyn c fn ction(){[lines].splice((([lines].indexOf(entity.player.name) + 1) - 1), 1);})();
})
world.onChat(({entity,message})=>
{if(!entity||entity.player.name ==='广州006'){
if(message.indexOf('/')==0){
try{
world.say('->'+eval(message.slice(1)));
}catch(err)
{world.say('Error:'+err);
}}}});
fun ction 火箭炮 (i){
world.querySelectorAll('player').forEach((a)=>{
if(a.player.name == lines[i]){
(asyn c fun ction(){for (var count = 1; count < 6; count++) { a.hurt(20); world.say('火箭炮第'+count+'炮'); await sleep(300);}})();
}})
}2020-08-09T19:03:35 点赞:0