So you want the max duration? I believe that's query.item_max_use_duration here's a list of molang queries: https://learn.microsoft.com/en-us/minecraft/creator/reference/content/molangreference/examples/molangconcepts/queryfunctions?view=minecraft-bedrock-stable
#query.item_in_use_duration
1 messages · Page 1 of 1 (latest)
no
I want the output when the item's usage time reaches 100
Ah, I see. Use q.item_in_use_duration>=100 then
In an animation controller at least
Is that what you're looking to trigger something from?
As you can only do very basic things from the item file itself
does not work
query.is_using_item==1.0 && q.item_use_duration>=5
Sorry, I was mistaken. It's actually q.item_in_use_duration
And you don't need the q.is_using_item
ok
@weary vault When using it, it already activates
Even increasing the time and use it triggers immediately
Huh. I haven't used the query much myself, so there might be something wrong with the query. Can you send your animation controller?
Have you tried moving the transitions to states 1-9 into state 0 instead of the default state? Maybe there's something weird going on with that
No
@weary vault If you remove the query q.item_in_use_duration the animation controller works normally
I already said that the problem is in the query
It might just be a broken query then. Also, wdym by works normally without the query? Does it have the correct delay? Because it seems like without the query it would activate instantly anyway unless I'm missing something
Becauae from my understanding, what it seems to be doing is to say you're using the katana as soon as you use it, and then not transition back to the original state to wait for the rest of the time