promotional bannermobile promotional banner

No Light place

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

🕯️ 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.

The No Light place Team

profile avatar
Owner
  • 1
    Projects
  • 46
    Downloads