
Lv.1
乌拉乌拉
在 求代码(急需!急需!急需!) 中回复
world.querySelectorAll('.模型标签').forEach((x) => {
x.onEntityContact(({ other }) => {
if (!other.isPlayer) return;
other.player.directMessage('你要说的话')
})
})2020-08-21T08:04:16 点赞:0
在 请大佬们教我飞行的代码 中回复
world.onPlayerJoin(({ entity }) => {
if (entity.player.name === "无敌小施酱") {
entity.player.canFly = true
}
})2020-08-25T09:30:48 点赞:0
在 谁能给我点代码 中回复
world.onPlayerJoin(({ entity }) => {
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{
hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity)
{ return; }
hitEntity.velocity.x += direction.x;
hitEntity.velocity.y += -0.3;
hitEntity.velocity.z += direction.z;
hitEntity.hurt(20 * Math.random() + 5, { attacker: entity, });
});
});
world.onDie(({ entity, attacker }) => {
if (attacker) {
world.say(attacker.player.name + ' 把 ' + entity.player.name + '给***了')
entity.player.forceRespawn();
}
});//一点代码?????什么鬼 谁知道你要神马代码2020-09-26T19:46:28 点赞:1