Workaround for itemstack and keybinds

Started by MojangModCreator on

Topic category: Help with Minecraft modding (Java Edition)

Last seen on 15:17, 25. Oct 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Workaround for itemstack and keybinds

I'm trying to make a scythe with an ability which does damage relative to the amount of sharpness you have on the item. I try to do this with a keybind yet I can't cause of me not being able to use itemstack with keybinds. Is there any workarounds for this?

 

Last seen on 15:17, 25. Oct 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Another thing, I cannot even…
Fri, 10/25/2024 - 13:18

Another thing, I cannot even make this because I need it to detect if the person has the scythe in their hand and cannot do that because keybinds do not allow itemstacks.

Last seen on 16:28, 25. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just use this,
Fri, 10/25/2024 - 14:40

Just use this,

Last seen on 15:17, 25. Oct 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't, it's an itemstack…
Fri, 10/25/2024 - 14:56

I can't, it's an itemstack and you can't use them in keybinds.

Last seen on 16:28, 25. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Seems like you can…
Fri, 10/25/2024 - 15:00

Seems like you can........... I just used it like this,

Last seen on 15:17, 25. Oct 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ohhh my bad but I still need…
Fri, 10/25/2024 - 15:07

ohhh my bad but I still need help with the sharpness thing. Do you have any solutions for that? Thanks by the way.

 

Last seen on 16:28, 25. Oct 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Fri, 10/25/2024 - 15:09

Last seen on 15:17, 25. Oct 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you sent an image, I can…
Fri, 10/25/2024 - 15:17

If you sent an image, I can't see it. Did you figure out how to?