Описание
**This mod does not modify game content by default. 本mod默不认会修改游戏内容。**
Starting from version 0.3, to enable explosion protection features, you need to modify the corresponding settings in the configuration file (path: ./config/explosionbreaksnoblock/explosionbreaksnoblock.json), then either restart the game or use the in-game command "explosionbreaksnoblock reload" (requires permission) to apply changes.\
**Supports entering entity/block IDs and tags (prefix with #), separated by semicolons.**\
For example:
- To prevent Creeper and bed explosions from destroying blocks, set the "value" field of the "ExplosionBreaksNoBlockList" config option to "#minecraft:beds; minecraft:creeper".
- To prevent grenade explosions from the Tacz mod from destroying item entities, set the "value" field of the "ExplosionNoItemDamageList" config option to "tacz:bullet".
- To allow white bed to destroy blocks normally under the above modifications, set the "value" field of the "ExplosionBreaksNoBlockWhiteList" config option to "minecraft:white_bed".
Q: Why switch to a config file system?\
A: The config-based approach no longer relies on vanilla gamerules, offering better extensibility and partial protection against explosion damage from other mods.
Q: Why can't some entity/block explosion destruction from other mods be prevented?\
A: This mod prevents explosion damage by modifying vanilla explosion classes. If other mods use non-vanilla explosion effects or add additional destruction mechanics, they cannot be prevented. To request compatibility with specific mods, please submit an issue - the developer may consider adding support.
从0.3版本开始,如果想要启用爆炸保护功能,需要修改配置文件(路径:游戏主目录/config/explosionbreaksnoblock/explosionbreaksnoblock.json)的对应内容,然后重启游戏或在游戏内使用指令"explosionbreaksnoblock reload"(需要权限)以应用更改。\
**支持填写生物和方块的id,以及生物和方块的标签(以#开头),用英文分号分隔。**\
例如:
- 防止苦力怕和床爆炸破坏方块,你需要将"ExplosionBreaksNoBlockList"配置项的"value"设置为"#minecraft:beds; minecraft:creeper"。
- 防止Tacz中的榴弹爆炸破坏掉落物,你需要将"ExplosionNoItemDamageList"配置项的"value"设置为"tacz:bullet"。
- 在以上修改的前提下,让白色床爆炸可以照常破坏方块,你需要将"ExplosionBreaksNoBlockWhiteList"配置项的"value"设置为"minecraft:white_bed"。
Q:为什么要改为配置文件版?\
A:配置文件版不再需要使用原版的游戏规则系统,扩展性更强,能够在一定程度上阻止其他mod的爆炸破坏。
Q:为什么有些mod的生物或方块的爆炸破坏行为无法防止?\
A:本mod通过修改原版的爆炸类来防止爆炸破坏。如果有些mod使用了非原版的爆炸效果或者添加了额外的爆炸破坏效果,那么本mod就无法阻止。如果你想要这个mod兼容其他mod的爆炸效果,欢迎提issue,作者可能会考虑兼容的。
旧版介绍 Legacy Version Info
Simply use the command "/gamerule EBNB:xxx true" to prevent the corresponding explosion from breaking blocks.\
(v0.2) And use the command "/gamerule ENID:xxx true" to prevent the corresponding explosion from destroying item entities. Note: The respawn blocks refer to beds and respawn anchor! (ENID: explosion no item damage)
仅需使用指令/gamerule EBNB:xxx true 即可让对应的爆炸不破坏方块。\
(v0.2) 使用指令/gamerule ENID:xxx true 可以让对应的爆炸不摧毁掉落物。注意:重生方块(respawn blocks)指床和重生锚!
If you want other related features, please let me know [here](https://github.com/Amotassic/Explosion-Breaks-No-Block/issues)!\
如果你想要其他相关的特性,请在[这里](https://github.com/Amotassic/Explosion-Breaks-No-Block/issues)或者加QQ群973712806告诉我!