NOTE: Updated to 1.12.2 only and added features to full release version.
What Is Torch Place Mod?
A mod that let's you place torches on a block by simply right-clicking. As long as you have a tool or weapon in your hand, and the block you click doesn't bring up an interface (like a furnace, chest, etc), when you right click a torch is taken from your inventory and placed on the block. No need to have torches in your hotbar, they can be anywhere in inventory.
Why did you make this?
Some mods did (and still might) have this in some form or another, but I wanted to have a mod that did it with all tools or weapons from any mod. I recently found that the IC2 Exp Mining Drill appears to have lost that function so I wanted to get it back.
How did you make this?
Check out the source code on Github. The mod subscribes to the onPlayerInteract event and does some checks on what you're holding and what the block is you clicked before placing the torch.
The project is currently in beta, I am asking people to download and test it to find bugs, errors, conflicts. Downloads at the link below for MC 1.10.2, 1.11.2 and 1.12.
NOTE: I might have forgotten to add the terms "chest,furnace" to the blocks blacklist on versions prior to 1.12-0.2. In the config file, under "blacklist for blocks", add "chest,furnace" to the blockTerms line so you don't place a torch on those blocks.
1.12.2-0.3 Release - Adds ability to whitelist items that aren't tools but you still want to right-click with and place a torch. Cleaned up some search code for black and white listing, added some config options.
1.12-0.2 Added chest,furnace to auto-blacklist in config on first run, updated to latest forge
1.12-0.1 Alpha release
1.11.2-0.1 Alpha release
1.10.2-0.9 Added Config options
1.10.2-0.8 Fixed error server side when placing torch in multiplayer
1.10.2-0.7 Quick fix for server side error
1.10.2-0.6 Fixed when using Flint & Steel to light Nether Portal and only places torch.
1.10.2-0.5 Fixed when player right clicked with hoe and placed torch instead of plowing dirt.
1.10.2-0.4 Fixed when player right-clicked on a bed and mod tried to place a torch.
1.10.2-0.3 Fixed a few errors where some blocks lost right-click functionality with mod installed.