猫史档案馆


分队代码!!!

用户:流浪月球流浪月球查看:7 回复:13 评论:7 创建时间:2020-04-21T18:48:54


最近我发现,代码岛加油的代码用不了。

为了防止有人想要用又要不了;

于是!!!

我来教教你们!!!

emotion_编程猫_加油

如果有用就给我的作品点个赞!!

var m, n;


m = 0;
n = 0;

world.onPlayerJoin(async ({entity})=>{
  if (m == n) {
    entity.position=new Box3Vector3(9,11,118);
    entity.player.color=new Box3RGBColor(1,0,0);
    world.say(String(entity.player.name) + '加入红队');
    m = (typeof m == 'number' ? m : 0) + 1;
  }
  else {
    entity.position=new Box3Vector3(117,11,9);
    entity.player.color=new Box3RGBColor(0,0,1);
    world.say(String(entity.player.name) + '加入蓝队');
    n = (typeof n == 'number' ? n : 0) + 1;
  }

});


回复

上一页1 页 / 共 1下一页
流浪月球流浪月球

沙发

点赞0


评论


流浪月球流浪月球

板凳

点赞0


评论


流浪月球流浪月球

地板

点赞0


评论


流浪月球流浪月球

复活点代码自己弄!!!

点赞0


评论


ZCH_ProZCH_Pro

赞~

点赞0


评论


cool-creepercool-creeper

4个队的代码咋弄?

点赞0


评论


ZCHWill666ZCHWill666

拿起我的洛阳铲

点赞0


评论


AbnormalLOGAbnormalLOG

搬来沙发

点赞0


评论


xlcfxlcf

额 看见一个喵

点赞0


评论


洛亦ly洛亦ly

喵是啥

点赞0


评论


传说云(已退)传说云(已退)

帮个忙https://box3create.codemao.cn/games/aaca8f9533e6c7d38588?p=DRCObOiituXsDmHiEElXQ5YwT9r7%2Bky7GV4rsA81y0A%2FXl8zu9LgVndWVzdA%3D%3D

点赞0


评论


Lonely_wandererLonely_wanderer

az。。。。

这个代码永远都是红队、、

点赞0


评论


树林归来树林归来

考古

点赞0


评论