Skip to content

TelluriumDev/BanExplosion

Repository files navigation

BanExplosion

一个可以制止爆炸,或是让爆炸变得无害的插件。

功能

  • 可控制的爆炸参数
  • 可自定义拦截爆炸

安装

在安装之前,确保你安装了iListenAttentively插件。

之后,在Releases或者Action中下载最新版本的压缩包,并把里面的内容解压到plugins文件夹中。

配置

./plugins/BanExplosion/config/config.json中,你可以设置拦截的爆炸以及爆炸参数。

{
    "version": 1, // 版本
    "PluginEnabled": true, // 插件总开关
    "defaultSetting": { // 默认设置
        "allowExplosion": true, // 是否允许爆炸
        "maxRadius": 3.40282347e+38, // 爆炸最大半径
        "allowDestroy": false, // 是否允许破坏
        "allowFire": false // 是否产生火焰  
    },
    "explosionSetting": {
        "minecraft:tnt": {
            "allowExplosion": true,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:bed": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:respawn_anchor": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:tnt_minecart": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:creeper": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:ender_dragon": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:end_crystal": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:wither_skull": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:wither_skull_dangerous": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:fireball": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:dragon_fireball": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        },
        "minecraft:wither": {
            "allowExplosion": true,
            "maxRadius": 3.40282347e+38,
            "allowDestroy": false,
            "allowFire": false
        }
    }
}