Перейти к содержимому
Mineforgian

Nobody Lib

A library for mods by Nobodyasidentity.

Загрузки
122
Подписчики
0
Обновлён
3 августа 2026 г.
Лицензия
All-Rights-Reserved

Опубликован 5 июля 2026 г.

Nobody Lib is a simple library mod made by/for Nobodyasidentity for developing Fabric mods.

⚠ Nobody Lib is still under development and stuff might change

Please use a borderless fullscreen mod like Cubes Without Borders to use the overlay feature in fullscreen mode

Usage

Including in Gradle project

build.gradle:

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
	implementation "maven.modrinth:nobodylib:${project.nobodylib_version}"
}

gradle.properties:

# Change to whatever is the latest version for your Minecraft version
nobodylib_version=0.0.6+26.2

Item

import io.github.nobodyasidentity.lib.core.item.Item;

public class item_example {
    public static final String MOD_ID = "example_mod";

    public static final Item EXAMPLE_ITEM = Item.create(MOD_ID, "example_item");
}

Music Disc item

Note: you will have to add stuff to the data and assets folder on your own, otherwise the mod will not be able to run.

import io.github.nobodyasidentity.lib.core.item.Item;

public class music_disc_example {
    public static final String MOD_ID = "example_mod";
    
    // this will also create a sound event called "example_mod:example_music_disc"
    public static final Item EXAMPLE_MUSIC_DISC = Item.createMusicDisc(MOD_ID, "example_music_disc");
}

Spawn Egg item

import io.github.nobodyasidentity.lib.core.item.Item;
import net.minecraft.world.item.SpawnEggItem;
import example_mod.example_entities

public class spawn_egg_example {
    public static final String MOD_ID = "example_mod";
    
    public static final SpawnEggItem EXAMPLE_SPAWN_EGG = Item.createSpawnEgg(MOD_ID, "example_spawn_egg", example_entities.example_entity);
}

Custom Item subclasses

import io.github.nobodyasidentity.lib.core.item.Item;
import com.example.CustomItem

public class custom_subclass_example {
    public static final String MOD_ID = "example_mod";
    
    public static final CustomItem EXAMPLE_CUSTOM_ITEM = Item.create(MOD_ID, "example_custom_item", CustomItem::new);
}

Block

import net.minecraft.world.item.BlockItem;
import io.github.nobodyasidentity.lib.core.item.Block;

public class block_example {
    public static final String MOD_ID = "example_mod";
    
    public static final Block EXAMPLE_BLOCK = Block.create(MOD_ID, "example_block");
    public static final BlockItem EXAMPLE_BLOCK_ITEM = Block.register(EXAMPLE_BLOCK);
}

Custom Block subclasses

import net.minecraft.world.item.BlockItem;
import io.github.nobodyasidentity.lib.core.item.Block;
import com.example.CustomBlock

public class custom_block_example {
    public static final String MOD_ID = "example_mod";
    
    public static final Block EXAMPLE_CUSTOM_BLOCK = Block.create(MOD_ID, "example_custom_block", CustomBlock::new);
    public static final BlockItem EXAMPLE_CUSTOM_BLOCK_ITEM = Block.register(EXAMPLE_CUSTOM_BLOCK);
}

Logger

import io.github.nobodyasidentity.lib.Logger;

public class logger_example {
    public static final String MOD_ID = "example_mod";
    
    public static final Logger LOGGER = Logger.create(MOD_ID);
}

Py

Nobody Lib also has some simple functions based on functions from Python

import io.github.nobodyasidentity.lib.Py;

public class py_example {
    public static final String MOD_ID = "example_mod";
    
    public void init(){
        Py.print(
            py.str(null) // "null"
        );
    }
}

Client Load Event

import io.github.nobodyasidentity.lib.client.ClientLoadEvent;
import net.minecraft.client.Minecraft;
import com.mojang.blaze3d.platform.Window;

public class client_load_example {
    public static final String MOD_ID = "example_mod";
    
    public void init(){
        ClientLoadEvent.register(client->{
            Window window=ClientLoadEvent.Minecraft().getWindow(); // get game window
        });
    }
}

Data generators

Data generators are still work-in-progress and I can't even guarantee that they will stay

Dependencies

Ченджлог

0.0.8+26.2Бета26.2 · 3 августа 2026 г.
  • Moved Py.java to util/.
  • Added OverlayProjection for projecting a 3D point to the 2D overlay.
  • Added a keybind to toggle overlay rendering in-game (default is F9).
  • Added a display scale to the overlay display in config.
  • Added a function to register a keybind function that works in menus too.
  • Added a popup if you try to directly run the JAR that simply tells you to put it in the "mods" directory.
  • Item is now a BlockItem with a toggle for the "Block" part. This means that you can now cast a BlockItem to an Item.
  • If you don't have Cloth Config API: ModMenu will now give you a simple screen that simply tells you to install it.
  • Added more info to the overlay display
0.0.7+26.2Бета26.2 · 26 июля 2026 г.
  • Big update for overlay, things might not work as intended
  • Added a key binding creation system
0.0.6+26.2Бета26.2 · 21 июля 2026 г.

⚠ Warning: Please rename config.json to client.json if you have or had the overlay enabled

  • Improved config
  • Started working on an overlay rendering help system
0.0.5+26.2Бета26.2 · 21 июля 2026 г.
  • Overlay now works
  • Made the outline debug option work
  • Added a few more functions to the Logger
0.0.4+26.2Бета26.2 · 19 июля 2026 г.
  • Added functions to Item and Block to create items/blocks with custom subclasses
0.0.3+26.2Бета26.2 · 18 июля 2026 г.
  • added a config screen
  • I'm working on a closet/ghost window system
  • some more insignificant changes
0.0.2+26.2Бета26.2 · 12 июля 2026 г.
  • added some client stuff
  • renamed data to datagen
  • added a spawn egg item creator
  • improved logger
  • improved Py.str()
0.0.1+26.2Бета26.2 · 5 июля 2026 г.

initial release

Комментарии

Загружаем…