how to detect if an enchant is applied to a weapon

Started by Real_bizzy on

Topic category: Help with modding (Java Edition)

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to detect if an enchant is applied to a weapon

so in procedures i wanted to know how to detect if a enchant is applied to a weapon because i want to make a custom enchant where when the enemy is hit with the enchant the enemy gets slowness and weakness (if any plugins are required its okay, just make sure their fabric friendly cuz im using fabric)

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
someone please help
Sat, 03/30/2024 - 08:24

someone please help

Last seen on 07:16, 30. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is an item procedure…
Sat, 03/30/2024 - 09:36

There is an item procedure that checks if a weapon has an enchantment, just use that.

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what is the item procedure…
Sat, 03/30/2024 - 09:38

what is the item procedure though

 

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i found this but i have no…
Sat, 03/30/2024 - 09:42

i found this but i have no idea what to conect it to

Last seen on 08:13, 15. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
an if block
Sat, 03/30/2024 - 10:54

an if block

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok thanks but i want to make…
Sat, 03/30/2024 - 22:22

ok thanks but i want to make it that the enchantment puts weakness and slowness of the enemy and every level higher the enchant is, the potion effects get one level higher and 2x longer, but for some reason (image below) this doesnt work

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 03/30/2024 - 22:22

Last seen on 07:03, 30. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i still need help, can…
Sat, 04/06/2024 - 00:18

i still need help, can someone please?