Skip to content

mleem97/gregMod.Inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gregMod.Inventory

9-slot hotbar inventory system for Data Center — carry more items, switch with scroll wheel or number keys.

Discord gregFramework License Version GameVersion Unity

Links

Overview

gregMod.Inventory adds a 9-slot hotbar inventory to Data Center. Carry multiple items and switch between them using the scroll wheel or number keys 1–9.

Fork of leoms1408/datacenter-inventory by leoms1408, integrated into the gregMod ecosystem.

Features

  • 9-slot hotbar at the bottom of the screen for quick item switching
  • Scroll wheel to cycle through hotbar slots
  • Number keys 1–9 to jump directly to a slot
  • H key to toggle the HUD on/off
  • Items are stashed/restored with full transform and physics state
  • CableSpinner support with Harmony patch for stash detection
  • Custom drop handling for inventory-restored items

Installation

  1. Install MelonLoader (v0.7.2+) for Data Center

  2. Copy the release DLL into the mod folder:

    Game/Mods/gregMod.Inventory.dll
    
  3. Start the game

Keyboard Shortcuts

Key Action
1–9 Jump to hotbar slot
Scroll wheel Cycle through slots
H Toggle HUD on/off

Notes

  • Inventory contents are not saved — switching slots is session-only; items are lost on quit

Dependencies

  • MelonLoader (v0.7.2+)

Build only

  • Il2CppInterop
  • Harmony
  • Unity / game interop assemblies from the local Data Center installation

Build from Source

Requirements:

  • .NET 6 SDK
  • local Data Center / MelonLoader installation

Note: This mod was built on Linux using Proton-GE 10-34. The references/ directory contains the required game and MelonLoader DLLs. When building on a different system, adjust the <HintPath> entries in the .csproj to point to your local MelonLoader and game interop assemblies.

Build:

git clone https://github.com/mleem97/gregMod.Inventory.git
cd gregMod.Inventory
dotnet build -c Release

Release output:

bin/Release/net6.0/gregMod.Inventory.dll

Project Structure

gregMod.Inventory/
├── Inventory/                  # Source code
│   ├── Core.cs                 # MelonLoader entry point, input handling, drop logic
│   ├── Inventory.cs            # Slot management, stash/restore, icon extraction
│   ├── InventoryHud.cs         # Hotbar HUD rendering (IMGUI)
│   └── InventorySlot.cs        # Single slot: objects, transform state, stash/restore
├── references/                 # Game & MelonLoader interop DLLs
├── gregMod.Inventory.csproj    # Project file
├── LICENSE                     # Apache 2.0
└── README.md

Credits

Role Contributor
Original Author leoms1408
gregMod Fork mleem97 (TeamGreg Modding)

License

This project is licensed under the Apache License 2.0. See LICENSE.

Original code by leoms1408MIT License.

🚀 Join the gregFramework Team!

Building the ultimate modding framework for Data Center is a massive undertaking. gregFramework is currently maintained by a passionate core team of three, and we are looking for fellow creators to help us scale this mission!

Your place in the team: We won't throw you into the deep end. Depending on your individual strengths and skills, we will match you with the right areas of the project so you can contribute exactly where you have the most fun.

🌍 Language Requirement: A solid grasp of written English is required (without relying on machine translation). Being comfortable speaking English in voice chats is a huge plus, but we completely respect those who prefer to stick to text!

We are looking for motivated volunteers to join our crew across several roles:

  • 💻 Code Wizards (C#, Rust, Lua, TS, GO) — Build and expand the core framework and mod packages
  • 🎨 Asset Creators (3D Models, hardware assets) — Bring the framework to life visually
  • 📚 Technical Writers — Craft wiki entries, maintain documentation, and write user guides
  • 🎮 Alpha Testers — Hunt down bugs, stress-test the framework, and provide critical feedback
  • ⚙️ System Guardians — Maintain our Linux servers, Docker containers, and infrastructure
  • 🤝 Community Managers — Foster our Discord community, gather feedback, and keep the energy high

Interested in joining the project? Everyone is absolutely welcome! Send us an email at apply@gregframework.eu, shoot a quick DM, or drop a message on Discord.


gregFramework — powered by the community.

About

9-slot hotbar inventory system for Data Center — carry more items, switch with scroll wheel or number keys.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages