Add component 'usable'
It would be really handy if instead of having to add 'consumable' to an item and set it up to not be consumed, it was as simple as adding a component 'usable'.
This would then of course trigger the 'using_item' criterion trigger, and also work with the 'use_cooldown' component. You could even add a nested tag 'use_duration' to force the player to hold it for an amount of time.
Motivation:
Right now to implement a cooldown for an item you would for example:
- 1. Make it consumable (and set it up to not be consumed)
- 2. Add the advancement with the 'using_item' criterion trigger
- 3. Then implement some cooldown system, like a scoreboard.
This cooldown gives no visual feedback to the player, unless you implement your own. It has you implement a bunch of extra logic (for the cooldown) which could be handled simply by the component 'use_cooldown'.
Also making it consumable slows movement during the use duration.
Please sign in to leave a comment.
0 Comments