用户:
灿烂繁星hello查看:14 回复:1 评论:14 创建时间:2021-02-09T20:17:39
//当玩家进入游戏 world.say('Happy Spring Fasteval!') /*玩家进入游戏时,弹出一个欢迎对话框*/ world.onPlayerJoin(({entity})) = > { entity.player.dialog({ type:Box3DialogType.TEXT, title:"灿烂繁星hallo". content:'新年好,${entity.player.name}HAPPY NEW YEAR 有啥错吗
SKQAworld.onPlayerJoin(({entity})=>{
//框架并非在这里封闭
entity.player.dialog({
type:Box3DialogType.TEXT,
title:'灿烂繁星hello',
//用逗号分隔属性
content:`新年好,${entity.player.name}HAPPY NEW YEAR`,
//修改为反引号
})
//dialog的框架
})
//onPlayerJoin的框架点赞0
评论