Nobody Lib

Quick rating

Nobody Lib

No reviews yet

A library for mods by Nobodyasidentity.

API/Library
Mod Loaders
Fabric
Quilt
Minecraft
26.2

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 Optional
Server Optional

About

Project Details

Type
Mod
License
All Rights Reserved

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

Modrinth ID

Resources

External Links

About

Description

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 b359ea368791493eb62786ac91a59cee3a5bd7f7.webp 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

Screenshots

Gallery

  • Simple example block
    Simple example block A simple example block without model or texture
  • Example overlay with coordinates
    Example overlay with coordinates The overlay is not visible in OBS Studio

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

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works