
RainBreakTorch
Extinguish the torches that are in the rain.
SpigotMC.org | GitHub | RuBukkit.org | SpigotMC.ru
This plugin adds the mechanic of breaking torches in the rain for your players.
Place the torches!

// Versions 1.7.1-26.1 are supported.
// Has been tested on versions: 1.7.10, 1.8.8, 1.12.2, 1.16.5, 1.19.4, 1.21, 26.1
// Attention! The plugin works partially fine with WorldEdit. Don't replace blocks with air if there are torches at that height. To fix errors related to this, you should delete these chunks in the plugin folder.
// If you recreate the world often, you should also delete the world folder in the plugin to avoid errors with torches.
// Due to some optimizations in the plugin, you will not be able to use some torches as safe blocks.
// If you already have a world ready and you need working torches in loaded chunks for that world, then you can use this command: /rainbreaktorch update all WorldName
// You can ask other questions in the resource discussion.
-
Supported:
- Support HEX, MiniMessage (1.18+)
- World and biome settings.

- Block placement settings, such as speed, physics, and developer settings.

- Support for any torches (choose for yourself)! For example, a torch, a lever, a lamp, a redstone, what else?

- You can customize your safe blocks, except for the torches.

Checks:
- The plugin will automatically detect your server version so that it starts working correctly with your project.
- Torches have many checks that ensure the plugin works properly.
- Check the redstone torches you need.
- Set the type of protection blocks immediately: isSolid or IsOccluding (default: IsOccluding).
- You can configure the following safe block lists: otherlist, customlist, blacklist, multilist (default: otherlist).
- otherlist - Blocks from checkType and blocks that are listed here. (work in only list and checktype)
- customlist - Only the blocks from the list. (work in only list)
- blacklist - Blocks from checkType, but only those that should be prohibited are listed. (work in only list and checktype)
- multilist - Blocks from checkType, but the list section is responsible for adding new items, and you need to add a second blacklist section where blocks from checkType will be blocked. (list and blacklist)
- Check out the newly generated chunks right away! This feature is necessary for worlds that have no borders (default: enabled)!
Command (/rainbreaktorch):
Get a list of commands using /rainbreaktorch help
- /rainbreaktorch reload - Reload the plugin configuration.
- /rainbreaktorch status - Get the plugin status.
- /rainbreaktorch loot - Get help with the loot subcommand.
- /rainbreaktorch update cancel - Canceling a previous task.
- /rainbreaktorch update speed Number - Set the chunk loading speed in the worlds. Attention! It is not recommended to set it to more than 8.
- /rainbreaktorch update active WorldName - Get all the torches from the active chunks in the world.
- /rainbreaktorch update all WorldName - Get all the torches from the the world. Warning! Do this if you have 1. loaded all the chunks and you need behavior for all the torches in the world, OR 2. you have already installed the plugin on a server with loaded chunks and player torches.
Launch:
- Some security features that protect the server from lag due to this plugin. If you don't get drops from torches, you should increase the msLimit (onlyDeveloper section) in the plugin configuration.
- Partial physics, another protective function.
- ObjectRemove clears the chunk from memory. It is not recommended to change it.
^^^ The following settings should be changed if your server is not working properly with the plugin. It is not recommended to change it without the developer's assistance.
Permission:
- rainbreaktorch.use - Allow the use of the command.
Config:
- Send actions to players using messages (HEX, MiniMessage support from 1.18+).
- Settings for noperm, help.
Loot:
- Loot checks and in case of errors, errors will be sent to the console.
- Add loot via the /rainbreaktorch loot
- You can add initial loot for torches or specific loot for a specific torch.
- You can add it manually (loot.yml) or via a command.
Storage:
- Storing all torches in the plugin folder: RainBreakTorch/worlds/WorldName/chunkFiles...
Configurations: View the configurations by clicking on the link GitHub (config.yml) or just scroll below.
config.yml
###########################################################
# RainBreakTorch #
# 1.0 #
###########################################################
# Settings.
settings:
# Insert hex or minimessage
# minimessage - for Paper, 1.18+.
# hex - This has been working since 1.16.5, but it also supports normal modes of operation.
translate: hex
# Functions.
functions:
# Worlds settings.
worlds:
# Insert allowed/blocked.
type: blocked
# List of worlds for the type.
list:
- "no"
# Biomes settings.
biomes:
# Insert allowed/blocked
type: blocked
# List of biomes for the type.
list:
- "no"
# Torches break when it rains.
torches:
# Blocks that are torches. Specify the material.
blocks:
- "TORCH"
- "WALL_TORCH"
- "REDSTONE_TORCH"
- "REDSTONE_TORCH_ON"
- "REDSTONE_TORCH_OFF"
- "REDSTONE_WALL_TORCH"
- "CAMPFIRE"
# Blocks are defenders. They save the torch from breaking!
safeBlocks:
# Select the main type of defenders. IsSolid OR IsOccluding
# Recommended: IsOccluding
checkType: IsOccluding
# Insert otherlist/customlist/blacklist
# otherlist - Blocks from checkType and blocks that are listed here. (work in only list and checktype)
# customlist - Only the blocks from the list. (work in only list)
# blacklist - Blocks from checkType, but only those that should be prohibited are listed. (work in only list and checktype)
# multilist - Blocks from checkType, but the list section is responsible for adding new items, and you need to add a second blacklist section where blocks from checkType will be blocked. (list and blacklist)
type: otherlist
# List of blocks for the type.
list:
- "no"
blacklist:
- "List for multilist"
# If you're using some redstone blocks in torches, you'll need to add those here as well.
redstoneBlocks:
- "REDSTONE_TORCH"
- "REDSTONE_TORCH_ON"
- "REDSTONE_TORCH_OFF"
- "REDSTONE_WALL_TORCH"
# Scan new generated chunks? This feature is required if you haven't generated the world. You can disable this feature if it causes lag.
checkNewChunk: true
# Change these settings only if you know what you're doing. These settings were chosen for a reason.
onlyDeveloper:
# How many torches break per tick? Do not change.
breakLimit: 250
# How many seconds does it take to delete an unnecessary object to prevent a leak? Leave the recommended value.
objectRemove: 30
# Performance limit for drops in ms.
msLimit: 5
# Blocking the drop if the plugin's maximum performance is exceeded. In ms.
msDelay: 10000
# Does the plugin need physics when removing torches?
physics:
# Turn on physics?
enabled: true
# Does the plugin need full physics? The default value is false, which means that a reduced version of physics is used to reduce server load.
full: false
# Messages.
messages:
# Actions:
# [message] message - Send a message to the player.
# [broadcast] message - Send a message to all players
# [player] command - Run the command on behalf of the player.
# [log] message - Send a message to the console.
# [delay] ticks - Make a delay between actions. In ticks. (20 ticks = 1 second)
# If there are no rights.
noperm:
- "[message] &cYou don't have enough rights."
help:
- "[message] "
- "[message] &aHelp:"
- "[message] &a/rainbreaktorch reload &f- Reload the plugin configuration."
- "[message] &a/rainbreaktorch status &f- Get the plugin status."
- "[message] &a/rainbreaktorch loot &f- Get help with the loot subcommand."
- "[message] &a/rainbreaktorch update cancel &f- &cCanceling&f a previous task."
- "[message] &a/rainbreaktorch update speed Number &f- &eSet the chunk loading speed in the worlds. &cAttention! It is not recommended to set it to more than 8."
- "[message] &a/rainbreaktorch update active world &f- Get all the torches from the active chunks in the world."
- "[message] &a/rainbreaktorch update all world &f- Get all the torches from the the world."
- "[message] &cWarning! &eDo this if you have 1. loaded all the chunks and you need behavior for all the torches in the world, OR 2. you have already installed the plugin on a server with loaded chunks and player torches."
- "[message] ^^^"
loot.yml
# Items that drop from an item that was broken by rain.
# In the loots section, specify the name of the new section belonging to the torch item and continue working as in the example.
# You can add items yourself using Material or add unique items using the command.
# You can see an example with Material from below, and through ItemStack through the player command.
#
# There is also a default section that indicates the loot for all torches.
#
# You can also add items using the command:
# /rainbreaktorch loot - Get help with the loot subcommand.
default:
stick:
item: STICK
location:
addX: 0.5
addY: 0
addZ: 0.5
amount: 1-1
chance: 100
loot:
REDSTONE_TORCH:
redstoneItem:
item: REDSTONE
location:
addX: 0.5
addY: 0
addZ: 0.5
amount: 1-1
chance: 1
