Lv.1
在 谁能给我个代码是关于碰到终点时,就能开启飞行 谢谢🙏 中回复
world.onVoxelContact(({ entity, voxel }) => {
if (voxel == voxels.id('')) {//方块名称自己填入
entity.player.canFly = true
}
});2022-07-08T17:05:14 点赞:0
在 跑酷激光教程 中回复
https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688 https://box3.codemao.cn/g/822688
2022-07-13T08:05:20 点赞:0
在 迷宫游戏招人~ 中回复
我要参与审核 或者 建筑
我要参与审核 或者 建筑
我要参与审核 或者 建筑
我要参与审核 或者 建筑
我要参与审核 或者 建筑
2022-07-13T10:41:10 点赞:1
在 迷宫游戏招人~ 中回复
Han喵ao.cn/e/91b8e3d0a30ca3788f45p=tsAelRNTaAOchlJfIRJs9m70z6I4WYrkLwI0wwub8EA%2F3U2FSfMAVndWVzdA%3D%3D
2022-07-13T10:43:19 点赞:0
在 怎么碰到子弹模型,就-20滴血 中回复
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
怎么碰到子弹模型,就-20滴血
2022-07-18T09:49:18 点赞:1
在 怎么用代码表示:碰到核弹,就-30点血,并说“你应吃了一斤核弹而-30点血” 中回复
for(consteofworld.querySelectorAll('.核弹')){//遍历每个核弹实体,给核弹贴上标签。 e.enableDamage=true//允许这个实体受伤/喵/复活 e.collides=true//允许实体被碰撞 e.gravity=true//开启重力,这样实体才不会一碰就飘走 } world.onPlayerJoin(({entity})=>{ entity.enableDamage=true//允许这个实体受伤/喵/复活 entity.id=entity.player.name//喵家名字赋值到id,以便和其它实体一样可以统一通过entity.id获取名字 }) world.onEntityContact(({entity,other})=>{ if(other.hasTag('核弹')){//如果被碰实体有核弹标签 entity.hurt(30,{ damageType:'核弹',//伤害类型为核弹 attacker:other,//告诉引擎攻击者是被碰到的这个实体 }) } }) world.onTakeDamage(({entity,attacker,damage,damageType})=>{//每次地图里有实体受伤 world.say(`${entity.id}因吃了一斤核弹而-${damage}点血`) })2022-07-22T10:07:41 点赞:0