用户:
会python的狸忍查看:5 回复:2 评论:5 创建时间:2022-07-21T18:28:50
如题,急
这样发出来
神界海神唐三
world.onPlayerJoin(({ entity }) => {
entity.mucai = 0
world.onClick(async ({ entity, clicker }) => {
if (entity.hasTag('树')) {
world.say('砍树中')
entity.enableDamage = true
entity.hurt(5)
if (entity.hp <= 0) {
entity.mucai += 5
world.say('获得5木材')
entity.meshInvisible = true
await sleep(3000)
entity.hp = 100
entity.meshInvisible = false
}
entity.enableDamage = false
}
})
})点赞0
评论