POGLib
A library for content mods: new items with their own model and icon that work in co-op. Install it when a mod asks for it; it adds no items of its own.
| Date uploaded | 2 days ago |
| Version | 0.1.2 |
| Download link | Largo-POGLib-0.1.2.zip |
| Downloads | 13 |
| Dependency string | Largo-POGLib-0.1.2 |
This mod requires the following mods to function
LavaGang-MelonLoader
The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
Preferred version: 0.7.2README
POGLib
A library for content mods for Pit of Goblin: new items, with their own model and icon, that work in co-op.
Players: install it when a mod lists it as a dependency (your mod manager does that for you). POGLib adds no items of its own.
Multiplayer
- Every player needs the same content mods. POG Mod Check shows a joining player what differs before anything loads.
- A player without a content mod can still join (the game allows it on build 26668562); that mod's items simply do not appear for them.
For mod developers
Reference POGLib.dll, add Largo-POGLib-0.1.2 to your manifest's dependencies, and register items in your
OnInitializeMelon:
using MelonLoader;
using POGLib.Items;
[assembly: MelonAdditionalDependencies("POGLib")]
public class BerryMod : MelonMod
{
public override void OnInitializeMelon()
{
Content.Items.Register(new ModItemDefinition
{
ModId = "BerryMod", // your mod's id: never rename it after release
ContentId = "GlowBerry", // the item's id: never rename it after release
DisplayName = "Glow Berry",
DisplayDescription = "Tastes like an apple, somehow.",
ItemType = Il2Cpp.ItemType.Food,
MapIcon = Il2Cpp.MapIconType.Food,
Visual = ItemVisual.Obj("path/to/GlowBerry.obj"), // your own model, with its .mtl beside it
IconFile = "path/to/GlowBerry.png", // square PNG
GoldValue = 20,
ShopCost = 7, // the price in a shop (POGShops)
Capabilities = { new EatCapability { CopyFrom = "Item_Apple", HealthOnEating = 15f } },
});
}
}
An item's identity is a hash of ModId:ContentId, the same on every player's machine. To sell your items in the
game's shops, use POGShops. A complete sample is
samples/ShopDemo in the repository.
What you can call
Everything public is listed line by line in
api/POGLib.txt; the rest of the library is internal.
What that file lists stays through 0.x, except the parts marked experimental below.
Status of 0.1.2
Shown in the game (build 26668562), on a host and on a client over LAN:
- items registered from code appear for every player with the mod; bought in a shop, eaten, carried, passed between players, put in the bucket;
- your own model (
ItemVisual.Obj) and icon (IconFile); eating (EatCapability); a big item (Big = true); the item's journal entry.
Experimental (in the code, not shown in the game yet; may change): ItemVisual.GameMesh, GlowCapability,
ParticleEffect, MeleeWeaponCapability, ThrowableCapability, UsableCapability, SpawnOnConsume, Tint,
PickupStaminaPenalty, MovementFactorWhenHeld, Consumable / MaxUses with a use handler. Use handlers run on
the host only: a client's use is not sent to the host yet.
Saves (since 0.1.1): a mod item saved in the bucket comes back when the save loads; without its mod the save loads with no error and the item is gone. (0.1.0 lost mod items from saves.)
Not in 0.1: natural loot drops, AssetBundle models, mobs, levels.
Source, roadmap and issues: github.com/largoz/POGLib
CHANGELOG
Changelog
0.1.4 (2026-11-26)
- A locked part stands in the wardrobe under the game's own padlock, among the game's locked parts, so players know it is there to
be found; a click does nothing until the mod unlocks it.
HiddenWhileLocked = truekeeps a part out of the wardrobe until then (a secret), as every locked part was in 0.1.3. Nothing of ours goes into the game's own list of unlocked parts.
0.1.3 (2026-11-26)
- Cosmetics (
Content.Cosmetics): clothes, hair, horns and accessories of a mod's own, from a GLB file. A model weighted to the goblin's bones moves with the body, one without weights sits on the head. They stand in the game's wardrobe and take the player's colours; a part can be locked until the mod unlocks it, and objects of a model can be hidden from its wearer in first person (a collar). An NPC wears them throughLookJson. A player without the mod sees the goblin without the part; random goblins never wear one; nothing enters the game's list of rewards. - Nothing changes for mods that do not use it.
0.1.2 (2026-11-25)
- Models from OBJ files are drawn the right way round. In 0.1.0 and 0.1.1 an OBJ as Blender and other tools export it was drawn inside out: you saw its far inner side instead of the near outer one. If you turned your faces over to make up for it, you need not change your file: where a face has normals, they decide which side is the outside.
0.1.1 (2026-11-23)
- Mod items come back from saves. In 0.1.0 an item a player carried or left in the bucket was saved, but on loading the game could not find it and it vanished: the game looks a saved item up in its own prefab list, and POGLib now adds mod items to that list too. Seen in the game: a berry saved in the bucket comes back; without its mod the save loads with no error.
- The log no longer calls capabilities "EXPERIMENTAL" (it did so for food too, which is shown working).
0.1.0 (2026-11-22)
First release.
- Items from code:
Content.Items.Register(new ModItemDefinition { ... }), with the item's identity hashed fromModId:ContentId, the same on every player's machine. - Your own model from an OBJ file (
ItemVisual.Obj) and an icon from a PNG (IconFile); food (EatCapability); big items; journal entries. - The public surface is listed in
api/POGLib.txt; everything else is internal. Experimental parts are named in the README. - Shops are a mod of their own: POGShops.