Enchantment that makes weapons do stuff but one weapon does a diffrent thing

Started by vagstef on

Topic category: Help with modding (Java Edition)

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantment that makes weapons do stuff but one weapon does a diffrent thing
Fri, 07/12/2024 - 14:46 (edited)

the problem is it says i dont have a itemstack depency and yes i dont but how can i check if the player is holding that specific item then with the enchantment?

Edited by vagstef on Fri, 07/12/2024 - 14:46
Last seen on 00:39, 29. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use the "get item in main…
Fri, 07/12/2024 - 17:54

use the "get item in main hand of (event/target entity)" to check if it is equal to whatever item you want and has whatever enchantment you want

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
let me try it  
Fri, 07/12/2024 - 18:59

let me try it

 

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hold on i think its the…
Fri, 07/12/2024 - 19:02

hold on i think its the thing i tried before and it said the thing for the depency but let me try again i guess

 

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
cant even find the exact…
Fri, 07/12/2024 - 19:09

cant even find the exact block you're saying only found item in main hand block which i already tried and as said shows a dependency error. Isn't there a way to ignore dependency errors or add dependencies?

Last seen on 00:39, 29. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately you can’t…
Sat, 07/13/2024 - 00:17

Unfortunately you can’t ignore dependency errors or add dependencies, it means the information your are asking for doesn’t exist in that context. The “provided itemstack” block requires an itemstack dependency which is pretty straight forward, but the “item in main hand” block has an entity dependency, so I wonder what the trigger you are using is. Could you send a picture of your procedure and what trigger you use?

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i just remade it right now…
Sat, 07/13/2024 - 13:58

i just remade it right now quickly because i couldnt save it because of the error so just ignore that i can add the trigger to the item instead of the enitie taking damage thing

Last seen on 00:39, 29. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You’re halfway there, the…
Sat, 07/13/2024 - 22:56

You’re halfway there, the part making sure the item in hand is your item is perfect, now you just need to use that exact same “item is main hand of source entity” instead of “provided itemstack” in the has enchantment block

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ooh let me try that
Sun, 07/14/2024 - 08:29

ooh

let me try that

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok so i cant find a way to…
Sun, 07/14/2024 - 13:06

ok so i cant find a way to put it in the enchantment block

Last seen on 10:40, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK figured something out!!…
Wed, 07/17/2024 - 07:20

OK figured something out!! TYSM

Last seen on 00:39, 29. Jul 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nice, glad I could help
Thu, 07/18/2024 - 01:49

Nice, glad I could help