#an item loses durability when crafting instead of dissapearing

11 messages · Page 1 of 1 (latest)

shadow plume
#

how to do this? ^^^

shadow plume
#

or how do i make that item doesnt dissapear

shadow plume
#

so i kinda made trashcode but it works```kotlin
import beshenii.modding.FoodExtended.KNIFE
import net.minecraft.item.Item

class DebugOne(settings: Settings?) : Item(settings) {
override fun asItem(): Item {
return KNIFE
}
}```

var KNIFE: Item = Items.IRON_INGOT

DEBUG_ONE = register(DebugOne(FabricItemSettings()), "debug1", false)

KNIFE = register(SwordItem(ironMaterial, 2, -2.3f, FabricItemSettings().recipeRemainder(DEBUG_ONE)), "knife")```
ripe forge
#

isn't there a stack aware recipe remainder in FabricItemSettings

rustic night
#

yes there's a nbt recipe remainder

#

I think you have to extend FabricItem and override recipeRemainder or something

ripe forge
ripe forge
#

and just a heads up - don't do what you did with the DebugOne class, not only does it look strange and waste a bit of memory, it just flat out won't work if something doesn't use ItemConvertible#asItem()

shadow plume
shadow plume
#

ok i did it