how to detect if an enchant is applied to a weapon

Started by Real_bizzy on

Topic category: Help with Minecraft modding (Java Edition)

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)

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

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.

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

 

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

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

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

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?