猫史档案馆


分享个代码先用就用

用户:火柴猴y火柴猴y查看:1 回复:2 评论:1 创建时间:2022-06-28T15:13:19


var admin= ['霸气麒麟','龘龘9575'] world.onChat(({entity,message})=>{     if(entity.isPlayer){         if(admin.includes(entity.player.name)){               if(message=='super_admin()'){entity.player.directMessage('亲爱的创作人员你好!特殊功能包含变大、变小、还原大小、飞行、解除飞行、隐身、现身、隐藏名字、显示名字、幽灵、解除幽灵、发光、还原发光、反光、还原反光、变红色、变蓝色、变绿色、变紫色、变黄色、变浅蓝色、还原颜色、全部还原、加速,锁血,跳高,禁言(例如:禁言+禁言者名字)、解除禁言(例如:解除禁言+被禁言者名字),提示(禁言和禁言者名字间要加一个空格)。')}                          if(message=='变大'){entity.player.scale=6;world.say(entity.player.name+'变大了')}             if(message=='变小'){entity.player.scale=0.1;world.say(entity.player.name+'变小了')}             if(message=='还原大小'){entity.player.scale=0.8;world.say(entity.player.name+'还原了大小')}             if(message=='飞行'){entity.player.canFly=true;world.say(entity.player.name+'开启了飞行模式')}             if(message=='解除飞行'){entity.player.canFly=false;world.say(entity.player.name+'关闭了飞行模式')}             if(message=='加速'){entity.player.walkSpeed +=500                               entity.player.runSpeed +=500                               entity.player.flySpeed +=500                               entity.player.swimSpeed +=500                               entity.player.crouchSpeed +=5000                               world.say(entity.player.name + '加速了')}             if(message=='隐身'){entity.player.invisible=true;world.say(entity.player.name+'隐身了')}             if(message=='现身'){entity.player.invisible=false;world.say(entity.player.name+'现身了')}             if(message=='隐藏名字'){entity.player.showName=false;world.say(entity.player.name+'隐藏了名字')}             if(message=='显示名字'){entity.player.showName=true;world.say(entity.player.name+'显示了名字')}             if(message=='幽灵'){entity.player.spectator=true;world.say(entity.player.name+'开启了幽灵模式')}             if(message=='解除幽灵'){entity.player.spectator=false;world.say(entity.player.name+'关闭了幽灵模式')}             if(message=='普通发光'){entity.player.emissive=0.6;world.say(entity.player.name+'开启了普通发光效果')}             if(message=='终极发光'){entity.player.emissive=200;world.say(entity.player.name+'开启了终极发光效果')}             if(message=='还原发光'){entity.player.emissive=0;world.say(entity.player.name+'还原了发光效果')}             if(message=='反光'){entity.player.shininess=1;world.say(entity.player.name+'开启了反光效果')}             if(message=='金属感'){entity.player.metalness=1;world.say(entity.player.name+'开启了金属感效果')}             if(message=='还原反光'){entity.player.shininess=0;world.say(entity.player.name+'还原了反光效果')}             if(message=='变红色'){entity.player.color.set(1,0,0);world.say(entity.player.name+'变成了红色')}             if(message=='变绿色'){entity.player.color.set(0,1,0);world.say(entity.player.name+'变成了绿色')}             if(message=='变蓝色'){entity.player.color.set(0,0,1);world.say(entity.player.name+'变成了蓝色')}             if(message=='变黄色'){entity.player.color.set(1,1,0);world.say(entity.player.name+'变成了黄色')}             if(message=='变紫色'){entity.player.color.set(1,0,1);world.say(entity.player.name+'变成了紫色')}             if(message=='变青色'){entity.player.color.set(0,1,1);world.say(entity.player.name+'变成了青色')}             if(message=='跳高'){entity.player.jumpPower=4;                                entity.player.doubleJumpPower=4;                                world.say(entity.player.name+'开启了跳高');             }             if(message=='还原颜色'){entity.player.color.set(1,1,1);world.say(entity.player.name+'还原了颜色')}             if(message=='清屏'){                 for(var i=0;i<10000;i++) {world.say('清屏')}             }             if(message=='锁血'){entity.hp=Infinity;world.say(entity.player.name+'成功锁血')}             if(message=='全部还原'){entity.player.scale=0.8                                   entity.player.canFly=false                                   entity.player.showName=true                                   entity.player.spectator=false                                   entity.player.emissive=0                                   entity.player.shininess=0                                   entity.player.color.set(1,1,1)                                   entity.player.walkSpeed=0.2                                   entity.player.runSpeed=0.5                                   entity.player.flySpeed=0.5                                   entity.player.swimSpeed=0.5                                   entity.player.crouchSpeed=0.2                                   entity.player.jumpPower=0.8                                   entity.player.doubleJumpPower=1                                   world.say(entity.player.name+'全部还原了')             }             if(message.startsWith('禁言')){                 if(message.slice(2)==entity.player.name){                     entity.player.directMessage('无法禁言自己,请重新尝试!')                 }else{                     world.querySelectorAll('player').forEach((x)=>{                         if(x.player.name == message.slice(2)){                             x.player.directMessage('你已被管喵禁言,请等待管喵解除')                             world.say('有人犯了错,被管喵禁言了!')                             x.player.muted=true                         }                     })                 }             }             if(message.startsWith('解除禁言')){                 if(message.slice(4)==entity.player.name){                     entity.player.directMessage('无法解除禁言自己,请重新尝试!')                 }else{                     world.querySelectorAll('player').forEach((x)=>{                         if(x.player.name == message.slice(4)){                             x.player.directMessage('你已被管喵解除禁言')                             world.say('有人被管喵解除禁言了!')                             x.player.muted = false                         }                     })                 }             }         }     } })

 


回复

上一页1 页 / 共 1下一页
云游box3der尖头叉子云游box3der尖头叉子

你礼貌吗?

注明原作者了吗??

点赞0


评论


火柴猴y火柴猴y

??、

 

点赞0


评论