I am trying to make a Valorant remake in minecraft and this is my gun skript code:
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
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