'sniperbow': type: item material: 261 display name: SniperBow lore: - This bow lets you see - your target more clearly. # this links to sniperbow to create a zoom 'hawkeye': type: world events: on player right clicks with i@sniperbow: - if "<context.location || null>" == null && '<player.flag[hawkeyeactive]>' == 0 ||'<player.flag[hawkeyeactive]>' == null { - flag <player> hawkeyeactive:1 - cast slow duration:30 power:2 } else if "<context.location || null>" == null && '<player.flag[hawkeyeactive]>' == 1 { - flag <player> hawkeyeactive:0 - cast slow duration:0 } on player shoots i@sniperbow: - flag <player> hawkeyeactive:0 - cast slow duration:0
Uhhh... nobody is going to want to use that bow unless you give it extra buffs. So far youre just making the player slower. Just cast a strength or determine the damage + 5 if he shoots the bow and hits an entity.