matter dust in creative tab

This commit is contained in:
YuRaNnNzZZ 2025-04-05 00:43:44 +03:00
parent 3e59eb5595
commit cc7fe1ea2f
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D
2 changed files with 8 additions and 1 deletions

View File

@ -163,6 +163,13 @@ class MatterDustItem : Item(Properties().stacksTo(64)), IMatterItem {
return matter(stack) >= ItemsConfig.MATTER_DUST_CAPACITY
}
fun makeStack(matterValue: Decimal = Decimal.ONE, count: Int = 1): ItemStack {
val stack = ItemStack(this, count)
matter(stack, matterValue)
return stack
}
override fun overrideStackedOnOther(
pStack: ItemStack,
pSlot: Slot,

View File

@ -223,7 +223,7 @@ private fun addMainCreativeTabItems(consumer: CreativeModeTab.Output) {
accept(MItems.GRILL.values)
// accept(MItems.MATTER_DUST)
accept(MItems.MATTER_DUST.makeStack())
accept(MItems.TRITANIUM_ORE)
accept(MItems.DEEPSLATE_TRITANIUM_ORE)