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
I currently don't have a maven set up but I hope to use Modrinth's built-in maven
dependencies {
implementation files('libs/nobodylib-${project.nobodylib_version}.jar')
}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");
}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_ITEM = Item.createMusicDisc(MOD_ID, "example_music_disc");
}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);
}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);
}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"
);
}
}Data generators are still work-in-progress and I can't even guarantee that they will stay