Started by
MojangModCreator
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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.
Just use this,
I can't, it's an itemstack and you can't use them in keybinds.
Seems like you can........... I just used it like this,
ohhh my bad but I still need help with the sharpness thing. Do you have any solutions for that? Thanks by the way.
If you sent an image, I can't see it. Did you figure out how to?
huh that's weird https://i.imgur.com/f8NeFYr.png
Yeah, that's the problem. If I try to put that into my procedure and then try run it via a keybind, it wont let me as it doesn't allow things with provided itemstack.
Different colored procedure blocks that are linked together, such as the item part of the enchantment level block, can be separated and replaced with other blocks.
You can remove 'provided itemstack' from 'get level of enchantment sharpness of provided itemstack' then you can replace it with 'item in main hand of event/target entity'
Then you won't have the problem of the provided itemstack dependency being missing.
Thank you so much, this works perfectly. Kind of dumb I didn't think of this before.