Add spawn_projectile as an option to go in on_consume_effects in minecraft:consumable.
Currently, minecraft:consumable lets us play the animation for drawing a bow or charging a trident, but there is no mechanism for spawning an entity when it is released. Similarly, ender pearls and eyes of ender cannot be replicated.
spawn_projectile (or perhaps spawn_entity) should allow the developer to specify an entity (with tags) and optional initial velocity based on the direction the player is looking.
This allows for most of the functionality of bows, tridents, ender pearls, and eyes of ender to be replicated.
To get the charging without releasing of bows and tridents, an additional boolean could be added to minecraft:consumable, something along the lines of consume_on_release, where the animation is played whislt the player holds the button, but the item is not fully consumed until they release the button without switching to another slot.
Please sign in to leave a comment.
0 Comments