
Lv.1
QQ 1194383065 微信wxid_m9zb2dwyrj8422
在 代码岛3.0怎么进不去 中回复
如果不崩,我差点就吃鸡了imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"
2021-11-21T15:31:10 点赞:0
在 【求助】喵后,无法返回“复活点” 中回复
const respawnPoint = world.querySelector(`#存档点`)
world.onVoxelContact(({entity, voxel})=> { const voxelName = voxels.name(voxel); if (voxelName === 'lava02'){
entity.hurt(100) } })
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(() => { entity.position.copy(entity.player.spawnPoint) entity.position.y += 4 }) })
world.onPlayerJoin(({ entity }) => { entity.enableDamage = true entity.onDie(() => {
entity.player.forceRespawn() }) })
2021-12-19T15:59:39 点赞:0
在 【求助】喵后,无法返回“复活点” 中回复
TypeError. Cannot read property 'position' of null
类型错误。无法读取空的属性“位置”
2021-12-19T16:09:00 点赞:0
在 【求助】喵后,无法返回“复活点” 中回复
实在不行从这里搬运: https://box3.codemao.cn/e/f9ca18910c4c8c00598f?p=ETlFQWJki4hHMTIDypejY0q8xVxB5S9ukR2PsgX88CA7u7pzfdLwEx
2021-12-19T16:16:41 点赞:1
在 【求助】喵后,无法返回“复活点” 中回复
https://www.bilibili.com/video/BV17f4y1x7qB?spm_id_from=333.999.0.0
2021-12-19T16:35:44 点赞:0