I want to make a team-based kit pvp game with lots of unique abilities but I do not know how to give some items infinite abilities. It would be similar to Overwatch in some respects, as there would be an objective to play and lots of different classes and counters to said classes. (And maybe also an ultimate ability that can charge over time?)
Here's a few I had in mind in case I wasn't clear enough.
Main weapon: Just an iron sword
First ability: "Fog" By right clicking a wither skull in their hotbar, Smoke can spawn a cloud of smoke with a five-block radius will give people the Wither effect. Would despawn almost as quickly as it spawns.
Second ability: "Leap" If Smoke wants to get people in their fog, they're gonna have to get to them quickly. By right-clicking a rabbit's foot, they can leap in the air in the direction they're facing. They are also invulnerable for one second, which should be enough time to land.
Third ability: "Pull" By right clicking a piece of coal, Pull teleports players within 15 blocks from Smoke directly to him.
Main weapon: A stone sword with high knockback that reveals the location of the enemy to everyone on user's team.
Secondary weapon: A bow with decreased damage but is enchanted with punch.
First ability: "Invis" By right-clicking a prismarine shard, Infiltrator goes in invisible for ten seconds and all armour is removed except for the boots. Infiltrator is also granted speed for ten seconds.
Second ability: "Self-heal" Literally just a healing potion.
Main weapon: A bow enchanted with power.
First ability: "Scope" By right-clicking a cauldron, the game replaces the bow with a more powerful bow, increasing the damage and power. Securer also receives slowness, therefore the screen would be zoomed in.
Second ability: "Invis" Like the Infiltrator, Securer right-clicks a prismarine shard to go invisible, except it only lasts five seconds and they are damaged for 2 hearts. Securer is also granted speed for five seconds.
Passive: When attacked, Securer is randomly teleported anywhere up to five blocks away.
Main weapon: Iron sword with increased damage.
First ability: "Call help" By right clicking some blaze powder, Ninja reveals themself to all teammates, alerting them to their location.
Second ability: "Lift" by right clicking a bone, Ninja is teleported ten blocks in the air, although fall damage can be taken.
Passive: Ninja's health is regenerated fully upon killing an enemy.
Passive 2: Ninja always has increased speed and jump boost.
Main weapon: Wooden sword with knockback.
First ability: "Heal" By right clicking a music disc (specifically, Chirp), A cloud of red particles is spawned, healing all teammates.
Second ability: "On call" By right clicking gold horse armour, Healthmaster is given increased speed and jump boost. This could be used to get to injured teammates easier.
Third ability: "Call help" Exactly the same as Ninja's.
These are just a few examples of what I have in mind. The gist of this is to get an idea on how to give items custom abilities like I have listed above. Anybody know?
Rollback Post to RevisionRollBack
Need some video game music? I can help you with that.
From what I know there is no simple way in vanilla minecraft to determine when players right click with a non-useable item in their hand (Anything but potions, some tools and blocks.) So sadly that rules out most of them. If you would be willing to switch the abilities on infiltrator's weapons you could use spectral arrows to reveal enemies and just give him a lower quality sword with knockback. For Securer's passive you would have to teleport upwards and then use some randomizer to tp on the x and z axis. You can use a scoreboard with stat.damageTaken to trigger the teleport. For Ninjas first passive you could use a scoreboard with stat.playerKills to trigger a command block that gives super regen to the player that got the kill. Everything that remains can be done fairly simply.
P.S. It is technically possible to test for right clicks but it would involve a ludicrous amount of command blocks and around 10-20 hours of work for setup and an additional hour for each item.