猫史档案馆


求万剑归宗代码就是按下左键就会有好多剑从天上掉下来那种

用户:ssss1457ssss1457查看:1 回复:4 评论:1 创建时间:2022-03-26T20:47:11


大佬们求求了,求求求求求求求了


回复

上一页1 页 / 共 1下一页
ssss1457ssss1457

我顶顶喵顶顶顶

顶顶顶顶顶顶顶顶顶顶顶顶顶顶

我在在在顶顶顶顶顶顶顶顶顶顶顶顶顶顶

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

顶顶顶顶顶顶顶顶顶顶顶顶顶顶

我在顶顶顶顶顶顶

点赞0


评论


蓝矮爱乐蓝矮爱乐

//首先,做一个倒着的剑的模型
world.onPress(async({entity,button})=>{
    if(button=='action0'){
        for(let w = 0;w<=2492;w++){
            await sleep(2)
            const e=world.createEntity({
                mesh:'mesh/倒着的剑.vb',
                meshScale:[2/16,2/16,2/16],
                position:[
                    Math.floor(Math.random()*256),
                    Math.floor(Math.random()*(63-110)+110),
                    Math.floor(Math.random()*256)
                ]
            })
            e.onVoxelContact(()=>{
                e.destroy()//销毁剑,否则地图将会无法创造实体
            })
        }
    }
})

点赞0


评论


蓝矮爱乐蓝矮爱乐

当上面的代码抄完后,记得加上这个代码:

!(async()=>{
    while(true){
        await sleep(46)
        world.querySelectorAll('*').forEach(async(p)=>{
            if(p.isPlayer)return;
            if(p.position.y<=-10){p.destroy()}
        })
    }
})()

()()()

点赞0


评论


墨染云天墨染云天

imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"

点赞0


评论