Custom item not working with gun conditions

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
May 27, 2021
3
0
1
I am trying to make a Valorant remake in minecraft and this is my gun skript code:

Code:
on rightclick:
    player is holding a diamond hoe named "Vandal"
    apply slowness 5 to the player for 999 days
    remove diamond hoe from player
    give player ghast tear named "Vandal - Right click again to stop aiming in"
on rightclick holding a ghast tear:
    remove slowness from the player
    remove ghast tear from player
    give player diamond hoe named "Vandal"
on leftclick:
    player is holding a diamond hoe named "Vandal"
    shoot arrow at speed 5
on leftclick:
    player is holding a ghast tear named "Vandal - Right click again to stop aiming in"
    shoot arrow at speed 4

The diamond hoe named "Vandal" is not working with this item:
/give @p diamond_hoe{display:{Name:'[{"text":"Vandal","italic":false,"color":"gold"}]',Lore:['[{"text":"","italic":false}]','[{"text":"Item ability: Shoot ","italic":false,"color":"gold"},{"text":"LEFT CLICK","color":"yellow","bold":true},{"text":"","color":"dark_purple","bold":true}]','[{"text":"Shoots a bullet doing 2 dmg per shot","italic":false,"color":"dark_gray","bold":true},{"text":"","italic":false,"color":"dark_purple","bold":false}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Item ability: Aim in ","italic":false,"color":"gold"},{"text":"RIGHT CLICK","color":"yellow","bold":true},{"text":"","color":"dark_purple","bold":false}]','[{"text":"Aims down sights","italic":false,"color":"dark_gray"}]','[{"text":"(Good for long range)","italic":false,"color":"dark_gray"},{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"LEGENDARY WEAPON","italic":false,"color":"gold","bold":true}]']}} 1
 
Status
Not open for further replies.