Lv.1
hmmm
在 请问跑酷起点存档的代码怎么搞(500金币) 中回复
world.onPlayerJoin(({entity})=>{
entity.enableDamage=true;
})
world.onVoxelContact(({voxel,entity})=>{
const c=voxels.id('S');//也可以是别的方块
if(voxel===c){
entity.player.directMessage('存档成功!');
entity.player.spawnPoint.copy(entity.position);
}
})
world.onEntityContact(({entity,other})=>{
if(entity.isPlayer===false&&other.isPlayer===true){
world.say(other.player.name+'到达终点!');
other.player.canFly=true;//玩家可飞行
other.player.scale=6.0;//玩家大小
}
})2020-04-24T20:09:06 点赞:0
在 【教程贴】额,补上次的 中回复
附上c++
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b;
c=a+b;
cout<<c;
}2020-04-26T18:09:35 点赞:0