Lychee (Neo/Forge)

Lychee (Neo/Forge)

2M Downloads

Unbreakable tools break immediately with recipes that consume durability

pafeuu opened this issue ยท 3 comments

commented

Mod loader

Forge

Minecraft version

1.20.1

Mod version

5.1.20

Modloader version

47.4.0

Modpack info

https://www.curseforge.com/minecraft/modpacks/druidic-quest

[IMPORTANT] If bug:

  • I have confirmed this bug is reproducible on a minimal setup, not a modpack with many other mods.

[IMPORTANT] If bug: The latest.log file, not the crash report

https://mclo.gs/mmNjW3y

Issue description

Like in the title unbreakable tools will always be consumed if the recipe is damaging the item.

tested with this:

ServerEvents.recipes(event=>{
    event.custom({
		type: "lychee:block_interacting",
		item_in: {item: "minecraft:iron_pickaxe"},
		block_in: "minecraft:bone_block",
		post: [
			{type: "place", block: "minecraft:skeleton_skull"},
			{type: "damage_item",damage: 1}
		]
	})
	 
})

with just lychee, kubejs and dependencies

commented

I guess now that I confirmed it works with minimal mods the modpack link just looks like an ad lol

commented

Hi, how do I reproduce it?

commented

Give yourself an unbreakable axe
/give @p iron_pickaxe{Unbreakable:true}
and right click the bone block