
Lv.1
签名:为高考做准备
在 【岛3漫游指南】:你是怎样,岛3就是怎样! 中回复
不吵架!恶语伤人太吵闹,谁吵谁就学猫叫。
不恋 爱!这是学习的平台,谁想看你秀恩爱?
不毁图!创作地图很辛苦,莫把信任都辜负。
不刷屏!别人都是顶呱呱,你除刷屏还会啥?
2021-07-21T19:34:52 点赞:0
在 [存档点] 存档点怎么搞 中回复
for (const e of world.querySelectorAll('*')) {//遍历所有实体
if (e.id.startsWith('存档点')) {//如果当前实体名左边部分刚好是"存档点", 比如 存档点-1 存档点-2...
e.collides = true //开启碰撞
e.fixed = true //固定实体不被推移
e.meshScale = e.meshScale.scale(2) //放大2倍
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.position.copy(entity.player.spawnPoint)
entity.position.y += 4
})
})2021-08-05T18:15:50 点赞:1
在 【岛3漫游指南】:你是怎样,岛3就是怎样! 中回复
imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E9%9B%B7%E7%94%B5%E7%8C%B42.gif"alt="emotion_雷电猴_哇噻"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E5%9B%B4%E8%A7%82.gif"alt="emotion_雷电猴_围观"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"
2021-08-24T14:03:19 点赞:1
在 【代码岛3.0】抢先了解代码岛3.0编辑器的功能和开发进度!(长期更新) 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E4%BC%A4%E5%BF%83.gif"alt="emotion_编程猫_伤心"还我的图形化
2021-08-24T17:05:35 点赞:1
在 【墨教】来给你的身旁添一只忠心耿耿的小动物 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%86%B7%E6%BC%A0.gif"alt="emotion_编程猫_冷漠"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%86%B7%E6%BC%A0.gif"alt="emotion_编程猫_冷漠"
2021-08-29T15:44:30 点赞:0