How can I make a pickaxe give you an enchantment?

Started by KarKomma404 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a pickaxe give you an enchantment?

Hello! I'm working on a little mod and I've created an Prismarine Pickaxe. I came up with the idea of making it that whenever you hold the item in your hand, it gives you Aqua Affinity. I know how to make a item give a potion effect when it's hold, but Aqua Affinity is a helmet enchantment. If it's not possible, is there any alternatives? Thanks! And forgive me for my bad english.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have you tried, when the…
Tue, 12/19/2023 - 12:51

Have you tried, when the item is hold in your hand, to make a procedure that gives Aqua Affinity to your pickaxe? 

If it's not possible, try a procedure that gives Aqua Affinity to your current helmet and removes it when the pickaxe is not in your hand anymore. 

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, but isn't possible to…
Tue, 12/19/2023 - 15:14

Yes, but isn't possible to make that the pickaxe gives you the enchantment without wearing a helmet?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hum... If the enchantment is…
Tue, 12/19/2023 - 20:51

Hum... If the enchantment is helmet only, it seems difficult. 

Maybe you can recreate the enchantment and apply it to the pickaxes, for example. 

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, I'll try that
Tue, 12/19/2023 - 23:05

Thanks, I'll try that