Lv.1
owo
签名:正在肝空洞骑士(HOLLOW KNIGHT)
在 【求帮助】谁能帮我看下这代码有没有问题? 中回复
world . onPlayerJoin (({ entity }) => { const gly = [ 'FNF错误化' , '风趣的血翼蝠pPSA' , '冷漠的海星星I8' ] //定义管喵变量 world . onChat (({ message , entity }) => { //当玩家发起聊天时 if (! gly . includes ( entity . player . name )) return //如果玩家不是管喵就返回 if ( message [ 0 ] === '$' ) world . say ( '⚠492安全检查中心正在扫描代码⚠' ) if ( entity . baocuo [ 0 ] = 1 ) world . say ( `检查完毕,用时5秒` ) await . sleep ( 1000 ) world . say ( '⚠为危险代码!不可执行!492安全检查中心正在拦截⚠' ) await . sleep ( 3000 ) world . say ( `<~ ${ baocuo } ` ) world . say ( '已拦截,欢迎使用492安全检查中心' ) if ( entity . baocuo [ 0 ] =! 1 ) world . say ( '检查通过,可执行' ) await . sleep ( 1000 ) world . say ( `<~ ${ eval ( message . slice ( 1 ))} ` ) world . say ( '执行成功(^_^)' )
2022-08-13T17:42:54 点赞:0
在 【求帮助】谁能帮我看下这代码有没有问题? 中回复
world . onPlayerJoin (({ entity }) => { const gly = ['FNF错误化', '风趣的血翼蝠pPSA','冷漠的海星星I8']//定义管喵变量 world.onChat(({ message, entity }) => {//当玩家发起聊天时 if (!gly.includes(entity.player.name)) return//如果玩家不是管喵就返回 if (message[0] === '$') world.say('⚠492安全检查中心正在扫描代码⚠') if(entity.baocuo[0] = 1) world.say(`检查完毕,用时5秒`) await . sleep ( 1000 ) world.say('⚠为危险代码!不可执行!492安全检查中心正在拦截⚠') await.sleep(3000) world.say(`<~${baocuo}`) world.say('已拦截,欢迎使用492安全检查中心') if(entity.baocuo[0] =! 1) world.say('检查通过,可执行') await.sleep(1000) world.say(`<~${eval(message.slice(1))}`) world.say('执行成功(^_^)');
2022-08-13T17:48:00 点赞:0
在 谁能给我一些曾经上过首页(现在也行)的作品的代码 中回复
const
gly
=
[
'填你的名字
'
]
//定义管喵变量
world
.
onChat
(({
message
,
entity
})
=>
{
//当玩家发起聊天时
if
(!
gly
.
includes
(
entity
.
player
.
name
))
return
//如果玩家不是管喵就返回
if
(
message
[
0
]
===
'$'
)
{
//如喵天内容第一个字符是$(可改)
try
{
//
world
.
say
(
`<~
${
eval
(
message
.
slice
(
1
))}
`
)
//世界广播返回值,可以理解成求出代码返回值也就是运行
}
catch
(
baocuo
)
{
//如果运行报错
world
.
say
(
`<~
${
baocuo
}
`
)
//让世界广播报错
};
};
});
2022-08-13T22:02:36 点赞:0
在 谁能给我一些曾经上过首页(现在也行)的作品的代码 中回复
const
gly
=
[
'FNF错误化'
,
'风趣的血翼蝠pPSA'
,
'冷漠的海星星I8'
]
//定义管喵变量
world
.
onChat
(({
message
,
entity
})
=>
{
//当玩家发起聊天时
if
(!
gly
.
includes
(
entity
.
player
.
name
))
return
//如果玩家不是管喵就返回
if
(
message
[
0
]
===
'$'
)
{
//如喵天内容第一个字符是$(可改)
try
{
//
world
.
say
(
`<~
${
eval
(
message
.
slice
(
1
))}
`
)
//世界广播返回值,可以理解成求出代码返回值也就是运行
}
catch
(
baocuo
)
{
//如果运行报错
world
.
say
(
`<~
${
baocuo
}
`
)
//让世界广播报错
};
};
});
2022-08-13T22:03:05 点赞:0
在 BUG又来了 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8E%89%E5%AE%B3%E4%BA%86.gif"alt="emotion_编程猫_厉害了" 这人废了
2022-08-13T22:26:41 点赞:2
在 怎么检测其他按键按下? 中回复
额
点击左键
world.onPress(async({entity, button})=>{ //每当按钮被按下
if (button == Box3ButtonType.ACTION0) { //如果按下的是左键
点击右键
world.onPress(async({entity, button})=>{ //每当按钮被按下
if (button == Box3ButtonType.ACTION1) { //如果按下的是右键2022-08-16T15:38:43 点赞:0
在 如何防止编程猫的动画乱码(仅限电脑浏览器用户) 中回复
https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞
2022-08-24T14:42:28 点赞:0
在 如何防止编程猫的动画乱码(仅限电脑浏览器用户) 中回复
"http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/5c/huanglianwx_thumb.gif"alt
2022-08-24T14:42:49 点赞:0
在 如何防止编程猫的动画乱码(仅限电脑浏览器用户) 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"
2022-08-24T14:42:58 点赞:0
在 请问当玩家掉入虚空的事件是什么,如果没有那怎么写当玩家掉入虚空返回存档点位置Y+2 中回复
entity.position.copy(entity.player.spawnPoint)2022-12-19T22:40:29 点赞:0