
Lv.1
在 接单小说封面!!! 中回复
你帮忙做一个封面,你就在上面画一座山,山顶有一座小木屋,屋前有只大黄狗(不画也可以,最好画),在大黄狗旁边画一个躺椅,就好了,山腰可以画一片树林(这也可以不画但最好画)
2021-07-26T21:05:38 点赞:0
在 怎么设置出生点 中回复
world.onPlayerJoin(({entity})=>{
entity.position.set(122, 10, 123);//玩家进来的时候,将ta传送到指定的坐标
entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标
})
2022-01-10T20:52:59 点赞:0
在 求助!!! 中回复
for (const e of world.querySelectorAll('*')) {//遍历所有实体
if (e.id.startsWith('存档点')) {//如果当前实体名左边部分刚好是"存档点", 比如 存档点-1 存档点-2...
e.collides = true //开启碰撞
e.fixed = true //固定实体不被推移
e.meshScale = e.meshScale.scale(1) //放大2倍
e.onEntityContact(({ other }) => { //每当存档点碰到另一个实体
if (other.isPlayer) { //另一个实体是玩家
if (e.position !== other.player.spawnPoint) { // 检测当前存档点是否玩家重生点, 避免反复在同一个存档点做多余的保存
other.player.directMessage('到达新的重生点') // 给玩家发消息
other.player.spawnPoint = e.position // 喵家重生点坐标设置成存档点的坐标
}
}
})
}
}
//代码转载至元素跑酷2022-01-10T21:38:55 点赞:0