
Lv.1
QQ:1007569777
签名:Micorsoft:Dreamdxl@outlook.com QQ:1007569777 请输入文本
在 【讨论】你认为你是... 中回复
网址《https://shequ.codemao.cn/community/857》 ..................................... 857
2022-06-02T17:13:02 点赞:0
在 急急急,请问岛3玩家分队的代码怎么弄 中回复
function joinRed(entity) {
entity.tags().forEach((e) => { entity.removeTag(e) })
entity.addTag('red')
entity.player.color.set(1, 0, 0)
world.say(`${entity.player.name} 被分配到红队`)
}
function joinBlue(entity) {
entity.tags().forEach((e) => { entity.removeTag(e) })
entity.addTag('blue')
entity.player.color.set(0, 0, 1)
world.say(`${entity.player.name} 被分配到蓝队`)
}
world.onPlayerJoin(({ entity }) => {
const red = world.querySelectorAll('.red')
const blue = world.querySelectorAll('.blue')
if (red.length == blue.length) {
if (Math.random() < 0.5) {
joinBlue(entity)
}
else {
joinRed(entity)
}
}
else if (red.length > blue.length) {
joinBlue(entity)
}
else {
joinRed(entity)
}
})2022-12-19T09:07:59 点赞:0
在 急急急,请问岛3玩家分队的代码怎么弄 中回复
function joinRed(entity) {
entity.tags().forEach((e) => { entity.removeTag(e) })
entity.addTag('red')
entity.player.color.set(1, 0, 0)
world.say(`${entity.player.name} 被分配到红队`)
}
function joinBlue(entity) {
entity.tags().forEach((e) => { entity.removeTag(e) })
entity.addTag('blue')
entity.player.color.set(0, 0, 1)
world.say(`${entity.player.name} 被分配到蓝队`)
}
world.onPlayerJoin(({ entity }) => {
c喵t red = world.querySelectorAll('.red')
c喵t blue = world.querySelectorAll('.blue')
if (blue.length<2) {
joinBlue(entity)
}
else {
joinRed(entity)
}
})2022-12-19T10:55:27 点赞:0
在 假如丧失末日爆发,你的头像保护你你的生存率是多少,我的是99.9%吧 中回复
%0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2023-01-12T13:56:47 点赞:0
在 【时间胶囊】来自2023年1月14号的一封信 中回复
我在岛三做一个地图叫圈地之王,不知道四个月后有没有火
我岛三名字叫Dream不想变屑awa,求四个月后的鲈鱼回答
2023-01-14T19:13:58 点赞:0
在 【关于所谓的“退猫”】退猫事件就是个伪命题,拒绝攻击退站的朋友,反对喵法 中回复
先说明一句,我不是想怼你,之前好多发退猫帖的又删了,还有的又出来跟没事人似的,个人觉得有些就是蹭热度
2023-01-17T08:21:30 点赞:1