
Lv.1
想了解我就去图书馆搜索《晓星の日常》
签名:寻找师傅ing~ --------------------------- 正在肝一个自己工作室社区的作品,各位麻烦点个赞~ 2025目标(()(): 点赞:692/1000 浏览:18009/20000 收藏:285/400 再创作:214/300 新作喵喵看:0/1 点猫精选:0/0() ---------------------------
在 招代码师啦 中回复
for (const e of world.querySelectorAll('*')) {//遍历所有实体
if (e.id.startsWith('存档点')) {//如果当前实体名左边部分刚好是"存档点", 比如 存档点-1 存档点-2...
e.collides = true //开启碰撞
e.fixed = true //固定实体不被推移
e.onEntityContact(({ other }) => { //每当存档点碰到另一个实体
if (other.isPlayer) { //另一个实体是玩家
if (e.position !== other.player.spawnPoint) { // 检测当前存档点是否玩家重生点, 避免反复在同一个存档点做多余的保存
other.player.directMessage('到达新的重生点,加油喔!!!') // 给玩家发消息
other.player.spawnPoint = e.position // 喵家重生点坐标设置成存档点的坐标
}
}
})
}
}
world.onPlayerJoin(({ entity }) => {
entity.onFluidEnter(() => {//当玩家掉到水里
entity.player.directMessage("哇!掉进水里啦!")
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 4
})
})
console.clear()
for (const e of world.querySelectorAll('*')) {
if (e.id.startsWith('存档点')) {
e.collides = true
e.fixed = true
e.onEntityContact(({ other }) => {
if (other.isPlayer) {
if (e.position !== other.player.spawnPoint) {
other.player.directMessage('到达新的存档点!加油,离终点更近一步啦!(>^ω^<)')//播报存档成功,内容可以调整
other.player.spawnPoint = e.position
}
}
})
}
}
world.onPlayerJoin(({ entity }) => {
entity.onFluidEnter(() => {
if (entity.f = 1) {
entity.player.directMessage('加油!再接再厉!')//播报存档成功,内容可以调整
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 3.3//自己调整(不能小于1,建议不超过5)
}
})
})2024-01-15T13:28:03 点赞:0
在 Chat吉PT——懂神岛也更懂创作者的「AI睿智吉」! 中回复
emmm…………
感觉你抄袭了Open AI好吧
而且你知道吗,各位,我们也是可以用ChatGPT的。在github上,叫github copilot,是一个ChatGPT4.0

2025-01-25T12:03:05 点赞:0