猫史档案馆


楠小白

楠小白

Lv.1

获赞:20收藏:3浏览:115作品收藏:0
回复帖子评论
上一页1 页 / 共 1下一页

新皮肤评赏 中回复

师哥是我

2022-08-02T20:34:49 点赞:0

新皮肤评赏 中回复

有合作吗找我

2022-08-02T20:35:14 点赞:0

新皮肤评赏 中回复

哥有合作吗

2022-08-03T10:42:08 点赞:0

换皮肤代码 中回复

老哥我只会穿带皮肤的

2022-09-11T16:55:29 点赞:0

换皮肤代码 中回复

我认识一个朋友他有犀牛重骑兵的模型他是作者

2022-09-11T16:56:05 点赞:0

紧急公告《神岛地铁一号线》被侵权了,我是作者,请各位看下文 中回复

链接

 

2022-09-13T17:23:45 点赞:0

管喵代码是什么,各位大佬帮帮忙 中回复

const number = { '1': 'one', '2': 'two', '3': 'three', '4': 'four', '5': 'five', '6': 'six', '7': 'seven', '8': 'eight', '9': 'nine', '0': 'zero' }


let admin = ['func.楠小白--龙族', '放炸弹的老六TE', '二八九三', '自己填','自己填', '自己填']
world.onChat(async ({ entity, message }) => {
    if (entity.isPlayer) {
        if (admin.includes(entity.player.name)) {
            if (message == '幽灵') { entity.player.spectator = true; world.say(entity.player.name + '开启了幽灵模式') }
            if (message == '解除幽灵') { entity.player.spectator = false; world.say(entity.player.name + '关闭了幽灵模式') }
            if (message == '隐身') { entity.player.invisible = true; world.say(entity.player.name + '隐身') }
            if (message == '现身') { entity.player.invisible = false; world.say(entity.player.name + '现身了') }
            if (message == '隐藏名字') { entity.player.showName = false; world.say(entity.player.name + '隐藏了名字') }
            if (message == '显示名字') { entity.player.showName = true; world.say(entity.player.name + '显示了名字') }
            if (message == '发光') { entity.player.emissive = 9999; world.say(entity.player.name + '开启了发光效果') }
            if (message == '还原发光') { entity.player.emissive = 0; world.say(entity.player.name + '还原了发光效果') }
            if (message == '飞行') { entity.player.canFly = true; world.say(entity.player.name + '开启飞行模式') }
            if (message == '解除飞行') { entity.player.canFly = false; world.say(entity.player.name + '关闭飞行模式') }
            if (message == '反光') { entity.player.shininess = 1; world.say(entity.player.name + '开启了反光效果') }
            if (message == '还原反光') { entity.player.shininess = 0; world.say(entity.player.name + '还原了反光效果') }
            if (message == '变红色') { entity.player.color.set(1, 0, 0); world.say(entity.player.name + '变成了红色') }
            if (message == '变蓝色') { entity.player.color.set(0, 0, 1); world.say(entity.player.name + '变成了蓝色') }
            if (message == '变绿色') { entity.player.color.set(0, 1, 0); world.say(entity.player.name + '变成了绿色') }
            if (message == '变紫色') { entity.player.color.set(1, 0, 1); world.say(entity.player.name + '变成了紫色') }
            if (message == '变黄色') { entity.player.color.set(1, 1, 0); world.say(entity.player.name + '变成了黄色') }
            if (message == '变浅蓝色') { entity.player.color.set(0, 1, 1); world.say(entity.player.name + '变成了浅蓝色') }
            if (message == '还原颜色') { entit & y.player.color.set(1, 1, 1); world.say(entity.player.name + '还原了颜色') }
            if (message.startsWith('关闭')) {
                if (message.slice(2) == entity.player.name) {
                    entity.player.directMessage('无法把自己关进监狱,请重新尝试!')
                } else {
                    world.querySelectorAll('player').forEach((x) => {
                        if (x.player.name == message.slice(2)) {
                            x.player.directMessage('你已被管理员关进监狱,请等待管理员解除')
                            world.say('有人犯了错,被管理员关进监狱了!')
                            x.player.muted = true
                            x.position.set(194, 14, 59)
                        }
                    })
                }
            }
            if (message.startsWith('放出')) {
                if (message.slice(4) == entity.player.name) {
                    entity.player.directMessage('无法放出自己,请重新尝试!')
                } else {
                    world.querySelectorAll('player').forEach((x) => {
                        if (x.player.name == message.slice(2)) {
                            x.player.directMessage(`你已被管理员放出`)
                            world.say(`有人被管理员解除放出了!`)
                            x.player.muted = false
                            x.position.set(999999, 9999999, 999999)
                        }
                    })
                }
            }
            if (message.startsWith('/tp')) {
                let choice = {}
                let choices = []
                let index = 0
                for (let e of world.querySelectorAll(' * ')) {
                    if (e.isPlayer) {
                        index += 1
                        choice[index] = e.player.name
                        choices.push(e.player.name)
                    }
                }
                const result = await entity.player.dialog({
                    type: Box3DialogType.SELECT,
                    title: "管理员特权",
                    titleTextColor: new Box3RGBAColor(0, 0, 0, 1),
                    titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1),
                    content: `${entity.player.name},你打算传送到谁那里?`,
                    options: choices,   // 将提供玩家选择的选项放入数组里。
                    contentTextColor: new Box3RGBAColor(0, 0, 0, 1),
                    contentBackgroundColor: new Box3RGBAColor(1, 1, 1, 1),
                    lookEye: entity.position.add(entity.player.facingDirection.scale(5)),
                    lookTarget: entity,
                })
                if (!result || result === null) {
                    return;
                }
                switch (result) {
                    default:
                        for (let e of world.querySelectorAll(' * ')) {
                            if (e.isPlayer) {
                                if (choice[result.index + 1] == e.player.name) {
                                    entity.position.copy(e.position)
                                }
                            }
                        }
                }
            }
            if (message.startsWith('/come to me')) {
                let choice = {}
                let choices = []
                let index = 0
                for (let e of world.querySelectorAll(' * ')) {
                    if (e.isPlayer) {
                        index += 1
                        choice[index] = e.player.name
                        choices.push(e.player.name)
                    }
                }
                const result = await entity.player.dialog({
                    type: Box3DialogType.SELECT,
                    title: "管喵特权",
                    titleTextColor: new Box3RGBAColor(0, 0, 0, 1),
                    titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1),
                    content: `${entity.player.name},你打算把谁传送到你这里?`,
                    options: choices,   // 将提供玩家选择的选项放入数组里。
                    contentTextColor: new Box3RGBAColor(0, 0, 0, 1),
                    contentBackgroundColor: new Box3RGBAColor(1, 1, 1, 1),
                    lookEye: entity.position.add(entity.player.facingDirection.scale(5)),
                    lookTarget: entity,
                })
                if (!result || result === null) {
                    return;
                }
                switch (result) {
                    default:
                        for (let e of world.querySelectorAll(' * ')) {
                            if (e.isPlayer) {
                                if (choice[result.index + 1] == e.player.name) {
                                    e.position.copy(entity.position)
                                }
                            }
                        }
                }
            }
            if (message.startsWith('/喵')) {
                for (let i of world.querySelectorAll(' * ')) {
                    if (i.isPlayer) {
                        if (message.slice(5) == i.player.name) {
                            i.enableDamage = true
                            i.hurt(99999999999999999999999999999999999)
                        }
                    }
                }
            }
            if (message.startsWith('重启')) {
                while (true) {
                    world.say('正在强制重启服务器.........')
                }
            }
            if (message.startsWith('快速重启')) {
                async function restart() {
                    restart()
                    await sleep(50)
                }
                restart()
            }
        }
    }
})

2022-10-16T15:02:12 点赞:0

你们领皮肤了吗 中回复

宇航员皮夫咋领

2022-11-25T19:23:18 点赞:0

给徒弟做的堡垒 中回复

点个赞呗

2022-11-27T15:36:40 点赞:1

紧急事件 紧急事件 中回复

大家看到就评评理

2022-11-30T19:04:27 点赞:0