Jump to content
  • 0

How To Apply Potion Effects To Mobs Within Certain Radius On Right Click Of An Item


duhnoob1010

Question

on right click:
    if player's tool is iron shovel:
        if uncolored name of player's tool is "Wand Of Poison":
    if {cooldown.%player%} is true:
        message "&6you have to wait"
        stop
            cancel event
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to false
        if {cooldown.%player%} is false:
            set {cooldown.%player%} to true
            loop all mobs in radius 4 of player
            apply slowness 4 to loop-mobs for 30 seconds
            apply weakness 4 to loop-mobs for 30 seconds
            message "&byou used your poison wand"
            wait 3 seconds
            set {cooldown.%player%} to false
 
So, I want to apply potion effects to mobs within a certain radius when I right click with an item, however it says there's no loop that matches loop mobs and says can't understand this condition /effect loop all mobs in radius 4 of player.
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...