Lv.1
在 整治跳关必备【跑酷代码】 中回复
console.clear();
world.onPlayerJoin(({ entity }) => {
entity.lv = 0;
entity.enableDamage = true;
});
world.querySelectorAll('*').forEach((e) => {
if (e.id.startsWith('闪光存档点')) {
e.collides = true;
e.fixed = true;
e.enableInteract = true;
e.interactHint = `第${e.tags()}关`;
e.interactColor.set(1, 0, 1);
e.interactRadius = 5;
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
if (Number(e.tags()) == other.lv + 1) {
if (other.player.spawnPoint != e.position) {
other.player.directMessage('到达新的重生点');
other.player.spawnPoint = e.position;
other.lv = Number(e.tags());
}
} else {
if (other.lv == Number(e.tags())) {
return;
} else {
other.hurt(100);
other.player.directMessage('你进错了存档点!');// 给玩家发消息
other.position.copy(other.player.spawnPoint);
other.position.y += 4;
other.hp = other.maxHp;
}
}
}
})
}
})2022-07-04T15:15:26 点赞:1
在 吉吉喵,救救我,我地图中毒了 中回复
怎么什么都能扯到我?我会用F12攻击你的图?我要是会这个我早把岛三给黑掉了,谁有空毁你图啊?我肝创作节,懒得理你
2022-07-08T21:02:31 点赞:1