I am currently trying to shoot an arrow from a wand and it have a specified amount of damage, but I can't get it to tell whether it is a WandA arrow or a WandB arrow or even an arrow at all. Help?
Code:
on load:
register new shapeless recipe for stick named "&2&lBasic Wand&r" with lore "&2&n&lRight Click to use!" and " " and "&c Improve with 2 cobblestone," and "&c2 coal, and 1 dirt!" using stick, dirt, cobblestone, air, air, air, air, air, air
register new shapeless recipe for stick named "&c&oImproved &2Basic Wand&r" with lore "&2&n&lRight Click to use!" and " " and "&c Improve with 3 cobblestone," and "&c4 coal, and 1 dirt!" using stick named "&2&lBasic Wand&r", dirt, cobblestone, cobblestone, coal, coal, air, air, air
register new shapeless recipe for stick named "&9Better Wand&r" with lore "&2&n&lRight Click to use!" and " " and "&c Improve with " and "&c7 coal and 1 dirt!" using stick named "&c&oImproved &2Basic Wand&r", dirt, cobblestone, cobblestone, coal, coal, cobblestone, coal, coal
on rightclick with stick:
if name of tool of player is "&2&lBasic Wand&r":
shoot arrow from player at speed 5
set {arrow} to 1
on damage:
projectile is an arrow
projectile exists
set damage to {arrow}
Plugins:
Skript, skQuery, skVault
[doublepost=1574220454,1574220401][/doublepost]Also, how do I add a delay in between arrow shots so you can't spam the arrows?
Thanks
Code:
on load:
register new shapeless recipe for stick named "&2&lBasic Wand&r" with lore "&2&n&lRight Click to use!" and " " and "&c Improve with 2 cobblestone," and "&c2 coal, and 1 dirt!" using stick, dirt, cobblestone, air, air, air, air, air, air
register new shapeless recipe for stick named "&c&oImproved &2Basic Wand&r" with lore "&2&n&lRight Click to use!" and " " and "&c Improve with 3 cobblestone," and "&c4 coal, and 1 dirt!" using stick named "&2&lBasic Wand&r", dirt, cobblestone, cobblestone, coal, coal, air, air, air
register new shapeless recipe for stick named "&9Better Wand&r" with lore "&2&n&lRight Click to use!" and " " and "&c Improve with " and "&c7 coal and 1 dirt!" using stick named "&c&oImproved &2Basic Wand&r", dirt, cobblestone, cobblestone, coal, coal, cobblestone, coal, coal
on rightclick with stick:
if name of tool of player is "&2&lBasic Wand&r":
shoot arrow from player at speed 5
set {arrow} to 1
on damage:
projectile is an arrow
projectile exists
set damage to {arrow}
Plugins:
Skript, skQuery, skVault
[doublepost=1574220454,1574220401][/doublepost]Also, how do I add a delay in between arrow shots so you can't spam the arrows?
Thanks