No Light place

Quick rating

No Light place

No reviews yet

Prevents accidentally placing torches, lanterns and lamps from your offhand — toggled with a single key press.

Bug Fixes
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
nolightplace-1.0-fabric-mc1.21.9-1.21.11.jar
Authors

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

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) returning FAIL when the stars align. Lightweight by design.


📦 Installation

  1. Install Fabric Loader for Minecraft 1.20.1fabricmc.net/use
  2. Drop Fabric API into your mods/ folder → Modrinth
  3. Drop nolightplace-<version>.jar into the same mods/ folder
  4. 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


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

  • Exemple (standard work)
    Exemple (standard work)
  • Exemple (left hand off)
    Exemple (left hand off)
  • Lock disengaged — offhand torch places as normal
    Lock disengaged — offhand torch places as normal The same tunnel, one key-press later. With the lock toggled off, the offhand goes back to plain vanilla behaviour — right-click drops the torch down exactly as you'd expect.
  • Lock engaged - offhand torch won't place
    Lock engaged - offhand torch won't place With the lock toggled on, right-clicking no longer dumps torches from the offhand

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works