LogLib 图标

LogLib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/loglib
资源信息

Minecraft 版本: 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6

平台: forge

资源介绍

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)
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Limulidatic Takeover: Horseshoe Crab Invasion!

价格:0 墨喵币
下载量:0

查看详情
CastleGuard

价格:0 墨喵币
下载量:0

查看详情
Dxsarster Edition

价格:0 墨喵币
下载量:0

查看详情
NoChance AntiCheat

价格:0 墨喵币
下载量:0

查看详情