Back to mods
LogLib project artwork

Modrinth · Minecraft mod

LogLib

A simple library for making logs

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which LogLib release matches 1.20.1 Forge?

Updated 1 year ago
Best match for your filters 1.0.0
Game version 1.20.1, 1.20.2, 1.20.3
Loader Forge

LogLib 1.0.0 targets 1.20.1, 1.20.2, 1.20.3 with Forge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is LogLib required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does LogLib 1.0.0 need?

1.0.0 on 1.20.1 Forge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add LogLib without breaking your instance.

Built for LogLib 1.0.0 on 1.20.1 Forge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.20.1, 1.20.2, 1.20.3 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does LogLib add?

LogLib banner

What is this?

Just something I made while making a log, which I thought would be good to make a library so other people could do it more easily

How to use:

1. Make your log strippable

Just add your log to the LogMap list in commonSetup like so:

  private void commonSetup(final FMLCommonSetupEvent event) {
    event.enqueueWork(() -> {
      LogEvents.LogMap.put(YOUR_MOD.YOUR_LOG.get(), YOUR_MOD.YOUR_STRIPPED_LOG.get())
    });
  }

2. Optional: Add a loot table for bark

1.Add your bark to a log

  private void commonSetup(final FMLCommonSetupEvent event) {
    event.enqueueWork(() -> {
        LogEvents.BarkMap.put(YOUR_MOD.YOUR_LOG.get() /*Can actually be any log*/, The resource location of your loot table);
    });
  }

2.Add a loot table
In datagen, add this:

  this.add(YOUR_MOD.YOUR_LOG.get()
      () -> BarkLootMethods.CreateDefaultLootTable(YOUR_MOD.YOUR_BARK.get()));

Or alternatively, this:

  this.add(YOUR_MOD.YOUR_LOG.get()
      () -> BarkLootMethods.CreareRangeLootTable(YOUR_MOD.YOUR_BARK.get(), MinimumAmount, MaximumAmount));

And you're done!

This mod also has a datagen method for log models.
In datagen:

LogMethods.logBlockWithItem(this, (RotatedPillarBlock) YOUR_MOD.YOUR_LOG,
    Name of the texture for the side of the block (usually just the block's name),
    Name of the texture for the tip of the block (usually "[block's name]_top"),
    the name of the block)

Project description from Modrinth.

Pick your setup

LogLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

6 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

LogLib versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.