Mod

Oggvik's Inventory Freeze

Quick rating

Oggvik's Inventory Freeze

No reviews yet

Let's you "freeze" configurable inventory slots globally for all players

QoL & Tweaks
Storage & Organization
Mod Loaders
Forge
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

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
GNU Lesser General Public License v3.0 only
Latest Version
inventoryfreeze-0.3.1 (Minecraft 1.16.5 - FORGE).jar
Authors
CurseForge
Modrinth

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
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Oggvik's Inventory Freeze

A simple Minecraft Forge mod written in Java that lets you "freeze" configurable inventory slots globally for all players. It's main purpose is to be used on a server (e.g. an RP server with roleplaying events where you'd want to limit the number of inventory slots for the sake of added immersion) or as part of modpacks (e.g. ultra hardcore survival ones).

The mod provides a single command to enable globally "freezing" specific inventory slots:

/inventory-lock [true/false]

DESIGN

  • 🪷 Very clean & simple code written in Java
  • 🔒 Server-side watchdog to prevent item duping exploits & item deletion
  • 🚀 Could easily be ported to newer Minecraft/Forge versions
  • 😎 Custom item pickup logic to prevent picking up items into "frozen"/"locked" inventory slots
  • 🎨 GUI effects (frontend) code isolated from rest of the program's internal logic (backend)
  • 🩷 Tiny size (currently a mere ~330 KB)
  • 👋 Tested to work in both survival and on multiplayer with many people / on a server

FUNCTIONALITY

  • 🧊 "Freeze" parts of the players' inventories while /inventory-lock true is set.
  • ❌ When /inventory-lock is true players cannot put in, take out, or delete items from their own "frozen"/locked inventory slots.
  • 👗 Only freezes the inventory slots configured. Aka doesn't affect inventory slots such as chests, other mods (e.g. backpacks), armor, capes, and other custom inventory slots related to cosmetics.
  • 🖼️ The slots that are frozen will be indicated with a gray transparent square overlay (indicator appearance might be altered in future versions).
  • 🪽 Automatically unfreezes the inventories of players when they switch to creative mode, then re-freezes them again if they exit creative mode while the /inventory-lock is true.
  • 🔢 The inventory slots to be frozen are to be easily configurable by server admins.
  • [WIP] 🧑‍🤝‍🧑 Exclude specific players from the /inventory-lock. For example whoever is hosting an RP event on a server or playing an actor could be excluded from the /inventory-lock for the duration of that time.

COMPATIBLE VERSIONS

Minecraft: 1.16.5

Mod Launcher: Forge (tested on 36.2.42)

Oggvik's Inventory Freeze

A simple Minecraft Forge mod written in Java that lets you "freeze" configurable inventory slots globally for all players. It's main purpose is to be used on a server (e.g. an RP server with roleplaying events where you'd want to limit the number of inventory slots for the sake of added immersion) or as part of modpacks (e.g. ultra hardcore survival ones).

The mod provides a single command to enable globally "freezing" specific inventory slots using the command:

/inventory-lock [true/false]

DESIGN

  • 🪷 Very clean and simple code written in Java
  • 🔒 Server-side watchdog to prevent item duping exploits & item deletion
  • 🚀 Could easily be ported to newer Minecraft/Forge versions
  • 😎 Custom item pickup logic to prevent picking up items into "frozen"/"locked" inventory slots
  • 🎨 GUI effects (frontend) code isolated from the rest of the program's internal logic (backend)
  • 🩷 Tiny size (currently a mere ~330 KB)
  • 👋 Tested to work in both survival and on multiplayer with many people / on a server

FUNCTIONALITY

  • 🧊 "Freeze" parts of the players' inventories while /inventory-lock true is set.
  • ❌ When /inventory-lock is true players cannot put in, take out, or delete items from their own "frozen"/locked inventory slots.
  • 👗 Only freezes the inventory slots configured. Aka doesn't affect inventory slots such as chests, other mods (e.g. backpacks), armor, capes, and other custom inventory slots related to cosmetics.
  • 🔢 The inventory slots to be frozen are to be easily configurable by server admins.
  • 🪽 Automatically unfreezes the inventories of players when they switch to creative mode, then re-freezes them again if they exit creative mode while the /inventory-lock is true.
  • 🖼️ The slots that are frozen will be indicated with a gray transparent square overlay (indicator appearance might be altered in future versions).
  • [WIP] 🧑‍🤝‍🧑 Optionally exclude specific players from the /inventory-lock. For example whoever is hosting an RP event on a server or playing an actor could be excluded from the /inventory-lock for the duration of that time.

COMPATIBLE VERSIONS

Minecraft: 1.16.5 Mod Launcher: Forge (tested on 36.2.42)

BUILDING THE PROJECT

To build the project for the first time you'll need to go to its root directory and run: ./gradlew build --refresh-dependencies Though on subsequent compiles it is enough to simply run ./gradlew build Compilation has been tested to work with Java 17 OpenJDK but some versions above that and any version lower until at least Java 8 should also work. The above will generate an inventoryfreeeze-X.X.X.jar in the ./build/libs directory, which you can then add to a Minecraft 1.16.5 Forge profile to play.

Also, if you're using IntelliJ IDEA (which I'd recommend), you can also compile Forge Gradle Runs by executing: ./gradlew genIntellijRuns

EXAMPLE SCREENSHOTS

Example 1 – With custom mod config

Locked slots gray overlay example Example 1 shows locked inventory slots according to the custom server config below: Custom inventory slot selection server-side config example

Example 2 – With a modpack

Here is an example of the inventory freeze feature in action as part of a modpack: Locked slots gray overlay in a modpack example

Credits: "Dawn of Humanity" AoT-inspired modpack

Example 3 – With a modpack + resource pack

Locked slots gray overlay with a resource pack example Same as example 2 but showing the overlay indicator effect also working when a resource pack is applied. Notice the locked inventory slots appear darker than the unlocked hotbar slots, whereas in this resource pack they would normally all have the same color.

Credits: "Dawn of Humanity: RP!" Resource pack

Screenshots

Gallery

  • Locked slots gray overlay example
    Locked slots gray overlay example Locked slots gray overlay example
  • Custom inventory slot server config example
    Custom inventory slot server config example Custom inventory slot server config example
  • Locked slots gray overlay in a modpack example
    Locked slots gray overlay in a modpack example Locked slots gray overlay in a modpack example
  • Locked slots gray overlay with a resource pack example
    Locked slots gray overlay with a resource pack example Locked slots gray overlay with a resource pack example
  • [OLD] Locked slots red overlay example
    [OLD] Locked slots red overlay example [OLD] Locked slots red overlay example
  • [OLD] Locked slots red overlay example
    [OLD] Locked slots red overlay example [OLD] Locked slots red overlay example
  • Locked slots gray overlay example
    Locked slots gray overlay example
  • Config file example
    Config file example
  • Locked slots gray overlay in a modpack example
    Locked slots gray overlay in a modpack example Credit: "Dawn of Humanity" (https://dawnofhumanity.org/) AoT-inspired modpack
  • Locked slots gray overlay with a resource pack example
    Locked slots gray overlay with a resource pack example Credit: "Dawn of Humanity: RP!" Resource pack (https://www.curseforge.com/minecraft/texture-packs/dawn-of-humanity-rp/gallery)
  • [OLD] Locked slots red overlay example
    [OLD] Locked slots red overlay example Player inventory during freeze (v0.2.0)

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

~3,000
Total Downloads
CurseForge
~3,000
Modrinth
<1,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync