
Lv.1
签名:53期社区星 师祖:海藻酸钠 师父:CJP神秘人 q 3121601311
在 【求助】谁能给我传送门的代码 中回复
console.clear()
var door = world.querySelector('#门')
door.enableInteract = true
door.interactRadius = 2.5
door.onInteract(({ entity }) => {
entity.player.link('https://box3.codemao.cn/p/6a4e57e1f91817445b21')
})
player.link里的是要传送的地图的地址
这里喵喵用了entiy.onInteract的API
所以按E就可以执行传送
但是你们可以用其他的方式哦
比如发送一串字符传送等等
还等你来发掘~
2021-02-05T11:06:59 点赞:0