#{RESOLVED} detecting crouching while holding an item

1 messages · Page 1 of 1 (latest)

twilit blaze
#

making an addon and i want it to activate on crouch i tried the code below and it did not work HELP

twilit blaze
#

by activate i mean im holding the item and i crouch and then it does the rest of the script yk yk

opaque haloBOT
#
What is Content Log?

The content log gives you live feedback for most errors that could occur while developing your add-on.

In Minecraft:

  1. Go to settings
  2. In the General section, select "Creator"
  3. Enable Content Log GUI

For more information:
https://wiki.bedrock.dev/guide/troubleshooting.html#content-log

random sand
twilit blaze
#

sorry if that was hard to understand

random sand
#

It won't u can ask inside that same wiuld.afterEvents.itemUse something like
if(item.TypeId === "youitem" && isSneaking)

#

As long as the item in there is checking the TypeId it won't collide

twilit blaze
#

ok thanks