跳到正文

Stackable

作者:RoBaertschi

Make every Item stackable to 64 and above

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Stackable

Stackable is a mod that allows People to force any Item to a specific stack size. When installed it will default to 64 for every Items (including Totems, Tools and Armor). Moddeveloper can set a Maximum stacksize that will be used. This can be disabled by the User. Moddeveloper can also print a warning if this Mod does not work correctly with there Mod. They can also set a Warning when the User forces the stacksize. These warnings can be disabled.

Could break some functionality of the game when you go over 64

Integration

ModMenu

Dependencies

Requires Cloth Config and Fabric API
Recommended but not needed is Mod Menu

Config

Default Config:

stackSize = 64
onlyUnstackables = false
onlyStackables = false
forceStackSize = false
turnWarningsOff = false
useMultiplier = false
stackMultiplier = 1

Apply the stackSize only to unstackables Items like Totems or Tools:

stackSize = 64
onlyUnstackables = true
onlyStackables = false
forceStackSize = false
turnWarningsOff = false
useMultiplier = false
stackMultiplier = 1

Apply only to stackables:

stackSize = 64
onlyUnstackables = false
onlyStackables = true
forceStackSize = false
turnWarningsOff = false
useMultiplier = false
stackMultiplier = 1

Force the stacksize to every item of a Mod that sets a Max stacksize:

stackSize = 64
onlyUnstackables = false
onlyStackables = false
forceStackSize = true
turnWarningsOff = false
useMultiplier = false
stackMultiplier = 1

Turn off any Warning in Chat on joining:

stackSize = 64
onlyUnstackables = false
onlyStackables = false
forceStackSize = false
turnWarningsOff = true
useMultiplier = false
stackMultiplier = 1

Use multiplier of 8:

stackSize = 64
onlyUnstackables = false
onlyStackables = false
forceStackSize = false
turnWarningsOff = false
useMultiplier = true
stackMultiplier = 8

For mod Devs.

First add jitpack to the repositories as an Repo:

repositories {
	...
	maven { url "https://jitpack.io" }
}

Then in dependencies:

dependencies {
        modImplementation 'com.github.robaertschi:stackable:${project.stackable_version}'
}

Then in gradle.properties:

stackable_version = version

Replace _version_ with the Mod Version which you find here on Modrinth or on the GitHub Releases.

Then implement IDefinedStackableItem for your Item. There could be an easier way in the Future without needing to create a complete new Item class but for now it is only this way.

常见问题

Stackable 支持哪些 Minecraft 版本?

Stackable 支持 Minecraft Java 版 1.19.2,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Stackable 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

RoBaertschi 的其他作品

查看全部 →