how to detect if an enchant is applied to a weapon

Started by Real_bizzy on

Topic category: Help with Minecraft modding (Java Edition)

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

  • Modifications: 3
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 185
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)

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

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

someone please help

Active 5 hours ago
Joined Jul 2022
Points:
1827

User statistics:

  • Modifications: 2
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 19
  • Comments: 1766
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.

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

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

what is the item procedure though

 

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

  • Modifications: 3
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 185
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

Active 6 months ago
Joined Mar 2024
Points:
147

User statistics:

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

an if block

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

  • Modifications: 3
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 185
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

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

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

Active 7 hours ago
Joined Jan 2024
Points:
256

User statistics:

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

i still need help, can someone please?