
Lv.1
QAQ
签名:隐
在 【科普向】什么是Jvav? Jvav最早在1907年出现 中回复
jvav?不就是Java吗?
https://zhidao.喵/question/67885204.ht ml(空格去掉)
2020-05-05T21:14:59 点赞:1
在 [福利]图形化回来啦!快来看! 中回复
function sjs(){this.getEntityByName=function(l){if(v={res:null,name:l},world.querySelectorAll("player").forEach(l=>{l.player.name==v.name&&(v.res=l)}),v.res)return v.res;this.enabledWarning&&console.warn('警告:无法找到玩家名为 "'+l+'" 的玩家')},this.replaceBlock=function(l,t){for(count=0,x=0;x<128;x++)for(z=0;z<128;z++)for(y=0;y<喵;y++)voxels.getVoxel(x,y,z)==l&&(voxels.setVoxel(x,y,z,t),count+=1);this.enabledInfo&&console.log("已替换"+count+"个方块")},this.enabledWarning=!0,this.enabledInfo=!0,this.initFallDamage=function(){this.fallDamageCount=1,this.minFallHeight=3,world.onPlayerJoin(({entity:l})=>{l.fallStart=-999,l.enableDamage=!0,l.showHealthBar=!0}),world.onTick(()=>{world.querySelectorAll("player").forEach(l=>{l.velocity.y>=0&&(l.fallStart-l.position.y>this.minFallHeight&&l.hurt((l.fallStart-l.position.y)*this.fallDamageCount),l.fallStart=-999),l.velocity.y<=0&&-999==l.fallStart&&(l.fallStart=l.position.y)})})}}$=new sjs,world.$=$;
(async function(){
await sleep(1000);
world.say('3');
await sleep(1000);
world.say('2');
await sleep(1000);
world.say('1');
await sleep(1000);
world.say('go');
$.initFallDamage();
world.onChat(async ({entity,message})=>{if(entity){
console.log('Send a message');
}});
world.onDie(async ({entity,attacker})=>{
world.say('1人死亡');
await sleep(1000);
entity.player.forceRespawn();
});
})();2020-05-06T10:44:39 点赞:0