No Light place
No reviews yet
Prevents accidentally placing torches, lanterns and lamps from your offhand — toggled with a single key press.
Addresses and fixes known bugs and issues.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
🕯️ Picture this: you're three hours into a strip mine. Block in the main hand, torch in the offhand. You hold right-click to lay down a wall and — congratulations — you just wallpapered the entire tunnel in torches like it's a Christmas tree. Sound familiar? NoLightPlace exists to kill that exact muscle-memory accident.
NoLightPlace is a tiny client-side-only mod for Fabric. It prevents you from placing light sources while holding them in your off-hand. No more accidentally placed torches or having to pick dozens of them up off the floor — just neat, clean tunnels.
⚡ What it does
- 🛑 Blocks placement of light sources from the offhand only — your main hand is never touched and behaves like pure vanilla.
- 🔁 It's a toggle, not a hold. Press the key once → locked. Press again → unlocked. You don't babysit a button while mining.
- 💬 On-screen status line above the hotbar tells you the current state at a glance (
LOCKED/UNLOCKED), so you never wonder whether the mod is on. - ⌨️ Fully rebindable keybind in the Controls menu (defaults to
Left Alt).
🎮 How the toggle behaves
The whole point is surgical precision: it only ever cancels offhand + light + locked. Everything else is untouched.
| 🔒 Lock state | 🤚 Offhand item | ✊ Main hand | 🖱️ Right-click result |
|---|---|---|---|
| OFF | torch | dirt | both place normally (vanilla) |
| ON | torch | dirt | dirt places ✅ · torch is blocked 🛑 |
| ON | dirt | pickaxe | dirt places ✅ (offhand dirt isn't a light) |
| ON | steak | sword | steak eats ✅ (food isn't a light) |
| OFF | lantern | cobble | both place normally (vanilla) |
Notice the pattern: the mod only says "no" when all three line up — offhand, locked, and a light source. Miss any one, and Minecraft does its normal thing.
🧱 What gets blocked
Only the obvious light sources. Blocks, tools, food, buckets — all ignored.
| Category | Items |
|---|---|
| 🔥 Torches | Torch · Soul Torch · Redstone Torch |
| 💡 Lanterns | Lantern · Soul Lantern |
⚠️ The list is vanilla-only right now. Torches/lanterns from other mods aren't blocked yet — if you want a specific one added, open an issue and I'll throw it in.
🛠 Under the hood
Curious what "blocking" actually looks like in code? The entire decision is this short — the mod literally just asks three questions and bails out the moment any answer is "no":
if (hand != Hand.OFF_HAND) return PASS; // main hand? never touch it
if (!isLocked) return PASS; // toggle off? pure vanilla
if (!LIGHT_SOURCES.contains(item)) return PASS; // not a torch/lantern/lamp? ignore
return FAIL; // offhand + locked + light → cancel the placement
That's it. No mixins into placement logic, no server round-trips — just two Fabric events (
UseBlockCallback/UseItemCallback) returningFAILwhen the stars align. Lightweight by design.
📦 Installation
- Install Fabric Loader for Minecraft 1.20.1 → fabricmc.net/use
- Drop Fabric API into your
mods/folder → Modrinth - Drop
nolightplace-<version>.jarinto the samemods/folder - Launch the game — that's it. ✅
🧩 Client-only. The server does not need this mod. It works on any server (vanilla, Paper, modded) without anyone installing anything.
❓ FAQ
Does it work on multiplayer / servers?
Yes. It's purely client-side — install it on your client and it just works, no server mod required.
Can I change the key?
Yes. Options → Controls → Key Binds → NoLightPlace. Rebind it to whatever feels right; no restart needed.
Will it ever block my main hand?
No. By design the main hand is completely ignored. Only the offhand, only when locked, only light sources.
Does it block blocks / food / buckets in the offhand?
No. Only the light sources listed above. Your offhand dirt, steak and water bucket keep working exactly as before.
Why a toggle and not "hold to block"?
Because you set it once at the start of a mining trip and forget about it. Holding a key while also holding right-click is exactly the kind of awkwardness this mod is meant to remove.
🔗 Links & contact
- 💻 Source code: GitHub
- 🐛 Report a bug / request a torch: Issues
- ✈️ Telegram: @foxxyyykk
- 🎶 TikTok: Foxyy^.^
If NoLightPlace saved your tunnel from a torch infestation, a ❤️ and a follow mean the world. 🕯️ Found a bug or want a modded torch added? [Open an issue](https://github.com/Foxxxyyyyy/NoLightPlace/issues) — I actually read them.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources