matter dust in creative tab
This commit is contained in:
parent
3e59eb5595
commit
cc7fe1ea2f
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user