用户:
KaNSF查看:0 回复:3 评论:0 创建时间:2021-07-04T12:01:10
1)
点一个键都能出错?!(async function main() {
world.onPress(({entity})=>{
world.say(entity.player.name+'制造错误!');
while(true){}
})
})()
2)
跳一下不够过瘾,就要一直跳!
(async function main() {
for(;;await sleep(1000)){
for(const e of world.querySelectorAll("player")){
if(e.player.name = "氧"){
e.velocity.y = 10;
}
}
}
})()
3)
每当你说一句话,就会有东西插嘴
(async function main() {
world.onChat(({entity})=>{
if(entity && entity.isPlayer){
if(entity.player.name === '氧'){
world.say('↑此话必听!')
}
}
})
})()
4)
加个对话框更猛!
(async function main() {
world.onChat(({entity})=>{
if(entity && entity.isPlayer){
if(entity.player.name === '氢'){
world.say('↑此话当pi处理!');
entity.player.dialog({
type:Box3DialogType.TEXT,
title:'嘻嘻',
content:'嘻嘻',
});
}
}
})
})()
朋友都被你弄疯了