How do you remove mending ability from an item?

Started by KabiKabi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you remove mending ability from an item?

I've made an armor that is supposed to break fast, and I do not want it to be able to have mending. I can't seem to figure it out. Help please?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Perhaps set the…
Mon, 12/30/2024 - 19:52

Perhaps set the enchantability to 0? Although this will make it impossible to enchant at all.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could possibly have a…
Mon, 12/30/2024 - 20:47

You could possibly have a procedure that is:
[if][does [provided itemstack] haven enchantment of type {mending}]

do: [remove specific enchantment from [provided itemstack] type {mending}]

 

I forgot the exact names of the procedure blocks, but something like that could work, then you would just have to set it to run on item in inventory tick, or on helmet/chestplate/leggings/boots equiped tick.

That should be a way to remove mending, although it could technically still be put on the equipment, it would just be removed whenever you go to use the equipment.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That worked. Thanks.
Tue, 12/31/2024 - 03:23

That worked. Thanks.